oDoc.IsModifiable true or false

oDoc.IsModifiable true or false

Mark_Wigan
Collaborator Collaborator
1,039 Views
3 Replies
Message 1 of 4

oDoc.IsModifiable true or false

Mark_Wigan
Collaborator
Collaborator

hi,

  i have spent quite some time on this but no success...

 

so far i don't know if i am doing something wrong or if this is not able to be changed with API, but i am trying to change the flag "IsModifiable" (in the document object) to be set to "True" for files that are flagged as False.

 

i can successfully read this flag and make choices around its status however i cannot figure out how to change it.

 

any help is geatly appreciated as always.

best regards,
- Mark

(Kudo or Tag if helpful - in case it also helps others)

PDSU 2020 Windows 10, 64bit.

0 Likes
Accepted solutions (2)
1,040 Views
3 Replies
Replies (3)
Message 2 of 4

nmunro
Collaborator
Collaborator
Accepted solution

The property is read-only so there is no way to affect it directly.

        


https://c3mcad.com

0 Likes
Message 3 of 4

MegaJerk
Collaborator
Collaborator
Accepted solution

First let's look at the description of IsModifiable in the API help : 

 

Property that returns whether this document can be currently modified. One of the reasons a document may be non-modifiable is if any other document belonging to the file containing this document is currently being edited. 

 

This describes a read only property that is being calculated from various things such as which file the document being looked at is attached to, as well as aspects such as the location of the file in the project's hierarchy (is it library / content?) and even the status of the file on your hard disk drive (is it read only???). 

If you want to change the modifiable status to true, then those things need to be evaluated and altered. 




 



If my solution worked or helped you out, please don't forget to hit the kudos button 🙂
iLogicCode Injector: goo.gl/uTT1IB

GitHub
0 Likes
Message 4 of 4

Mark_Wigan
Collaborator
Collaborator

thankyou to you both.

best regards,
- Mark

(Kudo or Tag if helpful - in case it also helps others)

PDSU 2020 Windows 10, 64bit.

0 Likes