Reply
Solved! Go to solution

Open a drawing inactivated (for review)

Hi,

To decrease batchplotting times I would like to open drafts with "inactivate drawing view for review".

At the moment I know how to open a drawing and set it to inactive but this, obviously, increases opening times instead:

Dim documents As SolidEdgeFramework.Documents = application.Documents
Dim document As SolidEdgeDraft.DraftDocument = Nothing

'close any open documents
documents.Close()

document = documents.Open(filePath) 'opens the document
document.InactiveDrawingViewMode = True 'sets the document to inactive
 
switching places of the ".inactivedrawingviewmode" command doesn't work as it requires an active reference.
I can't find another method in the sdk nor on this forum.
Any suggestions?
 
Regards,
 
Maarten Elings | Mechanical Engineer
3 REPLIES
Solution
Solution
Accepted by topic author MaartenEl
‎08-30-2016 03:18 AM

Re: Open a drawing inactivated (for review)

[ Edited ]

Something like this, but I don't think you will be able to determine if the views are out of date in that mode.

mSolidApp.SetGlobalParameter(ApplicationGlobalConstants.seApplicationGlobalSessionDraftOpenInactive ,true)

  

LMGi
www.TLMGi.com

Re: Open a drawing inactivated (for review)

Thank you! I never would have found it myself.

 

I'm well aware of that I wouldn't be able to update or determine if views are out of date.

However, when we batch export to pdf/dwg or batch plot all of our drawings have been double checked to make sure they are all up-to-date. Hence opening the  drafts as inactive prior to plotting saves quite some time.

 

Regards,

 

Maarten

Maarten Elings | Mechanical Engineer

Re: Open a drawing inactivated (for review)

Good one Jason!

Jason Newell
Applications Architect
www.jasonnewell.net