Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SW API - "is parallel" function?

Status
Not open for further replies.

DesignModeler

Mechanical
May 17, 2011
23
Hey forum,

I've been on here for almost a week, and I can't explain how grateful I am for all your input.

I have another question about SW API. If you have a selected component, is there a way to check if any of its planes are parallel with any of the assembly planes? I know how to select planes inside components, but not how to compare to another plane.

All help is really appreciated!
 
Replies continue below

Recommended for you

Personally when I need that I just add a mate between the 2 planes and use parallel and that works for me. hope this helps.
 
Get the normal vector of each plane and cross them. The magnitude of the cross product of two parallel vectors is zero.

-handleman, CSWP (The new, easy test)
 
This is a tube which was extruded and there is a one loop helix in the middle of it. Not the easiest thing to copy into another part.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor