Message 1 of 8
Editing documents in libraries paths via API isn't allowed anymore. 2018 vs 2017
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In Inventor 2018 build 112, every document's change made via API throws COMException if the document is in libraries path.
This behavior is different from Inventor's previous versions and that's a problem for some commands I wrote in the past.
I've attached a simple solution for reproduce the problem.
How it's work:
- Launch Inventor (2017 or 2018)
- Open an ipt (lib path or other path)
- Build and run InvExeApp.exe
- Click on execute button of the form
If Inventor is Inventor 2018 and the ipt is in libraries path then an exception will be thrown, otherwise everything will be ok.
The exception is thown at this line:Snippet
customPropSet.Add(PropertyValue, PropertyName)