pycatia.drafting_interfaces.drawing_text_properties¶
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_text_properties.DrawingTextProperties(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchDrawingTextPropertiesRepresents the properties of a drawing text in a drawing view.This interface is obtained from CATIADrawingText or CATIADrawingWeldinginterface. Update method must be called after text properties modification torefresh the visualization.- activate_frame(i_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub ActivateFrame(CatTextFrameType iType)Activates the text frame of the drawing text.Parameters:iTypeThe text frame typeExample:This example add a rectangle frame to MyText drawingtext.CatTextFrameType itype = catRectangleMyText.ActivateFrame itypeExample:This example remove the frame to MyText drawing text.CatTextFrameType itype = catNoneMyText.ActivateFrame itype
- Parameters:
i_type (int) – enum cat_text_frame_type
- Return type:
None
- property anchor_point: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property AnchorPoint() As CatTextAnchorPositionReturns or sets the anchor point of the drawing text.Example:This example sets the AnchorPoint of the MyText drawing text to therightMyText.AnchorPoint = catRight
- Returns:
enum cat_text_anchor_position
- Return type:
int
- property blanking: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Blanking() As CatBlankingModeReturns or sets the blanking mode of the drawing text.Example:This example sets the blanking mode type of MyText drawing text toactive on geomMyText.Blanking = catBlankingOnGeom
- Returns:
enum cat_blanking_mode
- Return type:
int
- property bold: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Bold() As longReturns or sets the drawing text font bold property.True if the drawing text is bold formatted.Example:This example get the parameter bold on MyText drawingtext.oVal = MyText.Bold
- Return type:
int
- property color: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Color() As longReturns or sets the color of the drawing text.Example:This example sets the Color type of the MyText drawing text toredredCol =-16776961 ‘Encoded RGBA color within long integer (R=255 G=0B=0 A=255)MyText.Color = redCol
- Return type:
int
- property font_name: str¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property FontName() As CATBSTRReturns or sets the font name of the drawing text.Example:This example sets the MyText drawing text font as Courrier 10BT.MyText.SetFontName(“Courrier 10 BT”)
- Return type:
str
- property font_size: float¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property FontSize() As doubleReturns or sets the font size of the drawing text.Example:This example sets the MyText drawing text font size to3.5.iFontSize = 3.5MyText.SetFontSize 0, 0, iFontSize
- Return type:
float
- property frame_type: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property FrameType() As CatTextFrameTypeReturns or sets the frame type of the drawing text.Example:This example sets the frame type of the MyText drawing text to anellipseMyText.FrameType = catEllipse
- Returns:
enum cat_text_frame_type
- Return type:
int
- property italic: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Italic() As longReturns or sets the drawing text font italic property.True if the drawing text is formatted as italic.Example:This example set the parameter Italic on MyText drawingtext.MyText.Italic = 1
- Return type:
int
- property justification: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Justification() As CatJustificationReturns or sets the drawing text font justificationproperty.True if the drawing text font is justified.Example:This example sets the Justification type of the MyText drawing text tothe rightMyText.Justification = catRight
- Returns:
enum cat_justification
- Return type:
int
- property kerning: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Kerning() As longFont kerning property.True if the drawing text font is formatted as kerningExample:This example set the parameter kerning on MyText drawingtext.MyText.Kerning = 1
- Return type:
int
- property mirror: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Mirror() As CatTextFlipModeReturns or sets the mirroring of the drawing text.Example:This example sets the Mirror type of the MyText drawing text to noflipMyText.Mirror = catTextNoFlip
- Returns:
enum cat_text_flip_mode
- Return type:
int
- property overline: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Overline() As longReturns or sets the drawing text font overline property.True if the drawing text is overlined.Example:This example get the parameter Overline on MyText drawingtext.oval = MyText.Overline()
- Return type:
int
- property strike_thru: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property StrikeThru() As longReturns or sets the drawing text font strikethroughproperty.True if the drawing text font is striked through.Example:This example set the parameter StrikeThru on MyText drawingtext.MyText.StrikeThru = 1
- Return type:
int
- property subscript: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Subscript() As longReturns or sets the drawing text font subscript property.True if the drawing text font is formatted as subscript.Example:This example set the parameter Subscript on MyText drawingtext.MyText.Subscript = 1
- Return type:
int
- property superscript: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Superscript() As longReturns or sets the drawing text font superscriptproperty.True if the drawing text font is formatted as superscript.Example:This example set the parameter Superscript on MyText drawingtext.MyText.Superscript = 1
- Return type:
int
- property underline: int¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Underline() As longReturns or sets the drawing text font underline property.True if the drawing text is underlined.Example:This example get the parameter bold on MyText drawingtext.oval = MyText.Underline
- Return type:
int
- update() None ¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
- o Sub Update()Update the properties of the drawing text.Example:This example update the properties to MyText drawing text.MyText.UpdateCopyright © 1999-2011, Dassault Systèmes. All rightsreserved.
- Return type:
None