apprentice & Design view reps

apprentice & Design view reps

NachoShaw
Advisor Advisor
344 Views
3 Replies
Message 1 of 4

apprentice & Design view reps

NachoShaw
Advisor
Advisor

Hi

 

i am opening some assemblies using apprentice invisibly to get data. Can i open these invisibly with specific DesignView Reps? If so, how can i do this?

 

Thanks

 

Nigel

 

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


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.


0 Likes
345 Views
3 Replies
Replies (3)
Message 2 of 4

NachoShaw
Advisor
Advisor

Anyone? Come on autodesk. At least help out the users of your application......

 

Using Apprentice, i am trying to open an assembly with a DesignViewRep. Here is my code-

 

 Dim oOptions As Inventor.NameValueMap = InventorFunctions._invApp.TransientObjects.CreateNameValueMap
        Call oOptions.Add("DesignViewRepresentation", "WoodFinish")

 Dim GetViewDoc As Inventor.ApprenticeServerDocument = InventorFunctions.m_oServer.OpenWithOptions(FilePath, oOptions)

 

if i open the file like this-

Dim GetViewDoc As Inventor.ApprenticeServerDocument = InventorFunctions.m_oServer.Open(FilePath)

it works fine which tells me that it is the OpenWithOptions' method that doesnt work. I have taken the construction on the code from the api help... What is not right for this to fail?

 

 

 

Nigel

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


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.


0 Likes
Message 3 of 4

NachoShaw
Advisor
Advisor

Any ideas?

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


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.


0 Likes
Message 4 of 4

NachoShaw
Advisor
Advisor

ive come to the conclusion that you cannot open a file with a Design View Representation by using OpenWithOptions with Apprentice. There is no physical way of getting it to work. If i open the file without using Apprentice and using OpenWithOptions, it does work but then i cannot get a ClientView as ClientView is ONLY available with apprentice. Soooooo, its yet another function that doesnt work properly and has a contradiction within the API documentation

 

thanks for nothing Autodesk, you're the best....

 

 

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


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.


0 Likes