Change TypeName of an element

Change TypeName of an element

PavelBalobanov
Participant Participant
915 Views
3 Replies
Message 1 of 4

Change TypeName of an element

PavelBalobanov
Participant
Participant

Hello!

could you give us a piece of advice, please,  how we can change typenames of Revit Elements of a model via API... without opening Revit. 

We have external application which keeps a set of typenames with a button “Change”. By tapping this button we would like to change the typenames of a model accordingly.

 

 

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

MattKincaid
Advocate
Advocate

Running Revit is basically a requirement for using the API.  Difficult to get around, I'm afraid. 

 

But if you can have Revit running, what you need should be straight-forward. Just write an Addin that uses the API's FamilyType class and changes the name property.

Message 3 of 4

PavelBalobanov
Participant
Participant

Hi!

thanks for the answer!

Could you have a look at this, please. Have you tried it?

https://forge.autodesk.com/en/docs/design-automation/v3/developers_guide/overview/

 

It it is a new Forge API beta version which allows to modify Revit files without opening them...Just found. This is documentation https://forge.autodesk.com/en/docs/design-automation/v3/tutorials/revit/

 

could you comment on this, please.

0 Likes
Message 4 of 4

MattKincaid
Advocate
Advocate
Accepted solution

Ah, I hadn't thought of that!  I haven't had a chance to dive into the Forge API myself yet.  But it might be possible using that.

0 Likes