pycatia.drafting_interfaces.drawing_dimension¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
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.drafting_interfaces.drawing_dimension.DrawingDimension(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDrawingDimensionRepresents a drawing dimension in a Drawing view.Returns sub parts of dimension: Extension lines, dimension line and dimensionvalue.- property cumulate_mode: bool¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property CumulateMode() As boolean (Read Only)Returns cumulate mode or not.Example:This example retrieves cumulate mode or not MyDimension drawingdimension.oCumulateMode = MyDimension.CumulateMode
- Return type:
bool
- property dim_status: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property DimStatus() As CatDimAnalyse (Read Only)Returns or sets status of dimension.Example:This example retrieves status of dimension MyDimension drawingdimension.oIsStatus = MyDimension.DimStatus
- Returns:
enum cat_dim_analyse
- Return type:
int
- property dim_type: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property DimType() As CatDimType (Read Only)Returns dimension type.Example:This example retrieves the dimension type MyDimension drawingdimension.oTypeDim = MyDimension.DimType
- Returns:
enum cat_dim_type
- Return type:
int
- property dual_value: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property DualValue() As CatDimDualDisplayReturns or sets dual value type of dimension value.Example:This example retrieves dual value type of dimension value MyDimensiondrawing dimension.oDualValue = MyDimension.DualValue
- Returns:
enum cat_dim_dual_display
- Return type:
int
- property forshortened: bool¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Forshortened() As booleanReturns or sets foreshortened mode or not.Example:This example retrieves foreshortened mode or not MyDimension drawingdimension.oForsh = MyDimension.Forshortened
- Return type:
bool
- get_boundary_box() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub GetBoundaryBox(CATSafeArrayVariant oValues)Get boundary box coordinates of dimension value.Parameters:oValuesList of boundary box coordinates (X1,Y1,X2,Y2,…..X4,Y4).Example:This example gets boundary box coordinates of MyDimensionpath.MyDimension.GetBoundaryBox(oValues)
- Return type:
tuple
- get_clip() tuple[float, float, int] ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub GetClip(double X,double Y,long oKeptSide)Gets informations of the dimension clipping. The value of this parametercan be 1 or 2, and the kept side will be the one corresponding respectively toptldc1 and ptldc2 from GetGeomInfo method defined in CATIADrawingDimensionLineidl interface. interface. If iKeptSide==0, there is no dimensionclipping.Parameters:oXX coordinate of position.oYY coordinate of position.oKeptSidereturns the part of the dimension line will be clipped.Example:if MyDimension.IsClipped thenMyDimension.GetClip(X, Y, keptSide)end if
- Returns:
tuple[float, float, int]
- Return type:
tuple
- get_dim_ext_line() DrawingDimExtLine ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetDimExtLine() As DrawingDimExtLineReturns the drawing extension line of the drawingdimension.Example:This example retrieves in DimExtLine extension line of the MyDimensiondrawing dimension.Dim DimExtLine As DrawingDimExtLineSet DimExtLine = MyDimension.GetDimExtLineSee also:DrawingDimLine
- Return type:
- get_dim_line() DrawingDimLine ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetDimLine() As DrawingDimLineReturns the drawing dimension line of the drawingdimension.Example:This example retrieves in DimDimLine dimension line of the MyDimensiondrawing dimension.Dim DimDimLine As DrawingDimLineSet DimDimLine = MyDimension.GetDimLineSee also:DrawingDimLine
- Return type:
- get_tolerances() tuple[int, str, str, str, float, float, int] ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub GetTolerances(long oTolType,CATBSTR oTolName,CATBSTR oUpTol,CATBSTR oLowTol,double odUpTol,double odLowTol,long oDisplayMode)Get tolerance information of dimension value.Parameters:oTolTypeTolerance typeoTolNameTolerance nameoUpTolUpper tolerance value (alpha numerical type)oLowTolLower tolerance value (alpha numerical type)odUpTolUpper tolerance value (numerical type)odLowTolLower tolerance value (numerical type)oDisplayModeTolerance display modeExample:This example gets tolerance information of MyDimensionpath.MyDimension.GetTolerances(oTolType, oTolName, oUpTol, oLowTol,odUpTol, odLowTol, oDisplayMode)
- Returns:
tuple(int, str, str, str, float, float, int)
- Return type:
tuple
- get_value() DrawingDimValue ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetValue() As DrawingDimValueReturns the drawing value of the drawing dimension.Example:This example retrieves in DimDimValue value of the MyDimension drawingdimension.Dim DimDimValue As DrawingDimValueSet DimDimValue = MyDimension.GetValueSee also:DrawingDimValue
- Return type:
- property half_dim_mode: bool¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property HalfDimMode() As booleanReturns or sets half dimension mode or not.Example:This example retrieves half dimension mode or not MyDimension drawingdimension.oHalfDimMode = MyDimension.HalfDimMode
- Return type:
bool
- property is_clipped: bool¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property IsClipped() As boolean (Read Only)Returns the clipping status of the dimension. Returns TRUE if the dimensionsi clippedExample:This example gets clipping status of MyDimension path.myDimensionClippingStatus=MyDimension.IsClipped
- Return type:
bool
- move_value(x: float, y: float, sub_part: int, dim_angle_behavior: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub MoveValue(double X,double Y,long SubPart,long DimAngleBehavior)Move dimension value.Parameters:XX coordinate of position.YY coordinate of position.SubPartDefines which part of the dimension should bemoved.-1 = Value (vertical move is take account according ptPos coordinates)0 = Both dimension line and value1 = Value2 = Dimension line3 = Secondary part4 = Secondary part and value5 = Secondary part and dimension line6 = Secondary part, dimension line and value7 = Value leader (for dimension line with leader one part or two parts)DimAngleBehaviorDefines angle dimension line behavior.0 = Sector angle is switched when ptPos is in opposite sector (Default)1 = Sector angle is kept what ever ptPos placementExample:This example move dimension value MyDimensionpath.MyDimension.MoveValue(X, Y, SubPart,DimAngleBehavior)
- Parameters:
x (float) –
y (float) –
sub_part (int) –
dim_angle_behavior (int) –
- Return type:
None
- property nb_ext_line: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property NbExtLine() As long (Read Only)Returns numbers of extension line of dimension.Example:This example retrieves numbers of extension line of dimensionMyDimension drawing dimension.oNbExtline = MyDimension.NbExtLine
- Return type:
int
- property nb_symb: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property NbSymb() As long (Read Only)Returns numbers of symbol of dimension.Example:This example retrieves numbers of symbol of dimension MyDimensiondrawing dimension.oNbSymb = MyDimension.NbSymb
- Return type:
int
- property parameters: Parameters¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Parameters() As Parameters (Read Only)Returns the collection of parameters of the dimension.Warning: The returned parameters collection does not support addingparameters, it is mainly provided to access dimensionvalue.Example:This example retrieves in DimensionParameters the collectionofparameters currently managed by a dimension.Dim DimensionParameters As ParametersSet DimensionParameters = MyDimension.ParametersDim DimValueParameter As ParameterSet DimValueParameter = DimensionParameters.Item(“Measured length”)
- Return type:
- restore_value_position() None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub RestoreValuePosition()Restore dimension value position.Example:This example gets Restore dimension value position of MyDimensionpath.MyDimension.RestoreValuePosition()
- Return type:
None
- set_clip(x: float, y: float, i_kept_side: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetClip(double X,double Y,long iKeptSide)Creates a clip on the dimension at the given point, with respect to theside given by iKeptSide. The value of this parameter can be 1 or 2, and thekept side will be the one corresponding respectively to ptldc1 and ptldc2 fromGetGeomInfo method defined in CATIADrawingDimensionLine idl interface.interface.Parameters:iXX coordinate of position.iYY coordinate of position.iKeptSideDefines which part of the dimension should be kept.Example:This example clips dimension MyDimension path.MyDimension.SetClip(X, Y, 1)
- Parameters:
x (float) –
y (float) –
i_kept_side (int) –
- Return type:
None
- set_tolerances(i_tol_type: int, itol_name: str, i_up_tol: str, i_low_tol: str, id_up_tol: float, id_low_tol: float, display_mode: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetTolerances(long iTolType,CATBSTR itolName,CATBSTR iUpTol,CATBSTR iLowTol,double idUpTol,double idLowTol,long DisplayMode)Set tolerance information of dimension value.Parameters:iTolTypeTolerance typeitolNameTolerance nameiUpTolUpper tolerance value (alpha numerical type)iLowTolLower tolerance value (alpha numerical type)idUpTolUpper tolerance value (numerical type)idLowTolLower tolerance value (numerical type)DisplayModeTolerance display modeExample:This example sets tolerance information of MyDimensionpath.MyDimension.SetTolerances(iTolType, itolName, iUpTol, iLowTol,idUpTol, idLowTol, DisplayMode)
- Parameters:
i_tol_type (int) –
itol_name (str) –
i_up_tol (str) –
i_low_tol (str) –
id_up_tol (float) –
id_low_tol (float) –
display_mode (int) –
- Return type:
None
- property symbols_side: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property SymbolsSide() As longReturns or sets symbol side of dimension line. Legal values: 0 : Automatic positioning (Inside orOutside). 1 : Symbols are inside. 2 : Symbols are outside. 3 : First symbol inside , second symboloutside. 4 : First symbol outside, second symbol inside.Example:This example retrieves symbol side of dimension line MyDimensiondrawing dimension.oSymbSide = MyDimension.SymbolsSide
- Return type:
int
- property true_dim_mode: bool¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property TrueDimMode() As boolean (Read Only)Returns or sets true dimension mode or not.Example:This example retrieves true dimension mode or not MyDimension drawingdimension.oTrueDimMode = MyDimension.TrueDimMode
- Returns:
bool
- unclip() None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub Unclip()Unclip the dimension if it is clipped.Example:This example unclip MyDimension path.if MyDimension.IsClipped thenMyDimension.Unclip
- Return type:
None
- property value_angle: float¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ValueAngle() As doubleReturns or sets angle of dimension value.Example:This example retrieves angle of dimension value MyDimension drawingdimension.oValueAng = MyDimension.ValueAngle
- Return type:
float
- property value_auto_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ValueAutoMode() As longReturns or sets auto mode of dimension value or not.Example:This example retrieves auto mode of dimension value or not MyDimensiondrawing dimension.oValueAutoMode = MyDimension.ValueAutoMode
- Return type:
int
- property value_display: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ValueDisplay() As longReturns or sets display of dimension value state.Example:This example retrieves display of dimension value state MyDimensiondrawing dimension.oValueDisplay = MyDimension.ValueDisplay
- Return type:
int
- property value_frame: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ValueFrame() As CatDimFrameReturns or sets frame type of dimension value.Example:This example retrieves frame type of dimension value MyDimensiondrawing dimension.oValueFrame = MyDimension.ValueFrame
- Returns:
enum cat_dim_frame
- Return type:
int
- property value_in_out: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ValueInOut() As longReturns or sets in/out mode of dimension value or not.Example:This example retrieves in/out mode of dimension value or notMyDimension drawing dimension.oInOut = MyDimension.ValueInOut
- Return type:
int
- property value_orientation: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ValueOrientation() As CatDimOrientationReturns or sets orientation of dimension value.Example:This example retrieves orientation of dimension value MyDimensiondrawing dimension.oValueOrient = MyDimension.ValueOrientation
- Returns:
enum cat_dim_orientation
- Return type:
int
- property value_reference: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ValueReference() As CatDimReferenceReturns or sets reference of dimension value.Example:This example retrieves reference of dimension value MyDimension drawingdimension.oValueRef = MyDimension.ValueReference
- Returns:
enum cat_dim_reference
- Return type:
int