DesignModeler
Mechanical
- May 17, 2011
- 23
Hey Forum,
I'm designing a macro that automatically creates and adds a custom length o-ring to an assembly based on the cylindrical groove surface diameter. My problem is if its an inside groove, the OD of the oring must be the diameter, or if its an outside groove, the ID of the oring must be the diameter. I am having trouble determining a simple way to check if its an inside or outside groove.
Mathematically, if its an inside groove, if you have a point on the surface, its normal is directed towards the origin of the surface, otherwise, its normal is directed away (negative of) from the origin... anyone else have any simpler ideas?
I'm designing a macro that automatically creates and adds a custom length o-ring to an assembly based on the cylindrical groove surface diameter. My problem is if its an inside groove, the OD of the oring must be the diameter, or if its an outside groove, the ID of the oring must be the diameter. I am having trouble determining a simple way to check if its an inside or outside groove.
Mathematically, if its an inside groove, if you have a point on the surface, its normal is directed towards the origin of the surface, otherwise, its normal is directed away (negative of) from the origin... anyone else have any simpler ideas?