pycatia.drafting_interfaces.drawing_dim_value¶
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_dim_value.DrawingDimValue(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDrawingDimValueManages dimension value of a dimension in drawing view.This interface is obtained from DrawingDimension.GetValuemethod.- property fake_dim_type: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property FakeDimType() As CatDimFakeReturns or sets fake dimension type of value.Example:This example retrieves fake dimension type of value MyDimValue drawingdimension.oFakeType = MyDimValue.FakeDimType
- Returns:
enum cat_dim_fake
- Return type:
int
- get_bault_text(i_index: int, o_before: str, o_after: str, o_upper: str, o_lower: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub GetBaultText(long iIndex,CATBSTR oBefore,CATBSTR oAfter,CATBSTR oUpper,CATBSTR oLower)Get bault text of dimension value.Parameters:iIndex1: main value 2: dual valueoBeforebefore text.oAfterafter textoUpperupper textoLowerlower textExample:This example gets bault text of MyValue path.MyValue.GetBaultText(iIndex, oBefore, oAfter, oUpper,oLower)
- Parameters:
i_index (int) –
o_before (str) –
o_after (str) –
o_upper (str) –
o_lower (str) –
- Return type:
None
- get_display_unit(i_index: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetDisplayUnit(long iIndex) As longGet display unit of dimension value.Parameters:Index1: main value 2: dual valueoDisplUnitbefore text.Example:This example gets format unit of MyValue path.FrmUnit = MyValue.GetDisplayUnit(iIndex)
- Parameters:
i_index (int) –
- Return type:
int
- get_fake_dim_value(i_index: int) str ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetFakeDimValue(long iIndex) As CATBSTRGet fake value of dimension.Parameters:iIndex1: main value 2: dual valueoFakeDimValuebefore text.Example:This example gets fake value of MyValue path.FakeDimValue = MyValue.GetFakeDimValue(iIndex)
- Parameters:
i_index (int) –
- Return type:
str
- get_format_display_factor(i_index: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetFormatDisplayFactor(long iIndex) As longGet format display factor of dimension value.Parameters:iIndex1: main value 2: dual valueoFrmDspFactbefore text.Example:This example gets format display factor of MyValuepath.FrmDspFact = MyValue.GetFormatDisplayFactor(iIndex)
- Parameters:
i_index (int) –
- Return type:
int
- get_format_name(i_index: int) str ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetFormatName(long iIndex) As CATBSTRGet format name of dimension value.Parameters:iIndex1: main value 2: dual valueoFmNamebefore text.Example:This example gets format name of MyValue path.FmName = MyValue.GetFormatName(iIndex)
- Parameters:
i_index (int) –
- Return type:
str
- get_format_precision(index: int) float ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetFormatPrecision(long Index) As doubleGet format precision of dimension value.Parameters:iIndex1: main value 2: dual valueoFrmPrecisionbefore text.Example:This example gets format precision of MyValuepath.FrmPrecision = MyValue.GetFormatPrecision(iIndex)
- Parameters:
index (int) –
- Return type:
float
- get_format_type(i_index: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetFormatType(long iIndex) As longGet format type of dimension value.Parameters:iIndex1: main value 2: dual valueoFrmTypebefore text.Example:This example gets format type of MyValue path.FrmType = MyValue.GetFormatType(iIndex)
- Parameters:
i_index (int) –
- Return type:
int
- get_format_unit(i_index: int) int ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetFormatUnit(long iIndex) As longGet format unit of dimension value.Parameters:Index1: main value 2: dual valueoFrmUnitbefore text.Example:This example gets format unit of MyValue path.FrmUnit = MyValue.GetFormatUnit(iIndex)
- Parameters:
i_index (int) –
- Return type:
int
- get_ps_text(i_index: int, o_prefix: str, o_suffix: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub GetPSText(long iIndex,CATBSTR oPrefix,CATBSTR oSuffix)Get PS text to dimension value.Parameters:iIndex1: main value 2: dual valueoPrefixprefix text.oSuffixsuffix textExample:This example gets PS text of MyValue path.MyValue.GetBaultText(iIndex, oPrefix, oSuffix)
- Parameters:
i_index (int) –
o_prefix (str) –
o_suffix (str) –
- Return type:
None
- get_scored_element(i_index: int) bool ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Func GetScoredElement(long iIndex) As booleanGet dimension scored element.Parameters:iIndex1: main value 2: dual valueoScoredElementTRUE: Scoring is applied to the all bloc text. FALSE: Scoring isonly applied to the value.Example:This example gets dimension scored element of MyValuepath.ScoredElement = MyValue.GetScoredElement(iIndex)
- Parameters:
i_index (int) –
- Return type:
bool
- property scoring_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ScoringMode() As CatDimScoreGet dimension scoring mode.Example:This example gets dimension scoring mode of MyValue path.ValueScoreType = MyValue.ScoringMode
- Returns:
enum cat_dim_score
- Return type:
int
- set_bault_text(i_index: int, i_before: str, i_after: str, i_upper: str, i_lower: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetBaultText(long iIndex,CATBSTR iBefore,CATBSTR iAfter,CATBSTR iUpper,CATBSTR iLower)Set bault text to dimension value.Parameters:iIndex1: main value 2: dual valueiBeforebefore text.iAfterafter textiUpperupper textiLowerlower textExample:This example sets bault text of MyValue path.MyValue.SetBaultText(iIndex, iBefore, iAfter, iUpper,iLower)
- Parameters:
i_index (int) –
i_before (str) –
i_after (str) –
i_upper (str) –
i_lower (str) –
- Return type:
None
- set_fake_dim_value(i_index: int, i_fake_dim_value: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetFakeDimValue(long iIndex,CATBSTR iFakeDimValue)Set fake value of dimension value.Parameters:iIndex1: main value 2: dual valueiFakeDimValuebefore text.Example:This example gets fake value of MyValue path.MyValue.SetFakeDimValue(iIndex, iFakeDimValue)
- Parameters:
i_index (int) –
i_fake_dim_value (str) –
- Return type:
None
- set_format_display_factor(i_index: int, i_frm_dsp_fact: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetFormatDisplayFactor(long iIndex,long iFrmDspFact)Set format display factor of dimension value.Parameters:iIndex1: main value 2: dual valueiFrmDspFactbefore text.Example:This example gets format display factor of MyValuepath.MyValue.SetFormatDisplayFactor(iIndex,iFrmDspFact)
- Parameters:
i_index (int) –
i_frm_dsp_fact (int) –
- Return type:
None
- set_format_name(i_index: int, i_frm_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetFormatName(long iIndex,CATBSTR iFrmName)Set format name of dimension value.Parameters:iIndex1: main value 2: dual valueiFrmNamebefore text.Example:This example gets format name of MyValue path.MyValue.SetFormatName(iIndex, iFrmName)
- Parameters:
i_index (int) –
i_frm_name (str) –
- Return type:
None
- set_format_precision(i_index: int, i_frm_precision: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetFormatPrecision(long iIndex,double iFrmPrecision)Set format precision of dimension value.Parameters:iIndex1: main value 2: dual valueiFrmPrecisionbefore text.Example:This example gets format precision of MyValuepath.MyValue.SetFormatPrecision(iIndex, iFrmPrecision)
- Parameters:
i_index (int) –
i_frm_precision (float) –
- Return type:
None
- set_format_type(i_index: int, i_frm_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetFormatType(long iIndex,long iFrmType)Set format type of dimension value.Parameters:iIndex1: main value 2: dual valueiFrmTypebefore text.Example:This example gets format type of MyValue path.MyValue.SetFormatType(iIndex, iFrmType)
- Parameters:
i_index (int) –
i_frm_type (int) –
- Return type:
None
- set_format_unit(i_index: int, i_frm_unit: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetFormatUnit(long iIndex,long iFrmUnit)Set format unit of dimension value.Parameters:iIndex1: main value 2: dual valueiFrmUnitbefore text.Example:This example gets format unit of MyValue path.MyValue.SetFormatUnit(iIndex, iFrmUnit)
- Parameters:
i_index (int) –
i_frm_unit (int) –
- Return type:
None
- set_ps_text(i_index: int, i_prefix: str, i_suffix: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetPSText(long iIndex,CATBSTR iPrefix,CATBSTR iSuffix)Set PS text to dimension value.Parameters:iIndex1: main value 2: dual valueiPrefixprefix text.iSuffixsuffix textExample:This example sets PS text of MyValue path.MyValue.SetBaultText(iIndex, iPrefix, iSuffix)
- Parameters:
i_index (int) –
i_prefix (str) –
i_suffix (str) –
- Return type:
None
- set_scored_element(i_index: int, i_scored_element: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub SetScoredElement(long iIndex,boolean iScoredElement)Set dimension scored element.Parameters:iIndex1: main value 2: dual valueiScoredElementTRUE: Scoring is applied to the all bloc text. FALSE: Scoring isonly applied to the value.Example:This example gets dimension scored element of MyValuepath.MyValue.SetScoredElement(iIndex, iScoredElement)
- Parameters:
i_index (int) –
i_scored_element (bool) –
- Return type:
None
- property value: float¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Value() As double (Read Only)Returns value of dimension.Example:This example retrieves value of dimension MyDimValue drawingdimension.oValue = MyDimValue.Value
- Return type:
float
- property value_framed_element: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ValueFramedElement() As CatDimFramedElementGet dimension framed element.Example:This example gets dimension framed element of MyValuepath.ValueFramedElement = MyValue.ValueFramedElement
- Returns:
enum cat_dim_frame_element
- Return type:
int
- property value_framed_group: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property ValueFramedGroup() As CatDimFramedGroupReturns or sets dimension framed group.Example:This example retrieves dimension framed group MyDimValue drawingdimension.oValueFramedGroup = MyDimValue.FakeDimType
- Returns:
enum cat_dim_framed_group
- Return type:
int