pycatia.dnb_robot_interfaces.tcp_trace_manager¶
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_robot_interfaces.tcp_trace_manager.TCPTraceManager(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectTCPTraceManagerInterface representing an accessor to TCP traces object from aproduct.Role: This interface is used to retrieve TCP traces from a product. Thisproduct is the assembly node representing the inverse kinematicsassembly.A TCP trace is the graphical output of a task simulation. This output is thetrajectory path generated by the TCP, defined by lines and points. Each pointrepresents the location of the TCP at a given time.The following code snippet can be used to obtain a handle from aproduct:Dim MyRobot As Product‘retrieval of the product…‘retrieval of the trace managerDim objDevice As TCPTraceManagerset objDevice = MyRobot.GetTechnologicalObject(“TCPTraceManager”)‘activate the traceobjDevice.TCPTraceMode=True‘Get the last pathDim NbPath As LongNbPath = objDevice.GetNbPathIf NbPath>0 Then‘ retrieval of the last traceDim RobotTCPTrace As TCPTraceSet RobotTCPTrace = objDevice.GetPath(NbPath)‘Export the trace pointsRobotTCPTrace.Export(“C:/TEMP/DEBUG.xls”)End If- get_attached_owner() AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetAttachedOwner() As AnyObjectRetrieves the default attached owner of the trace. By default, the owner ofthe trace is the robot assembly node. If the robot is moved, the trace willfollow. However, in some scenarios, the trace might be drawn related to anotherproduct (or even with respect to the world) like for example when dealing witha workpiece positioner.Parameters:oOwnerCATIABase. Attached owner of the trace. Output parameter. Returnsnothing if the trace is defined related to the world
- Return type:
- get_nb_path() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetNbPath() As longGet the number of TCP trace.Parameters:oNbLong. Number of traces. Output parameter.
- Return type:
int
- get_path(i_index: int) TCPTrace ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetPath(long iIndex) As TCPTraceGet the iIndex path(trace)(starting at 1).Parameters:iIndexLong. Path/Trace index starting at 1. Input parameter.oTCPPathDNBIATCPTrace. Pointer on the trace. Output parameter.
- Parameters:
i_index (int) –
- Return type:
- property init_status: bool¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property InitStatus() As booleanIndicates whether the tracing capability must delete previous traces whenthe simulation starts.True: previous traces are deletedFalse: previous traces are keptParameters:oInitStatusBoolean. Indicates if the tracing capability is activ ornot.
- Return type:
bool
- remove_all_path() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RemoveAllPath()Remove all traces from the current resource. All traces associated with thecurrent resource will be removed from the 3D and deleted.
- Return type:
None
- remove_path_by_index(i_index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RemovePathByIndex(long iIndex)Remove a specific path based on its position in the list. The trace will beremoved from the 3D viewer and deleted.Parameters:iIndexLong. Position index starting at 1. Must be positiv. Inputparameter.
- Parameters:
i_index (int) –
- Return type:
None
- remove_path_by_object(tcp_path: TCPTrace) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RemovePathByObject(TCPTrace TCPPath)Remove a specific trace based on the object. The trace will be removed fromthe 3D viewer and deleted.Parameters:TCPPathDNBIATCPTrace. Path to be removed.
- Parameters:
tcp_path (TCPTrace) –
- Return type:
None
- reset_attached_owner() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ResetAttachedOwner()Resets the attached owner of the trace to the world. When a new trace willbe created, it will defined with respect to the world.Remark: this will not change the exported values.
- Return type:
None
- set_attached_owner(i_owner: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetAttachedOwner(AnyObject iOwner)Sets the default attached owner of the trace. By default, the owner of thetrace is the robot. When a new trace is created, the attached owner is used toset it upon the trace.Remark: set the attached owner will not change the exportedvalues.Parameters:iOwnerCATIABase. Attached owner of the trace. Input parameter.
- Parameters:
i_owner (AnyObject) –
- Return type:
None
- property tcp_trace_mode: bool¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property TCPTraceMode() As booleanIndicates if the tracing capability is activ or not.True: tracing capability activatedFalse: tracing capability deactivatedParameters:oTCPTraceModeBoolean. Indicates if the tracing capability is activ ornot.
- Return type:
bool