Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Work-Plane based families default placement method

4 ANTWORTEN 4
GELÖST
Antworten
Nachricht 1 von 5
denisyukJ
392 Aufrufe, 4 Antworten

Work-Plane based families default placement method

Hello, 

 

Does anyone know how to switch work-plane based families default value from "place on face" to "place on work plane" ?

denisyukJ_0-1650965161604.png

 

4 ANTWORTEN 4
Nachricht 2 von 5
ToanDN
als Antwort auf: denisyukJ

Not that I know of.  I do prefer by Face as the default option though.

Nachricht 3 von 5
arpankumar.macwan
als Antwort auf: denisyukJ

did you try with this one?

symbol.get_Parameter(BuiltInParameter.FAMILY_WORK_PLANE_BASED).Set(0)

 

 

Nachricht 4 von 5
denisyukJ
als Antwort auf: arpankumar.macwan

Hello, @arpankumar.macwan 

Could you describe how to implement this method?

Nachricht 5 von 5
arpankumar.macwan
als Antwort auf: denisyukJ

@denisyukJ 

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.

In Foren veröffentlichen  

Autodesk Design & Make Report