Jump to content

Inventor VBA Macro - How to left justify the title text on a custom table?


KennyJ

Recommended Posts

I'm having trouble getting the Title text to justify to the left on a custom table in Inventor.

 

oGenericTable.TitleTextStyle.HorizontalJustification = kAlignTextLeft

 

The above does not seem to do anything. The table title stays centered.

even when I look at the text style I have set for the title it is set to left justify and the title is centered. I wonder if it is hard coded to stay centered? But if that was the case then why is (TitleTextStyle.HorizontalJustification) even part of that object?

Link to comment
Share on other sites

I got the reply below from the Autodesk staff on their community forums. It is not possible.

 

"Hi,

 

Sorry there is not such API. in UI we can’t justify it neither, it should be controlled by table style(Table(ANSI))-> text style(Note Text (ANSI)). But if you modify the justifications they don’t apply to the custom table title. Sorry if this is a bad news to you.

 

 

Xiaodong Liang

Developer Technical Services

Autodesk Developer Network

"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...