Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Create a 3d View in which every model is visible

1 REPLY 1
SOLVED
Reply
Message 1 of 2
KM_Yotsuha
145 Views, 1 Reply

How to Create a 3d View in which every model is visible

KM_Yotsuha
Advocate
Advocate

I use ReferenceIntersector in my plugin,and use flowing codes to generate 3d View for ReferenceIntersector:

KM_Yotsuha_0-1668588763593.png

if user set view template for 3d view, then the view created may not show every model element.

KM_Yotsuha_1-1668588843444.png

how can i create a 3d view in which every model element is visible?

 

How to Create a 3d View in which every model is visible

I use ReferenceIntersector in my plugin,and use flowing codes to generate 3d View for ReferenceIntersector:

KM_Yotsuha_0-1668588763593.png

if user set view template for 3d view, then the view created may not show every model element.

KM_Yotsuha_1-1668588843444.png

how can i create a 3d view in which every model element is visible?

 

1 REPLY 1
Message 2 of 2
RPTHOMAS108
in reply to: KM_Yotsuha

RPTHOMAS108
Mentor
Mentor
Accepted solution

Duplicate the type object set type parameter to none (DEFAULT_VIEW_TEMPLATE=New ElementId(0)) and use the new type in the create method

 

I get the 0 value from RevitLookup I expected it to be -1 for none (InvalidElementId).

 

Does that work?

 

Regarding ReferenceIntersector less is more: if you know the specific elements you are trying to find intersections with or their categories then those should be isolated to improve performance.

 

 

Duplicate the type object set type parameter to none (DEFAULT_VIEW_TEMPLATE=New ElementId(0)) and use the new type in the create method

 

I get the 0 value from RevitLookup I expected it to be -1 for none (InvalidElementId).

 

Does that work?

 

Regarding ReferenceIntersector less is more: if you know the specific elements you are trying to find intersections with or their categories then those should be isolated to improve performance.

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report