Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text spacing and ratio set in drawing vba catia 1

Status
Not open for further replies.

Macro2015

Automotive
Jan 19, 2015
10
SI
Hello,

I can not figure it out how to set Spacing or Ratio in drawing text from VBA.

I know how to adjust eg. Text.SetFontName 0,0, "Arial" or Text.SetFontSize 0,0, 2, but how to adjust spacing?

Some ideas?

Thank you
 
Replies continue below

Recommended for you

I couldn't find the Character options exposed to automation.

1-12-2017_6-25-23_PM_pccu1i.jpg


Some of the other options can be accessed via the TextProperties object, but I couldn't find Spacing or Ratio. You would probably need CAA. Maybe someone else can confirm.

Code:
Dim drawingText1 As DrawingText
Set drawingText1 = drawingTexts1.GetItem("Text.1")

Dim drawingTextProperties1 As DrawingTextProperties
Set drawingTextProperties1 = drawingText1.TextProperties

Drew Mumaw
 
Does anyone knows how to take the spacing between two rows of text? or this is not exposed for programming?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top