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: 

Replace element

1 REPLY 1
Reply
Message 1 of 2
Anonymous
776 Views, 1 Reply

Replace element

Hi Guys

 

Is it possible to replace an element with another?

 

Thanks

1 REPLY 1
Message 2 of 2
ollikat
in reply to: Anonymous

Hi

 

I think you should be little bit more specific. What kind of situation you are facing?

 

As far as I know, there's no direct replacing method in API. Instead you can delete the old element (Document::Delete()) and create a new (Autodesk::Revit::Creation::Document).

 

What you can change on the fly is element type. See Element::ChangeTypeId().

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

Post to forums  

Forma Design Contest


Rail Community