Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
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 the name of a FamilyInstance

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
332 Views, 2 Replies

How to the name of a FamilyInstance

I created a FamilyInstance by doc.Create.NewFamilyInstance().

I want to change the name of it.

I did it like fi.Name = name,but it doesnot work.

2 REPLIES 2
Message 2 of 3
PhillipM
in reply to: Anonymous

Did you wrap the name change in a transaction?

 

Cheers

 

Phillip

Message 3 of 3
Anonymous
in reply to: PhillipM

I don't think a Family Instance actually has a name. I think the "Name" of a FamilyInstance is actually the Type (or Symbol) name, so when you try to change the name it is read-only and it fails.

 

Family Instances have a "Mark," which is sort of a name.

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

Post to forums  

Rail Community


Autodesk Design & Make Report