11-12-2015
04:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-12-2015
04:09 AM
Hi, aren't you trying to create new part using your template? For it works the code below:
Dim g_App As Inventor.InventorServer = ThisApplication Dim oNewPart As AssemblyDocument oNewPart = g_App.Documents.Add(DocumentTypeEnum.kPartDocumentObject, , True)
Else use the folowing: (False to open it invisibly)
oApp = Marshal.GetActiveObject("Inventor.Application")
oDocs = oApp.Documents
oDoc = oDocs.Open("C:\Template.ipt", False)
Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods
- - - - - - - - - - - - - - -
Regards,
Mike
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods