Addin Class with Apprentice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
Are you not able to use InventorApprentice & Inventor in the same Class project?
in my addin project, I obviously have Inventor Imported & referenced. A particular function I need requires Apprentice but it keeps erroring. I have tried many ways:
Dim apprentice As New InventorApprentice.ApprenticeServerComponent Dim jdoc As InventorApprentice.ApprenticeServerDocument = apprentice.Open(pPath)
Dim apprentice As New Inventor.ApprenticeServerComponent Dim jdoc As Inventor.ApprenticeServerDocument = apprentice.Open(pPath)
Dim apprentice As New ApprenticeServerComponent Dim jdoc As ApprenticeServerDocument = apprentice.Open(pPath)
I have even tried placing the members as public in my form but I get the error:
when I create a NEW project and just put this in (with imports & reference)
Dim apprentice As New Inventor.ApprenticeServerComponent Dim jdoc As Inventor.ApprenticeServerDocument = apprentice.Open(pPath) Msgbox(jdoc.FullFileName)
it works correctly and give me the full path of the file. Using a msgbox to check the same in my Addin Project gives me the error......
Can I use both? If not, is there a workaround? The function I need only works with Apprentice
Thanks
Nacho
Nacho
Automation & Design Engineer
Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.