Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

FEMAP API element ID

Status
Not open for further replies.

chillem

Electrical
Joined
Jan 7, 2012
Messages
1
Location
US
Does anyone know how to find the element ID of the element that contains a coordinate position (point) in the global coordinate system? This needs to be done from a FEMAP API.
 
If the ends of a beam are defined by X1,Y1,Z1 and X2,Y2,Z2, and the point is Xp,Yp,Zp then

- Find the set of beams for which Xp is within the range X1 to X2.
- From that set find the set for which Yp is within the range Y1 to Y2.
- From that set find the set for which Zp is within the range Z1 to Z2.

Find the beam from that set for which the angle (X1,Y1,Z1)(Xp,Yp,Zp)(X2,Y2,Z2) is equal to 180 degrees, within a suitable tolerance.

That's the beam you want.

Doug Jenkins
Interactive Design Services
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top