04-16-2020
01:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-16-2020
01:06 PM
Quite a bit more playing, the root of it all appears to be stemmed from some declarations...
Sub FlatPlanes CreateFlatPlanes = False Dim oDoc As Document = ThisDoc.Document Dim oAsmCompDef As AssemblyComponentDefinition = oDoc.ComponentDefinition 'Error occurs here
At this point, I get this error after the file is saved..
Error in rule: Plane Generator, in document: Plane Int Test.iam
Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
Making this document declaration change...
Sub FlatPlanes CreateFlatPlanes = False Dim oDoc As AssemblyDocument = ThisDoc.Document Dim oAsmCompDef As AssemblyComponentDefinition = oDoc.ComponentDefinition 'Error occurs here
Gives me this error instead...
Error in rule: Plane Generator, in document: Plane Int Test.iam
Object of type 'System.__ComObject' cannot be converted to type 'Inventor.ComponentOccurrence'.
For some reason, I am now getting errors when I try to declare a variable name for my assembly component definitions.
Autodesk Inventor Certified Professional