Python scripting OLP - Objects

CENPyOlpOperationGroup

 

Methods

 

GetName(): string

 

o

return

Operation group name

 

Returns the name of the operation group.

 

[Example]

   opGroups = program.GetOperationGroups()

  for olpOperationGroup in opGroups:

      opGroupName = olpOperationGroup.GetName()

 


 

SetName(name: string):

 

 

o

name

New operation group name

 

Sets the new name of the operation group.

 

[Example]

  program = Operator.GetActiveProgram()

  opGroups = program.GetOperationGroups()

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

     opGroup.SetName("NewName")

 


 

GetParentProgramName(): string

 

o

return

Parent program name

 

Returns the parent program name of the operation group.

 

[Example]

   logging = Operator.GetLoggerOperator()

   program = Operator.GetActiveProgram()

   opGroups = program.GetOperationGroups()

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

      logging.LogInfo(f"Parent program name: {opGroup.GetParentProgramName()}")

 


 

OverrideAttribute(string: name)

 

o

name

Name of the attribute to override

 

Overrides an attribute with the given name.

 

[Example]

   olpOperationGroup.OverrideAttribute("AttributeName")

 


 

GetOperations(): list

 

o

return

list of CENPyOlpOperation objects

 

Returns all operations of the operation group.

 

[Example]

   operations = olpOperationGroup.GetOperations()

 


 

GetTpElements(): list

 

o

return

list of CENPyOlpTpElement objects

 

Returns all toolpath elements of the operation group.

 

[Example]

   tpes = olpOperationGroup.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 group with given event name.

 

[Example]

   tpes = olpOperationGroup.GetTpElementsWithEvent("EventName")

 


 

CreateOperation(workMethodName: string, olpPgOperator: CENPyOlpProcessGeometryOperator)

 

o

workMethodName

The workmethod name which computes this operation

 

o

olpPgOperator

The process geometry

 

o

return

Object of CENPyOlpOperation class

 

Creates a new operation.

 

[Example]

   opGroup.CreateOperation('CONTOUR_METHOD', pgOperator)

 


 

GetAttribGetter(): CENPyOlpAttribGetter

 

o

return

Object of CENPyOlpAttribGetter class

 

Returns the CENPyOlpAttribGetter operator.

 

[Example]

   attribGetter = olpOperationGroup.GetAttribGetter()

 


 

GetAttribSetter(): CENPyOlpAttribSetter

 

o

return

Object of CENPyOlpAttribSetter class

 

Returns the CENPyOlpAttribSetter operator.

 

[Example]

   attribSetter = olpOperationGroup.GetAttribSetter()

 

 


 

GetTracks(): list

 

o

return

list of CENPyOlpTrack objects

 

Get all toolpath tracks of the operation group.

 

[Example]

   tracks = olpOperationGroup.GetTracks()

 


 


Previous
Page précédente
Chapter
Page principale du chapitre
Next
Page suivante