- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, everyone,
I am creating a part document from a custom part template using such as:
Dim oPartDoc As PartDocument
oPartDoc = ThisApplication.Documents.Add(DocumentTypeEnum.kPartDocumentObject, "C:\3D\......\my_std_part.ipt", False)
Before saving it, I want to assemble it into an assembly using (the purpose of this is to preview how this new part fit in the assembly first, then decide keep it or not):
oOcc = ThisApplication.ActiveDocument.ComponentDefinition.Occurrences.Add(full_path_file_name, oPositionMatrix)
Because I do not save it yet, this oPartDoc only has a name such as Part1, Part2 and so on assigned by system, but without a full path name. So is it possible adding this oPartDoc into an assmebly, and save it later?
Thank you very much in advance.
Limin
Inventor pro 2023 64 bit update 5.3; Windows 11 pro 64 bit version 24H2; Office 2013 64 bit
Solved! Go to Solution.