- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The error information suggests that the error is happening at one of the Parameter("", "")= type of lines of code. Here is a link to the online help page for that iLogic snippet:
https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=3dfb2e63-5750-d8a2-6d5c-5ae6bb99b9f9
The first input of the two, should either be the name of an assembly component, exactly as it is in the model browser, which can usually be obtained from the ComponentOccurrence.Name property. And if specifying a referenced document, instead of an assembly component, you can usually use the Document.DisplayName value of the document, but that doesn't always work 100% of the time either. The DisplayName is a bit unstable, because it is a Read/Write property, and sometimes it contains the file extension, and sometimes it does not. If it is the first input section of the Parameter() call that is causing problems, maybe try using API code instead of that iLogic snippet. The API way goes through the Document.ComponentDefinition.Parameters.Item("ParameterName").Value route. But those values are 'database units' instead of document or parameter units, so that can be a little annoying.
Wesley Crihfield
(Not an Autodesk Employee)