Work-Plane based families default placement method

Work-Plane based families default placement method

denisyukJ
Advocate Advocate
757 Views
5 Replies
Message 1 of 6

Work-Plane based families default placement method

denisyukJ
Advocate
Advocate

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

 

0 Likes
Accepted solutions (1)
758 Views
5 Replies
Replies (5)
Message 2 of 6

ToanDN
Consultant
Consultant
Accepted solution

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

0 Likes
Message 3 of 6

arpankumar.macwan
Enthusiast
Enthusiast

did you try with this one?

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

 

 

0 Likes
Message 4 of 6

denisyukJ
Advocate
Advocate

Hello, @arpankumar.macwan 

Could you describe how to implement this method?

0 Likes
Message 5 of 6

arpankumar.macwan
Enthusiast
Enthusiast

@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();

 

 

Message 6 of 6

jkhounemany
Participant
Participant

I am having this issue too. I fixed it at one point. Don't remember what I did.

0 Likes