Message 1 of 4
Changing derived part with ilogic

Not applicable
01-31-2020
06:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to change which part my part is being derived from using this:
ThisApplication.ActiveDocument.File.ReferencedFileDescriptors.Item(1).ReplaceReference("FullFileNameAndExtension")
...but i keep getting the Error "the parameter is incorrect". I've checked my FullFileNameAndExtension is correct by using:
ThisApplication.Documents.Open("FullFileNameAndExtension", True)
... and this opens the new part fine.
I've also checked that the following is not nothing:
ThisApplication.ActiveDocument.File.ReferencedFileDescriptors.Item(1)
...and it is something!
What am i doing wrong?