NewFamilyInstance on a reference plane

NewFamilyInstance on a reference plane

Anonymous
Not applicable
2,807 Views
9 Replies
Message 1 of 10

NewFamilyInstance on a reference plane

Anonymous
Not applicable

Is it possible to place a new family instance on a specified reference plane? I want to select a lighting fixture or air terminal, check to see if it is hosted to an element or reference plane, then array some more of these fittings around a certain area. I have managed to make the program work quite well when families are not hosted, but when they are, it seems to not like it and place the famiies relative to the floor level.

It seems you can place a family on a reference object, but not a reference plane if I am reading the help correctly. Can someone clarify this or point me in the right direction to do it please.

 

0 Likes
2,808 Views
9 Replies
Replies (9)
Message 2 of 10

jeremytammik
Autodesk
Autodesk

Dear Channond,

Have you had a look at the Revit SDK PlaceFamilyInstanceByFace sample?

Best regards,

Jeremy
--
Jeremy Tammik
Autodesk Developer Network -- http://www.autodesk.com/joinadn
The Building Coder -- http://thebuildingcoder.typepad.com



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 10

Anonymous
Not applicable

Hi Jeremy.

 

I did look at that, but I want to specify a refernece plane, not a face. I couldn't work out the syntax to do i though.

0 Likes
Message 4 of 10

jeremytammik
Autodesk
Autodesk

Dear Channond,

If you want it to be associative, you have to specify an reference to a face.

You cannot pass in a reference to a reference plane, as far as I can see.

Either use the reference plane to create a face somehow, e.g. using an appropriate extrusion in the family context, or lose associativity by simply specifying a point on the reference plane.

Best regards,

Jeremy
--
Jeremy Tammik
Autodesk Developer Network -- http://www.autodesk.com/joinadn
The Building Coder -- http://thebuildingcoder.typepad.com




Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 5 of 10

Anonymous
Not applicable

Thanks Jeremy.

 

I thought that was the case.

0 Likes
Message 6 of 10

GeomGym
Advocate
Advocate

Is it possible in Revit 2013 or 2014 to create a generic family instance (work plane based, non vertical) hosted on a reference plane generated from the API (I can do it manually).

 

Thanks,

 

Jon

0 Likes
Message 7 of 10

Anonymous
Not applicable

I'm in the same boat.  It would be amazing if the PromptForFamilyInstancePlacement was tweaked to allow the placement mode to be changed to work-plane.  Hopefully this will be something that is addressed in a future release.

 

http://forums.autodesk.com/t5/Autodesk-Revit-API/Change-the-placement-option-for-PromptForFamilyInst...

0 Likes
Message 8 of 10

Anonymous
Not applicable

 

I know this is an old post but thought I would post the solution I came up with for the reference of others...

 

familyOnPlane.JPG

 

 

 

 

Message 9 of 10

jeremytammik
Autodesk
Autodesk

Dear Bburling,

 

Congratulations on solving this, and thank you very much for sharing.

 

Could you (always) add the code in text form, please, for easier copy and paste, and to enable it to be found by global Internet text searches?

 

Thank you!

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 10 of 10

Anonymous
Not applicable

If the new family we insert (Your FamilySymbol) is based on LocationCurve, it gives an error.

"Family cannot be placed as hosted on an input face reference, because its FamilyPlacementType is not WorkPlaneBased" & vbCrLf & "Parameter name: symbol"

0 Likes