iLogic for idw from iam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It seems when it gets to this line:
oBaseView = oSheet.DrawingViews.AddBaseView(oAsmCompDef,oPoint
it gives this error:
Error in rule: Rule0, in document: DUMMY WELDMENT.iam
Unable to cast COM object of type 'System.__ComObject' to interface type 'Inventor._Document'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{70109AA1-63C1-11D2-B78B-0060B0EC020B}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Now, let's start off by stating that I have absolutely no idea what I'm doing. I'm just grabbing bits and pieces from other peoples code and trying to reconcile the variables. If someone could just point me in the direction of some sort of syntax so I can figure out what is supposed to be in that statement, that would be great, but I look at it and it all seems like gobbledygook and maybe the error is saying that it is.
I'll attach the whole code if anyone wants to point and laugh. (But if you had some constructive criticism that'd be okay too.)
I've got something misplaced or misspelled or something but I really don't know what it's supposed to look like, so I could really use some help. If anyone can even just tell me where to go to find out what these commands are supposed to look like it would be a big help.
Thank you for taking the time to assist me. I really appreciate it.