How to the name of a FamilyInstance

How to the name of a FamilyInstance

Anonymous
Not applicable
397 Views
2 Replies
Message 1 of 3

How to the name of a FamilyInstance

Anonymous
Not applicable

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.

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

PhillipM
Advocate
Advocate

Did you wrap the name change in a transaction?

 

Cheers

 

Phillip

0 Likes
Message 3 of 3

Anonymous
Not applicable
Accepted solution

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.

0 Likes