illegal attempt to modify document reason : raising document change event

illegal attempt to modify document reason : raising document change event

Abhishek_JadhavTGAAZ
Community Visitor Community Visitor
305 Views
2 Replies
Message 1 of 3

illegal attempt to modify document reason : raising document change event

Abhishek_JadhavTGAAZ
Community Visitor
Community Visitor

I am facing this warning saying "illegal attempt to modify document reason: raising document change event ".While creating the sheets 

 

Kindly please drop your solution.

 

 

Regards,

Abhishek Jadhav

 

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

moturi.magati.george
Autodesk
Autodesk

Hi @Abhishek_JadhavTGAAZ,

 

I have not seen your code but I think you need to start a transaction in order to modify a document as described below.

https://help.autodesk.com/view/RVT/2022/ENU/?guid=Revit_API_Revit_API_Developers_Guide_Basic_Interac...

 

Feel free to provide a sample code that we can use to debug your issue and provide assistance.


  Moturi George,     Developer Advocacy and Support,  ADN Open
0 Likes
Message 3 of 3

Sean_Page
Collaborator
Collaborator

Similar to the answer from @moturi.magati.george, this appears to be another post with similar issue and hopefully resolution.

 

https://forums.autodesk.com/t5/revit-api-forum/illegal-attempt-to-modify-document-reason-changes-are...

Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect
0 Likes