Open IDW with Apprentice.OpenWithOptions method HELP

Open IDW with Apprentice.OpenWithOptions method HELP

Raider_71
Collaborator Collaborator
928 Views
2 Replies
Message 1 of 3

Open IDW with Apprentice.OpenWithOptions method HELP

Raider_71
Collaborator
Collaborator

Hi I have created a batch printer using VB.net but are having issues when some of the idw files have unresolved references and I get HRESULT errors etc and then crash. I use Apprentice server and have noticed that there is a method OpenwithOptions that can be used. I have tried specifying SkipallunresolvedFiles in a Namevaluemap but with no luck. See code:

 

Dim oDocOpenOptions As NameValueMap

oDocOpenOptions = oApprentice2.TransientObjects.CreateNameValueMap

oDocOpenOptions.Add("SkipAllUnresolvedFiles", True)

oApprDoc = oApprentice2.OpenWithOptions(lstBox1.Items.Item(i), oDocOpenOptions)

Dim oApprDrgPrintMgr As ApprenticeDrawingPrintManager

oApprDrgPrintMgr = oApprDoc.PrintManager

 

 

Any ideas?

 

Thanks

Pieter

0 Likes
929 Views
2 Replies
Replies (2)
Message 2 of 3

tech
Enthusiast
Enthusiast

I would also know about this. Having the same issue. Can do it with an Inventor App object but as soon as you use Apprentice the .OpenwithOptions dont seem to work.

0 Likes
Message 3 of 3

philippe.leefsma
Alumni
Alumni

Hi,

 

Unfortunately in case of "OpenWithOptions" and the "SkipAllUnresolvedFiles" options, Apprentice doesn't support it yet. We have logged a wish about that to our engineering team but it has not been implemented yet. I guess there is no workaround while using Apprentice at the moment.

 

Sorry for the bad news.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes