Python scripting OLP - Objects

CENPyOlpOperation

Previous  Chapter  Next

 

Methods

 

GetName(): string

 

o

return

Toolpath element name

 

Returns the name of the operation.

 

[Example]

   operations = program.GetOperations()

  for olpOperation in operations:

      operationName = olpOperation.GetName()

 


 

SetName(EVENTRULENAME):

 

 

o

name

New operation name

 

Sets the new name of the operation.

 

[Example]

  program = Operator.GetActiveProgram()

  opGroups = program.GetOperationGroups()

  for opGroupCounter, opGroup in enumerate(opGroups, 1):

     for opCounter, operation in enumerate(opGroup.GetOperations(), 1):

        operation.SetName("NewName")

 


 

OverrideAttribute(string: name)

 

o

name

Name of the attribute to override

 

Overrides an attribute with the given name.

 

[Example]

   olpOperation.OverrideAttribute("AttributeName")

 


 

GetProcessGeometryIdentifier(): string

 

o

return

Process geometry UUID

 

Returns the UUID of the process geometry of the current operation.

 

[Example]

   uuid = olpOperation.GetProcessGeometryIdentifier()

 


 

GetTpElements(): list

 

o

return

list of CENPyOlpTpElement objects

 

Returns all toolpath elements of the operation.

 

[Example]

   tpes = olpOperation.GetTpElements()

 


 

GetTpElementsWithEvent(string: eventName): list

 

o

eventName

Event name to search for

 

o

return

list of CENPyOlpTpElement objects

 

Returns all toolpath elements of the operation with given event name.

 

[Example]

   tpes = olpOperation.GetTpElementsWithEvent("EventName")

 


 

GetAttribGetter(): CENPyOlpAttribGetter

 

o

return

Object of CENPyOlpAttribGetter class

 

Returns the CENPyOlpAttribGetter operator.

 

[Example]

   attribGetter = olpOperation.GetAttribGetter()

 


 

GetAttribSetter(): CENPyOlpAttribSetter

 

o

return

Object of CENPyOlpAttribSetter class

 

Returns the CENPyOlpAttribSetter operator.

 

[Example]

   attribSetter = olpOperation.GetAttribSetter()

 

 


 

GetTracks(): list

 

o

return

list of CENPyOlpTrack objects

 

Get all toolpath tracks of the operation.

 

[Example]

   tracks = olpOperation.GetTracks()

 


 


Previous
Previous page
Chapter
Chapter page
Next
Next page