Indexes   

DrawingTextProperties (Object)

Represents the properties of a drawing text in a drawing view.

This interface is obtained from CATIADrawingText or CATIADrawingWelding interface. Update method must be called after text properties modification to refresh the visualization.


Property Index

AnchorPoint
Returns or sets the anchor point of the drawing text.
Blanking
Returns or sets the blanking mode of the drawing text.
Bold
Returns or sets the drawing text font bold property.
Color
Returns or sets the color of the drawing text.
FontName
Returns or sets the font name of the drawing text.
FontSize
Returns or sets the font size of the drawing text.
FrameType
Returns or sets the frame type of the drawing text.
Italic
Returns or sets the drawing text font italic property.
Justification
Returns or sets the drawing text font justification property.
Kerning
Font kerning property.
Mirror
Returns or sets the mirroring of the drawing text.
Overline
Returns or sets the drawing text font overline property.
StrikeThru
Returns or sets the drawing text font strikethrough property.
Subscript
Returns or sets the drawing text font subscript property.
Superscript
Returns or sets the drawing text font superscript property.
Underline
Returns or sets the drawing text font underline property.

Method Index

ActivateFrame
Activates the text frame of the drawing text.
Update
Update the properties of the drawing text.

Properties


o Property AnchorPoint() As
Returns or sets the anchor point of the drawing text.
Example:
This example sets the AnchorPoint of the MyText drawing text to the right
 MyText.AnchorPoint = catRight
 
o Property Blanking() As
Returns or sets the blanking mode of the drawing text.
Example:
This example sets the blanking mode type of MyText drawing text to active on geom
 MyText.Blanking = catBlankingOnGeom
 
o Property Bold() As
Returns 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 drawing text.
 oVal = MyText.Bold
 
o Property Color() As
Returns or sets the color of the drawing text.
Example:
This example sets the Color type of the MyText drawing text to red
 redCol  =-16776961 'Encoded RGBA color within long integer (R=255 G=0   B=0   A=255)
 MyText.Color = redCol
 
o Property FontName() As
Returns or sets the font name of the drawing text.
Example:
This example sets the MyText drawing text font as Courrier 10 BT.
 MyText.SetFontName("Courrier 10 BT")
 
o Property FontSize() As
Returns or sets the font size of the drawing text.
Example:
This example sets the MyText drawing text font size to 3.5.
 iFontSize = 3.5
 MyText.SetFontSize 0, 0, iFontSize
 
o Property FrameType() As
Returns or sets the frame type of the drawing text.
Example:
This example sets the frame type of the MyText drawing text to an ellipse
 MyText.FrameType = catEllipse
 
o Property Italic() As
Returns 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 drawing text.
 MyText.Italic = 1
 
o Property Justification() As
Returns or sets the drawing text font justification property.
True if the drawing text font is justified.
Example:
This example sets the Justification type of the MyText drawing text to the right
 MyText.Justification = catRight
 
o Property Kerning() As
Font kerning property.
True if the drawing text font is formatted as kerning
Example:
This example set the parameter kerning on MyText drawing text.
 MyText.Kerning = 1
 
o Property Mirror() As
Returns or sets the mirroring of the drawing text.
Example:
This example sets the Mirror type of the MyText drawing text to no flip
 MyText.Mirror = catTextNoFlip
 
o Property Overline() As
Returns or sets the drawing text font overline property.
True if the drawing text is overlined.
Example:
This example get the parameter Overline on MyText drawing text.
 oval = MyText.Overline()
 
o Property StrikeThru() As
Returns or sets the drawing text font strikethrough property.
True if the drawing text font is striked through.
Example:
This example set the parameter StrikeThru on MyText drawing text.
 MyText.StrikeThru = 1
 
o Property Subscript() As
Returns 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 drawing text.
 MyText.Subscript = 1
 
o Property Superscript() As
Returns or sets the drawing text font superscript property.
True if the drawing text font is formatted as superscript.
Example:
This example set the parameter Superscript on MyText drawing text.
 MyText.Superscript = 1
 
o Property Underline() As
Returns or sets the drawing text font underline property.
True if the drawing text is underlined.
Example:
This example get the parameter bold on MyText drawing text.
 oval = MyText.Underline
 

Methods


o Sub ActivateFrame( iType)
Activates the text frame of the drawing text.
Parameters:
iType
The text frame type
Example:
This example add a rectangle frame to MyText drawing text.
 CatTextFrameType itype = catRectangle
 MyText.ActivateFrame itype
 
Example:
This example remove the frame to MyText drawing text.
 CatTextFrameType itype = catNone
 MyText.ActivateFrame itype
 
o Sub Update()
Update the properties of the drawing text.
Example:
This example update the properties to MyText drawing text.
 MyText.Update 
 

Copyright © 2006, Dassault Systèmes. All rights reserved.