Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
jjstr8
in reply to: bshbsh

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.