Revit Family Rename in a project -


is possible rename families in project through api. updating , standardizing our family naming convention. i'd build add-in rename families in existing project new standard names. haven't had success finding example of online.

i’ve been able find family names, however, can’t rename family.

i’m using c#.

i tried direct way .name property , seems work.

uiapplication uiapp = commanddata.application; uidocument uidoc = uiapp.activeuidocument; application app = uiapp.application; document doc = uidoc.document;  foreach(elementid id in uidoc.selection.getelementids()) {   familyinstance faminstance = doc.getelement(id) familyinstance;   if (faminstance == null) continue; //skip element    faminstance.symbol.name = faminstance.symbol.name + " - changed"; } 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -