04-28-2023
08:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-28-2023
08:45 AM
Check the API help for more information. "Context" is just the name of the parameter in the ApplicationEvents.OnSaveDocument event declaration. It's a NameValueMap type, which is essentially a collection of key-value pairs. The help file has information on accessing a NameValueMap object. Accessing "Context" shouldn't be slow, but if you run into anything that seem slow, post your code for others to look at. Inventor doesn't have any checks when accessing a NameValueMap, so if the name doesn't exist it will throw an exception. It's probably easier just to loop through based on Count and look for a specific name. It's 1-based index not a zero-based index in case you've tried it and get an error.