iProperties in referenced document (Modelstate) + Vault
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I've create a userform which does show the iProperties of the active drawing and it's referenced document (IPT/IAM). Also it lets me "transfer" the iProperty values of the drawing, which you can edit via the form, to the referenced document (so the title block of the drawing updates).
I've also added some code so you can choose the referenced document to write to, when there is more than one referenced document.
Now to my actual problem:
I've came across an exception where the drawing has an assembly with 2 custom modelstates and the default modelstate. Only the 2 custom modelstates are displayed on the drawing. By looking at the "api tree" I've found out that Inventor also creates 2 referenced Document Items, which makes sense. The problem is that if I write the iproperty values of the drawing to one of these Items and check them into Vault the "title" iproperty, for example, remains empty. Also the title block "title" remains empty. I've also found out that you have to write the iproperties into the default modelstate of the referenced document for it to show in the title block as well as in Vault.
My question is how can I access the propertysets of the default modelstate if it isn't present in the drawing?
Of course I could open the part or assembly and fill out the information manually, but that's kind of against why I created the form in the first place, to not have to edit both files.