Revit API

Reply
Contributor
Posts: 17
Registered: ‎08-03-2005
Message 1 of 2 (155 Views)

Perpendicular to host

155 Views, 1 Replies
10-03-2012 09:57 AM

I have a series of security camera components.  Because of the designer's requirements, some are ceiling based and some are face based.

 

I am trying to figure out what way the element is pointing in plan.  For the ceiling based ones, I can easily get the FacingOrientation and do some math to figure it out.  For the face based components, when they are placed on a wall, or any other vertical surface, the FacingOrientation simply comes back as (0,0,1) which makes sense because it was rotated up from "the floor", in the family editor, to a vertical surface.

 

I think I need to get a line that is perpendicular to the host.  I don't know if the host or hostface is the way to go, since I can't really figure out how to use the hostface.

 

I could probably make something that would give me a perpendicular line to a straight wall, but what if it's a reference plane, or what if it's the face of a generic model?  I would like something a little more all encompassing.


Any ideas?

Employee
saikat
Posts: 185
Registered: ‎08-16-2007
Message 2 of 2 (134 Views)

Re: Perpendicular to host

10-12-2012 02:11 PM in reply to: jkunkel

Hi


Does Face.ComputeNormal or ReferencePlane.Normal help?

 

cheers



Saikat Bhattacharya

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Revit Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Revit helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Revit

Twitter

Facebook

Blogs

Youtube