
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Please don't judge 😉
Inventor Professional 2017
I'm not a programmer and basically get ilogic to work through google searches and trial and error! I've update our assembly and ipt templates to include a "TEXTURE" parameter. This is a true/false parameter. I'd like to create ilogic to add this parameter to older files as needed. I've got everything working in the part files but the assembly file is giving me an error. Here's the portion of code that works for the part file to get the parameter added...
'add TEXTURE parameter if it doesn't exist Try 'Change value of param Parameter("TEXTURE") = "True" Catch 'Create Param as it doesn't exist Dim oUserParam1 As UserParameter oUserParam1 = ThisDoc.Document.ComponentDefinition.Parameters.UserParameters.AddByValue("TEXTURE", False, "BOOLEAN") End Try
In the assembly file the rule is getting hung up on this portion of the code and gives this error...
Error in rule: TEST NEW UPDATE IAM, in document: 87210.iam
Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
What am I doing wrong? Obviously there's some programming language difference between a part file and an assembly file but I'm not nearly smart enough to know what it is. Any help would be appreciated.
Thank You!
Solved! Go to Solution.