Inventor DrawingNote.FormattedText in code

Inventor DrawingNote.FormattedText in code

JamieVJohnson2
Collaborator Collaborator
1,182 Views
2 Replies
Message 1 of 3

Inventor DrawingNote.FormattedText in code

JamieVJohnson2
Collaborator
Collaborator

Is there an explanation of all the formatting codes understood by the Inventor DrawingNote class I can get?  I would like to look into modifying the text with bullets and numbering via code, as well as other features of the text.  Currently playing with 2018 and 2019 versions of Inventor.

 

Thanks,

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes
Accepted solutions (1)
1,183 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor
Accepted solution

There should be a direct link to this topic from the methods and properties that use formatted text, but here's a direct link that explains all of the formatting options.

 

http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-915B75BA-4696-4fc7-A2C6-54B2BACDE7E1

 

I've found that one of the best things to do is to manually create the text you want and then use the API to get the formatted text from it.  That way you have exactly what you need.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 3 of 3

JamieVJohnson2
Collaborator
Collaborator

Very closely accurate to my request.  However, it has no information regarding Bullets and numbering codes.  I did the test you speak, but am looking for 'hidden features'  So far my discovery is, there are none.  The XML tags for <Numbering > with Format='x' property, is all there appears to be; no Value='', no Start='', or any other abilities that can be found in similar systems on the web.  Users are still looking for numbers that can be nested (outline mode), or restart after a gap.  So even in 2019 we are in the same boat that was requested to be solved way back in 2007.  Alas, a powerful text editor Inventor does not yet have, when compared to AutoCAD's text editor.

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes