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: 

Creating alternate representation of Revit element

8 REPLIES 8
Reply
Message 1 of 9
ralvarez1976
536 Views, 8 Replies

Creating alternate representation of Revit element

ralvarez1976
Enthusiast
Enthusiast

Hello

 

Is it possible to create an alternate representation of a Revit element with the Revit API and Analysis Visualization Framework? Here are some examples:

 

1. Display the outer or inner face of a wall with a different color, and be able to isolate this new surface in a view.

Wall Surface Display.PNG

2. Generate curves based on the panel edges of a Curtain Wall, and isolate the outer surface of the curtain panels.

Curtain Wall Grids and Faces.PNG

These elements would only display in specific views, and their geometry would be stored in the database after running the API tool.

 

Thanks in advance!

0 Likes

Creating alternate representation of Revit element

Hello

 

Is it possible to create an alternate representation of a Revit element with the Revit API and Analysis Visualization Framework? Here are some examples:

 

1. Display the outer or inner face of a wall with a different color, and be able to isolate this new surface in a view.

Wall Surface Display.PNG

2. Generate curves based on the panel edges of a Curtain Wall, and isolate the outer surface of the curtain panels.

Curtain Wall Grids and Faces.PNG

These elements would only display in specific views, and their geometry would be stored in the database after running the API tool.

 

Thanks in advance!

8 REPLIES 8
Message 2 of 9
cwaluga
in reply to: ralvarez1976

cwaluga
Advocate
Advocate

Have a look at DirectShape creation.

https://thebuildingcoder.typepad.com/blog/2018/01/directshape-topics-and-happy-new-year.html

These elements can be given a (sub)category which can be used to control materials and visibility per view.

0 Likes

Have a look at DirectShape creation.

https://thebuildingcoder.typepad.com/blog/2018/01/directshape-topics-and-happy-new-year.html

These elements can be given a (sub)category which can be used to control materials and visibility per view.

Message 3 of 9
BenoitE&A
in reply to: ralvarez1976

BenoitE&A
Collaborator
Collaborator

Another hint: maybe use the Level Of Detail ? 


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes

Another hint: maybe use the Level Of Detail ? 


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
Message 4 of 9
ralvarez1976
in reply to: cwaluga

ralvarez1976
Enthusiast
Enthusiast

Can DirectShapes be created on the fly and update when the original element changes? I was hoping to create a representation only, not an entirely new element that would weight down the database.

0 Likes

Can DirectShapes be created on the fly and update when the original element changes? I was hoping to create a representation only, not an entirely new element that would weight down the database.

Message 5 of 9
ralvarez1976
in reply to: BenoitE&A

ralvarez1976
Enthusiast
Enthusiast

Level of detail can show less detail within the same element thickness. It essentially just hides the components. I actually want to show only the exterior face of an element, or certain edges, if possible. 

0 Likes

Level of detail can show less detail within the same element thickness. It essentially just hides the components. I actually want to show only the exterior face of an element, or certain edges, if possible. 

Message 6 of 9
cwaluga
in reply to: ralvarez1976

cwaluga
Advocate
Advocate

This does not sound like your original question “These elements would only display in specific views, and their geometry would be stored in the database after running the API tool.”

 

You could look at the DirectContext3D API example in the SDK then.

0 Likes

This does not sound like your original question “These elements would only display in specific views, and their geometry would be stored in the database after running the API tool.”

 

You could look at the DirectContext3D API example in the SDK then.

Message 7 of 9
BenoitE&A
in reply to: ralvarez1976

BenoitE&A
Collaborator
Collaborator

"It essentially just hides the components."

No that's not what LOD do. You can draw different details depending on the LOD.

The basic point is:

- are all your model from the same firm/architects? If yes, you can modify the families in order to create your reprentations and this looks a lot easier to me than going to fetch in the DirectX SDK (but it's less geeky ;))

- if not, then indeed you should not consider a solution using families but rather modifying the image treatment...

 


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes

"It essentially just hides the components."

No that's not what LOD do. You can draw different details depending on the LOD.

The basic point is:

- are all your model from the same firm/architects? If yes, you can modify the families in order to create your reprentations and this looks a lot easier to me than going to fetch in the DirectX SDK (but it's less geeky ;))

- if not, then indeed you should not consider a solution using families but rather modifying the image treatment...

 


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
Message 8 of 9
ralvarez1976
in reply to: BenoitE&A

ralvarez1976
Enthusiast
Enthusiast

@BenoitE&A

 

LOD just hides aspects of a wall in the example I noted. In loadable families LOD can show and hide what you want. However, for system families the functionality is built-in and cannot be controlled. My question is about manipulating the representation of built in system families.

 

I have done alternate representations in loadable families, and that is easy to do. The harder part is with system families. I am looking for a more robust solution that is code based.

0 Likes

@BenoitE&A

 

LOD just hides aspects of a wall in the example I noted. In loadable families LOD can show and hide what you want. However, for system families the functionality is built-in and cannot be controlled. My question is about manipulating the representation of built in system families.

 

I have done alternate representations in loadable families, and that is easy to do. The harder part is with system families. I am looking for a more robust solution that is code based.

Message 9 of 9
BenoitE&A
in reply to: ralvarez1976

BenoitE&A
Collaborator
Collaborator

Ok thanks for the explanation. 

Then good luck for the coding 😉


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes

Ok thanks for the explanation. 

Then good luck for the coding 😉


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/

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

Post to forums  

Autodesk Design & Make Report