Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
ngnam1988
240 Views, 3 Replies

How to set/modify "Notes and Leaders" in Style and Standard Editor/Dimension via API?

Dears,

I'm looking for the guide to set/modify "Notes and Leaders" in Style and Standard Editor/Dimension via API?

Note Format:

ngnam1988_0-1718525291945.png

Thank you very much!

Hi,

In the local style or the style library?

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Hi @bradeneuropeArthur 

Is is possible in Local Style?

WCrihfield
in reply to: ngnam1988

I do not believe we can modify those specific settings by Inventor API code.  I know we can access a lot of the settings within the DimensionStyle object by code, but not all of them yet.  I think the only setting on that 'Notes and Leaders' tab we can access is the DimensionStyle.LeaderStyle property.  Likely the only way to change those settings, other than through that dialog, is by exporting that style definition out as a ".styxml" file, then opening and editing that file by code, then importing it again.  But I have never attempted to open and edit one of those types of files by code before, and frankly would not want to either.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)