How could I make a View3D based by a ViewPlan through the Revit api?

How could I make a View3D based by a ViewPlan through the Revit api?

Anonymous
Not applicable
579 Views
2 Replies
Message 1 of 3

How could I make a View3D based by a ViewPlan through the Revit api?

Anonymous
Not applicable

I try to make a View3D which is the same as Shortcut keys "BX", like:

 

make a View3D (3D view) only contains the element which  in a viewplan or just I choosed.

 

I tried to get the filter from the viewplan,and throuth the addfilter add the filterelement to the view3d new create by myself. but no use? It also show me the total project.

 

I think I may get a wrong way, and it could not support me choose element?

 

Any ideas?Could anyone tell me something about it?

 

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

jeremytammik
Autodesk
Autodesk
Accepted solution

Please study the examples discussed in The Building Code topic group on creating and setting up a 3D view:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#5.37

 

They include demonstrations very similar to what you describe.

 

Best regards,

 

Jeremy

 



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

Message 3 of 3

Anonymous
Not applicable

Very Thanks!

I got a wrong idea before,which I thought that, I could create a View3D by add a element or others.

 

But,throught your demo and the practice, I get the idea:

 

use the setsectionbox ,it is the right way to get a View3D which like the part 3D .

 

Best wishes.

 

Lan Hao.

0 Likes