Community
Hello,
Does anyone know how to switch work-plane based families default value from "place on face" to "place on work plane" ?
Gelöst! Gehe zur Lösung
Gelöst von ToanDN. Gehe zur Lösung
did you try with this one?
symbol.get_Parameter(BuiltInParameter.FAMILY_WORK_PLANE_BASED).Set(0)
something like below:
UIApplication uiapp = commandData.Application;
UIDocument uidoc = uiapp.ActiveUIDocument;
Document doc = uidoc.Document;
Reference reference = uidoc.Selection.PickObject(ObjectType.Element, "Select Element");
Element symbol = doc.GetElement(reference);
Transaction t = new Transaction(doc, "Alter FAMILY_WORK_PLANE_BASED");
t.Start();
symbol.get_Parameter(BuiltInParameter.FAMILY_WORK_PLANE_BASED).Set(0);
t.Commit();
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.