ÉvénementIIp
| Rappel de classe noyau | Classe opérateur | Type de valeur de retour | Valeur de retour par défaut | Nom du fichier script Python |
| PostInitAttributes | CENPyOlpEvent_AttribInitOperator | %EventName%.py | ||
| PostProcessAttributes | CENPyOlpEvent_PEOperator | |||
| PostCompute | CENPyOlpEvent_EventComputeOperator | |||
| PostProcessusAttributsUpload | CENPyOlpEvent_PEOperatorUpload | |||
| PostOnAttribChanged | CENPyOlpEvent_AttribChangedOperator | |||
| GetEventName | Corde | "" | ||
| GetEventUuId | Corde | "" | ||
| GetIconName | Corde | "" | ||
| GetGroupName | Corde | « OlpEvent » | ||
| ObtenirMultipleCréationEstPossible | Bool | Faux | ||
| GetEventType | OlpEventType | OLPEVENT_OLP | ||
| GetCycleExploseBehaviour | CycleExploseBehaviour | CYCLE_EXPLODEFORBIDDEN | ||
| GetCycleRotationFlag | Rotation du cycle | CYCLEROTATION_ROTPATH | ||
| GetCycleTranslationFlag | CycleTranslation | CYCLETRANSLATION_TRANSYES | ||
| GetCycleRotationAutoFlag | Rotation du cycle | CYCLEROTATION_ROTPATH | ||
| GetCycleRotationManualFlag | Rotation du cycle | Appelez en interne GetCycleRotationAutoFlag() | ||
| GetCycleTranslationAutoFlag | CycleTranslation | CYCLETRANSLATION_TRANSYES | ||
| GetCycleTranslationManualFlag | CycleTranslation | Appelez en interne GetCycleTranslationAutoFlag() | ||
| GetCycleReferenceBehavior | CycleReferenceBehavior | CYCLEREFBEHAVIOR_HIDDEN | ||
| IsMachiningCycle | Bool | Faux | ||
| isEnabled | Bool | Vrai |
Déprécié, mais toujours soutenu.
from centypes import *
LASER_TYPE = "LaserType"
LASER_TYPE_LIST = ["Off", "OnPierce", "OnContour"]
LASER_OFFSET = "LaserOffset"
def GetEventName():
return "LaserEvent"
def GetEventUuId():
return "69B94E6B-03D7-48FF-A62A-BE9CE3C11234"
def GetIconName():
return "LaserCutting"
def GetExplodeCycle():
return 0
def GetMultipleCreationIsPossible():
return 1
def GetEventType():
return OLPEVENT_OLP
def PostInitAttributes(EventAttribInitOperator):
attribCreator = EventAttribInitOperator.GetAttribCreator()
# Laser type
attribCreator.AddEnum(LASER_TYPE, LASER_TYPE_LIST, LASER_TYPE_LIST[0], USER_ATTRIBUTE | PROCESS_ATTRIBUTE, LASER_TYPE)
# Laser offset
attribCreator.AddDouble(LASER_OFFSET, 0.0,0.0,1000.0,1.0, USER_ATTRIBUTE | PROCESS_ATTRIBUTE, ATTRIB_LENGTH, LASER_OFFSET)
def PostProcessAttributes(CENPyOlpEvent_PEOperator):
pass
def GetCycleExplodeBehavior():
return CYCLE_EXPLODEALLOWED
def PostCompute(eco):
pass| · | isEnabled() : bool |
- L’événement doit être affiché dans le panneau événement. Par défaut vrai.
Précise si l’événement doit être affiché dans le panneau de l’événement.
def IsEnabled():
return FalseWas this page helpful?