03-10-2024
11:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-10-2024
11:09 AM
In the link to the general note text style supplied earlier there is a vba sample to add note from scratch and set the style. Here is the link again.
https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GeneralNote_TextStyle
Also your not looping through general notes collection.
Instead of this
For Each oNote In ThisDoc.Document.ActiveSheet.DrawingNotesIt should be
For Each oNote In ThisDoc.Document.ActiveSheet.DrawingNotes.GeneralNotesAnd when your setting the style you should use the variable you declared for the object
So instead of this
GeneralNote.TextStyle = "....."It should be
oNote.TextStyle = '......
If this solved a problem, please click (accept) as solution.
Or if this helped you, please, click (like)
Regards
Alan
Or if this helped you, please, click (like)
Regards
Alan