Change the placement option for PromptForFamilyInstancePlacement

Change the placement option for PromptForFamilyInstancePlacement

Anonymous
Not applicable
7,296 Views
20 Replies
Message 1 of 21

Change the placement option for PromptForFamilyInstancePlacement

Anonymous
Not applicable

Hi, 

 I am using the PromptForFamilyInstancePlacement to place a light fixture and the placement method is set to "Place on Vertical Face" by default always and cannot find any way to change it.

  Is it possible to change it, programatically or not?

7,297 Views
20 Replies
Replies (20)
Message 21 of 21

joshua.lumley
Advocate
Advocate

Use this the example posed by skootamota

 

 

XYZ pickPoint = uidoc2.Selection.PickPoint("Click to specify instance location");
Level lvl = doc2.ActiveView.GenLevel;
FamilyInstance familyInstance = null;

familyInstance = doc2.Create.NewFamilyInstance(pickPoint, symbol, lvl, lvl, StructuralType.NonStructural);

exEvent.Raise();

 

and this at the top of the code

using Autodesk.Revit.DB.Structure;

 

Cheers, 

J.

0 Likes