Reply

Set an open Document to ReadOnly

[ Edited ]

 

HI,

in SolidEdge API there is something like:

pModelDoc->SetReadOnlyState( TRUE)

To set an open document as ReadOnly.

 

I didnt found anything in the SDK.

Only how to get pModelDoc->ReadOnly

Any idea of how to do this?

Best Regards

Massimo

 

Posted by: Massimo Magris
Post date: 2/13/2009 2:18:36 AM

2 REPLIES

RE: Set an open Document to ReadOnly

[ Edited ]

Ideally you would have the option in Documents.Open() but unfortunately it's not available. The only idea that I have is to set the readonly flag on the file system before opening the document, then unset it after you're done in Solid Edge.

 

Posted by: Jason Newell
Post date: 2/13/2009 5:59:53 AM

RE: Set an open Document to ReadOnly

[ Edited ]

 

HI Jason,

Thanks, you are right, but i need to do it on already open documents.

I can close and reopen the open document as readonly, but with big assemblies, it's not the best way to do this.

In Inventor for example is possible to do that.

Regards

Massimo

 

Posted by: Massimo Magris
Post date: 2/13/2009 7:51:01 AM