Adding a Custom Class Module in Inventor API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey all,
Almost every drawing I produce has an assembly and its component parts detailed on the same sheet, along with an assembly-level parts-only Parts List that I use to assign labels to the component views. Many times, I have multiple assemblies and parts lists on the same sheet. I wrote a macro that allows me to click the source parts list, then click the individual views I want to label, and the macro reads the parts list and assigns the appropriate values to the views automatically. However, any subsequent changes to the parts list require me to run the macro again to update the part views.
Problem: I'd like to add functionality to my macro that will remember what component views belong to which parts lists and update the views any time the parts list changes. I can use nested collections to accomplish that task at the macro-level, but the collections won't be attached to the Drawing document, so the changes won't follow the file.
It seems like I need to add a custom class to Inventor that will allow me to attach my collections so they follow the drawing. Something like DrawingDocument.ViewLinks, where each ViewLink is an collection consisting of a PartsList object in index 1 as the source, and multiple DrawingView objects.
TL;DR Is it possible to add custom class modules to Inventor?

