×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Text spacing and ratio set in drawing vba catia

Text spacing and ratio set in drawing vba catia

Text spacing and ratio set in drawing vba catia

(OP)
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

RE: Text spacing and ratio set in drawing vba catia

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



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 --> catvba

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

Dim drawingTextProperties1 As DrawingTextProperties
Set drawingTextProperties1 = drawingText1.TextProperties 

Drew Mumaw
www.textsketcher.com
www.drewmumaw.com

RE: Text spacing and ratio set in drawing vba catia

Does anyone knows how to take the spacing between two rows of text? or this is not exposed for programming?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources