New views are making problems in old views....

New views are making problems in old views....

pratheeshjaison
Enthusiast Enthusiast
297 Views
3 Replies
Message 1 of 4

New views are making problems in old views....

pratheeshjaison
Enthusiast
Enthusiast

Hi, I am working in revit mep file which linked with revit structural and revit architectural. As per my project requirement, I need to create 96 layouts of the model. When I am creating a new layout, I need to create some new sections and details also. So that section lines is showing in my other layout views……how can I create new sections without affecting other layout views…??..Or is there any option for freeze views..? I don’t want to show new items in selected views…..please help me……

0 Likes
298 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Dear pratheeshjaison,

 

You can easily detect which new elements are added by subscribing to the document changed event.

 

You can easily hide elements in a view using the View.HideElements method.

 

Best regards,

 

Jeremy



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

0 Likes
Message 3 of 4

pratheeshjaison
Enthusiast
Enthusiast

Noo...the actual problem is, when i am drawing the 95th layout section, that section line is showing all previous views.

 

it means i need to go back to the all 94 layouts and hide that new section line........it will take more than 2 hour extra for updating other layout. That is making me crazy.....

 

 

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

Yeee..sss...

 

Before creating the 95th layout section, register to the document changed event. Make a note of all elements added.

 

After finishing the creation of the 95th view, go back to the 94 others and hide all the newly added elements.

 

Automatically, of course. Drive your add-in crazy.

 

Or go ahead, be my guest, go crazy, have fun.

 

Cheers,

 

Jeremy



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

0 Likes