cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How to lock a file inside Arbortext Editor?

pzorrilla
1-Newbie

How to lock a file inside Arbortext Editor?

Hello Gurus!

So, I've been facing a problem and I would like to know if you could help me to solve it. Please, let me explain you a little bit about what I'm doing.

I implemented this plug-in in the Editor which allows me to load some XML files and modify the document according to the XML, however, while I'm loading the file I'm making the modifications and I wouldn't like that someone could try to manually modify some content in the file at the same time. Is there a way to lock the file I'm using and modifying or maybe the editor itself while I'm executing a task?

In advance I appreciate so much your time and response.

Paulette Zorrilla

1 REPLY 1
rdiaz
5-Regular Member
(To:pzorrilla)

Hi Paulette,

What version of Editor are you working with?  When I try to open a document my co-worker has open, my Editor opens it as read-only.

Since your ACL is modifying the document, maybe you can use the doc_read_only function to determine the status before continuing the code?

Top Tags