pycatia.dnb_robot_interfaces.tcp_trace¶
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.TCPTrace(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectTCPTraceInterface representing a TCP trace.Role: This interface is used to interact with an inverse kinematics device onwhich a TCP(Tool Center Point) has been defined.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- export(i_name: str) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Export(CATBSTR iName) As longExport the TCP trace data in a file. The file format is indicated by theiFileName extension. Only Excel(Windows NT only) and text files are supported.If there is already a file at the given location, the user is prompted tooverride the file.Example :iFileName = C:/TEMP/MyFile.xls -> Excel fileiFileName = /usr/tmp/MyFile.txt -> Text fileParameters:iNameCATBSTR. Input parameter. File path+name+extension.oErrorLong. Output parameter. Indicates if any error happened.
- Parameters:
i_name (str) –
- Return type:
int
- 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_colour() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetColor(DNBTCPTraceReps iRep,long oR,long oG,long oB,long oA)Get the TCP trace component (DNBTCPTraceReps) color.Parameters:iRepDNBTCPTraceReps. Define the graphical object the method will beapplied on. Input parameter.oRLong. Red color component from 0 to 255. Input parameter.oGLong. Green color component from 0 to 255. Input parameter.oBLong. Blue color component from 0 to 255. Input parameter.oALong. Alpha color component from 0 to 255. Input parameter.
- Returns:
enum dnbtcp_trace_reps
- Return type:
int
- get_legends_visibility(i_type: int) bool ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetLegendsVisibility(DNBTCPTraceLegends iType) AsbooleanGet the TCP trace component (DNBTCPTraceReps) legend visibility status.Indicates whether or not at (pre)highlight, some text should beshown.Parameters:iTypeDNBTCPTraceLegends. Define the kind of legend on which the methodwill be applied on. Input parameter.obVisibleBoolean. Indicates if it is visible(True) or hidden(False). Outputparameter.
- Parameters:
i_type (int) – enum dnbtcp_trace_legends
- Return type:
bool
- get_thickness(i_rep: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetThickness(DNBTCPTraceReps iRep) As longGet the TCP trace component (DNBTCPTraceReps) thickness(for line,axis).Parameters:iRepDNBTCPTraceReps. Define the graphical object the method will beapplied on. Input parameter.oThicknessIndicates the index width of the line in the range [1,55]. Thisindex is pointing on the true width in pixel, recorded in the standard (ifthere is one in the document) or in the setting. Input parameter.
- Parameters:
i_rep (int) – enum dnbtcp_trace_reps
- Return type:
int
- get_type(i_rep: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetType(DNBTCPTraceReps iRep) As longGet the TCP trace component (DNBTCPTraceReps) type. For points, legalvalues are :1 : CROSS2 : PLUS3 : CONCENTRICFor line and axis, legal values are :1 : solid2 : dotted3 : dashed4 : dot-dashed5 : phantomParameters:iRepDNBTCPTraceReps. Define the graphical object the method will beapplied on. Input parameter.oTypeLong. Depends on the DNBTCPTraceReps. Output parameter. Outputparameter.
- Parameters:
i_rep (int) – enum dnbtcp_trace_reps
- Return type:
int
- get_visibility(i_rep: int) bool ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetVisibility(DNBTCPTraceReps iRep) As booleanGet the TCP trace component (DNBTCPTraceReps) visibilitystatus.Parameters:iRepDNBTCPTraceReps. Define the graphical object the method will beapplied on. Input parameter.obVisibleBoolean. True for visible and False for hidden. Output parameter.
- Parameters:
i_rep (int) – enum dnbtcp_trace_reps
- Return type:
bool
- refresh_display() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RefreshDisplay()Refresh display. Need to call this method whenever the graphic propertiesare changed. By default, when changing the graphic properties, the refresh isnot applied for performance reasons. Caller of the API must call RefreshDisplayto view the changes in the main viewer.
- 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
- reset_graphics(b_setting: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ResetGraphics(boolean bSetting)Reset the current appearance regarding the current general settings (notthe one applied on the current object). Call < to see the changesapplied.Parameters:bSettingBoolean. Indicates if it is visible(True) or hidden(False). Inputparameter.
- Parameters:
b_setting (bool) –
- 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
- set_color(i_rep: int, i_r: int, i_g: int, i_b: int, i_a: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetColor(DNBTCPTraceReps iRep,long iR,long iG,long iB,long iA)Set the TCP trace component (DNBTCPTraceReps) color. Call < to see thechanges applied.Parameters:iRepDNBTCPTraceReps. Define the graphical object the method will beapplied on. Input parameter.iRLong. Red color component from 0 to 255. Input parameter.iGLong. Green color component from 0 to 255. Input parameter.iBLong. Blue color component from 0 to 255. Input parameter.iALong. Alpha color component from 0 to 255. Input parameter.
- Parameters:
i_rep (int) – enum dnbtcp_trace_reps
i_r (int) –
i_g (int) –
i_b (int) –
i_a (int) –
- Return type:
None
- set_legends_visibility(i_type: int, ib_visible: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetLegendsVisibility(DNBTCPTraceLegends iType,boolean ibVisible)Get the TCP trace component (DNBTCPTraceReps) legend visibility status.Indicates whether or not at (pre)highlight, some text should be shown. Call <to see the changes applied.Parameters:iTypeDNBTCPTraceLegends. Define the kind of legend on which the methodwill be applied on. Input parameter.ibVisibleBoolean. Indicates if it is visible(True) or hidden(False). Inputparameter.
- Parameters:
i_type (int) – enum dnbtcp_trace_legends
ib_visible (bool) –
- Return type:
None
- set_thickness(i_rep: int, i_thickness: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetThickness(DNBTCPTraceReps iRep,long iThickness)Set the TCP trace component (DNBTCPTraceReps) thickness(for line, axis).Call < to see the changes applied.Parameters:iRepDNBTCPTraceReps. Define the graphical object the method will beapplied on. Input parameter.iThicknessIndicates the index width of the line in the range [1,55]. Thisindex is pointing on the true width in pixel, recorded in the standard (ifthere is one in the document) or in the setting. Input parameter.
- Parameters:
i_rep (int) – enum dnbtcp_trace_reps
i_thickness (int) –
- Return type:
None
- set_type(i_rep: int, i_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetType(DNBTCPTraceReps iRep,long iType)Set the TCP trace component (DNBTCPTraceReps) type. For points, legalvalues are :1 : CROSS2 : PLUS3 : CONCENTRICFor line and axis, legal values are :1 : solid2 : dotted3 : dashed4 : dot-dashed5 : phantomCall < to see the changes applied.Parameters:iRepDNBTCPTraceReps. Define the graphical object the method will beapplied on. Input parameter.iTypeLong.Depends on the DNBTCPTraceReps. Input parameter.Returns:HRESULT Returns S_OK if it succeeds, otherwise E_FAIL.
- Parameters:
i_rep (int) – enum dnbtcp_trace_reps
i_type (int) –
- Return type:
None
- set_visibility(i_rep: int, ib_visible: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetVisibility(DNBTCPTraceReps iRep,boolean ibVisible)Set the TCP trace component (DNBTCPTraceReps) visible (True) orhidden(False). Call < to see the changes applied.Parameters:iRepDNBTCPTraceReps. Define the graphical object the method will beapplied on. Input parameter.ibActivBoolean. True for visible and False for hidden. Input parameter.
- Parameters:
i_rep (int) – enum dnbtcp_trace_reps
ib_visible (bool) –
- Return type:
None
- property total_points: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property TotalPoints() As long (Read Only)Returns the number of points in the trace.Parameters:oNbPointsLong. Contains the number of points.
- Return type:
int
- property trace_name: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property TraceName() As CATBSTRManage the name of the trace. Property can be retrieved andvaluatedParameters:oNameCATBSTR. String containing the retrieved name.
- Return type:
str
- property visibility: bool¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Visibility() As booleanManage the visibility of the trace. Property can be retrieved andvaluated1: shown0: hiddenParameters:oVisibilityBoolean. Contains the return value.
- Return type:
bool