The object of the CENPyOlpEventOperator class may be obtained with CENPyOlpEvent_EventComputeOperator.
[Example]
def PostCompute(eco):
eventOperator = eco.GetEventOperator()
|
|
unique id of the event to be added
|
|
|
reference toolpath element
|
|
|
before or after the reference toolpath element
|
|
|
The Event object added
|
Add Technology Event on input toolpath element or at the end of the toolpath segment
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
eventOperator.AddEvent("69B94E6B-03D7-48FF-A62A-BE9CE3C142C8", myTpElement, TPINSERTPOS_INSERTAFTER)
|
|
target toolpath element
|
|
|
input Actor for the event
|
|
|
before or after the reference toolpath element
|
|
|
The Event object of type CENPyOlpBoolActorEvent
|
Add Actor Event on target toolpath element.
[Example]
boolActor = eventOperator.AddEventBoolActor(myTpElement, actor, TPINSERTPOS_INSERTAFTER)
boolActor.SetValue(True)
|
|
target toolpath element
|
|
|
input Actor for the event
|
|
|
before or after the reference toolpath element
|
|
|
The Event object of type CENPyOlpFloatArrayActorEvent
|
Add Actor Event on target toolpath element.
[Example]
floatArrayActor = eventOperator.AddEventFloatArrayActor(myTpElement, actor, TPINSERTPOS_INSERTAFTER)
|
|
target toolpath element
|
|
|
input Sensor for the event
|
|
|
before or after the reference toolpath element
|
|
|
The Event object of type CENPyOlpWaitForBoolSensorEvent
|
Add Sensor Event on target toolpath element.
[Example]
boolSensor = eventOperator.AddSensorEvent(myTpElement, sensors[0], TPINSERTPOS_INSERTAFTER)
boolSensor.SetValue(True)
|
|
value to initialize event with
|
|
|
target toolpath element
|
|
|
the number of the signal
|
|
|
before or after the reference toolpath element.
|
|
|
The CENPyOlpSetBoolSignalEvent object added
|
Adds a set bool signal event to the toolpath element for a controller signal connection.
The connection is chosen to be the first one which has a "out" signal with the given number.
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
myBoolSignalEvent = eventOperator.AddEventSetBoolSignal(True, myTpElement, 8, TPINSERTPOS_INSERTBEFORE)
|
|
value to initialize event with
|
|
|
target toolpath element
|
|
|
the number of the signal
|
|
|
before or after the reference toolpath element.
|
|
|
The CENPyOlpSetFloatSignalEvent object added
|
Adds a set float signal event to the toolpath element for a controller signal connection.
The connection is chosen to be the first one which has a "out" signal with the given number.
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
myFloatSignalEvent = eventOperator.AddEventSetBoolSignal(5.7, myTpElement, 7, TPINSERTPOS_INSERTBEFORE)
|
|
value to initialize event with
|
|
|
target toolpath element
|
|
|
the number of the signal
|
|
|
before or after the reference toolpath element.
|
|
|
The CENPyOlpSetIntSignalEvent object added
|
Adds a set integer signal event to the toolpath element for a controller signal connection.
The connection is chosen to be the first one which has a "out" signal with the given number.
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
myIntSignalEvent = eventOperator.AddEventSetIntSignal(50, myTpElement, 6, TPINSERTPOS_INSERTBEFORE)
|
|
value to initialize event with
|
|
|
target toolpath element
|
|
|
the number of the signal
|
|
|
before or after the reference toolpath element.
|
|
|
The CENPyOlpWaitForBoolSignalEvent object added
|
Add a wait for bool signal event to the toolpath element for a controller signal connection.
The connection is chosen to be the first one which has a "in" signal with the given number.
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
myBoolSignalEvent = eventOperator.AddEventWaitForBoolSignal(True, myTpElement, 8, TPINSERTPOS_INSERTBEFORE)
|
|
value to initialize event with
|
|
|
target toolpath element
|
|
|
the number of the signal
|
|
|
before or after the reference toolpath element.
|
|
|
The CENPyOlpWaitForFloatSignalEvent object added
|
Add a wait for float signal event to the toolpath element for a controller signal connection.
The connection is chosen to be the first one which has a "in" signal with the given number.
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
myFloatSignalEvent = eventOperator.AddEventWaitForFloatSignal(5.7, myTpElement, 7, TPINSERTPOS_INSERTBEFORE)
|
|
value to initialize event with
|
|
|
target toolpath element
|
|
|
the number of the signal
|
|
|
before or after the reference toolpath element.
|
|
|
The CENPyOlpWaitForIntSignalEvent object added
|
Add a wait for integer signal event to the toolpath element for a controller signal connection.
The connection is chosen to be the first one which has a "in" signal with the given number.
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
myIntSignalEvent = eventOperator.AddEventWaitForIntSignal(50, myTpElement, 6, TPINSERTPOS_INSERTBEFORE)
|
|
target toolpath element
|
|
|
before or after the reference toolpath element.
|
|
|
The Event object added
|
Adds a Speed event to target toolpath element
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
se = eventOperator.AddSpeed(myTpElement, TPINSERTPOS_INSERTBEFORE)
|
|
target toolpath element
|
|
|
before or after the reference toolpath element.
|
|
|
The Event object added
|
Adds a Tool event to target toolpath element
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
te = eventOperator.AddToolEvent(myTpElement, TPINSERTPOS_INSERTBEFORE)
|
|
target toolpath element
|
|
|
before or after the reference toolpath element
|
|
|
The Event object added
|
Adds an Accuracy event to target toolpath element.
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
ae = eventOperator.AddAccuracyEvent(myTpElement, TPINSERTPOS_INSERTBEFORE)
|
|
target toolpath element
|
|
|
before or after the reference toolpath element
|
|
|
The Event object added
|
Add a dwell event to the target element.
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
de = eventOperator.AddDwellEvent(myTpElement, TPINSERTPOS_INSERTBEFORE)
|
|
target toolpath element
|
|
|
before or after the reference toolpath element
|
|
|
The Acceleration Event object added
|
Adds an Acceleration event to target toolpath element.
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
ae = eventOperator.AddAccelerationEvent(myTpElement, TPINSERTPOS_INSERTBEFORE)
Adds a set resource port event to the toolpath element.
The event requires a resource and can then set values for input ports of that resource.
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
mySetResourcePortEvent = eventOperator.AddSetResourcePortEvent(myTpElement, TPINSERTPOS_INSERTBEFORE)
Adds a wait for resource port event to the toolpath element.
The event requires a resource and can then wait for values on output ports of that resource.
[Example]
myTpElement = eco.GetRefTpElement()
eventOperator = eco.GetEventOperator()
myWaitForResourcePortEvent = eventOperator.AddWaitForResourcePortEvent(myTpElement, TPINSERTPOS_INSERTBEFORE)
|