pycatia.dnb_igp_setup_interfaces.device_task¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.dnb_igp_setup_interfaces.device_task.DeviceTask(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDMAPSInterfaces.ActivityDeviceTaskRepresents the Device Task.Role: The interface is used manage activities under a DeviceTask.The following code snippet can be used to obtain the Device Task from a DeviceTask Factory.Dim objDeviceTaskFactory As DeviceTaskFactoryDim objDevice As Product…Set objDeviceTaskFactory = objDevice.GetTechnologicalObject(“DeviceTaskFactory” )Dim objDeviceTaskList(3) as DeviceTaskDim objDeviceTask as DeviceTaskobjDeviceTaskFactory.GetAllDeviceTasks objDeviceTaskListobjDeviceTask=objDeviceTaskList[0]The Device Task can also be obtained from an activity of the typeDeviceTask.Dim objActivity as Activity…Dim objDeviceTask as DeviceTaskSet objDeviceTask = objActivity.GetTechnologicalObject(“DeviceTask” )- create_delay_activity(isp_father: AnyObject, position: int, delay_time: float, o_delay_acty: Activity) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateDelayActivity(AnyObject ispFather,short position,double delay_time,Activity oDelayActy)Creates a Delay Activity inside a Device TaskParameters:ispFatherThe Activity preceeding the new activity.positionWhether to insert activity before or after father. 0 tells at thestart and 1 means afterdelay_timeThe input delay time value to be set.oDelayActyThe created Delay ActivityReturns:An HRESULT.Legal values:S_OKThe Delay Activity was successfully created.E_FAILThe Delay Activity could not be created.Example:The following example creates An Delay Activity under a givendevice taskDim objDeviceTask as DeviceTaskDim objPreceedingActy as Activity..Dim objDelayAct as ObjectobjDeviceTask.CreateDelayActivityobjPreceedingActy,1,objDelayAct
- create_move_home_activity(isp_father: AnyObject, position: int, o_move_home_acty: Activity) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateMoveHomeActivity(AnyObject ispFather,short position,Activity oMoveHomeActy)Creates a MoveHome Activity inside a Device TaskParameters:ispFatherThe Activity preceeding the new activity.positionWhether to insert activity before or after father. 0 tells at thestart and 1 means afteroMoveHomeActyThe created MoveHome ActivityReturns:An HRESULT.Legal values:S_OKThe MoveHome Activity was successfully created.E_FAILThe MoveHome Activity could not be created.Example:The following example creates An MoveHome Activity under a givendevice taskDim objDeviceTask as DeviceTaskDim objPreceedingActy as Activity..Dim objMovHomeAct as ObjectobjDeviceTask.CreateMoveHomeActivityobjPreceedingActy,1,objMovHomeAct
- create_move_joints_activity(isp_father: AnyObject, position: int, o_move_joints_acty: Activity) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateMoveJointsActivity(AnyObject ispFather,short position,Activity oMoveJointsActy)Creates a MoveJoints Activity inside a Device TaskParameters:ispFatherThe Activity preceeding the new activity.positionWhether to insert activity before or after father. 0 tells at thestart and 1 means afteroMoveJointsActyThe created MoveJoints ActivityReturns:An HRESULT.Legal values:S_OKThe MoveJoints Activity was successfully created.E_FAILThe MoveJoints Activity could not be created.Example:The following example creates An MoveJoints Activity under a givendevice taskDim objDeviceTask as DeviceTaskDim objPreceedingActy as Activity..Dim objMovJointsAct as ObjectobjDeviceTask.CreateMoveJointsActivityobjPreceedingActy,1,objMovJointsAct