delete bounding box using api revit

delete bounding box using api revit

Anonymous
Not applicable
1,064 Views
2 Replies
Message 1 of 3

delete bounding box using api revit

Anonymous
Not applicable

how can i unpin and delete the bounding box in revit of a currently opened adsk model using revit api code?
(plz no one comment likke that u can do it by opening revit and go to modigy tab and then unpin and delete it because i want to do it with the help of codidng)

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

jeremytammik
Autodesk
Autodesk
Accepted solution

You can unpin and delete using the pure Revit API. Use Element.Pinned and Document.Delete.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3

Anonymous
Not applicable

thank you sir, and adding to what sir has stated, if anyone else has the same problem, for modifying any file , you have to create a new transaction, start it before file modification and commit it after the end of modification is completed !

0 Likes