How to get the height of a part in the C# programming language??
How to get the height of a part in the C# programming language??
Would you mind adding more details to your question please? You do realize that the people that try to answer your questions are not mindreaders ? What do you mean by height? Height can be the highest point with regards with the default coordinate system (assuming all points of the body' coordinates are > 0) system in the Z direction.
Cheers,
Amen
Yes. It's possible. According to the picture above, You'll need all the curves to be converted into bcurves if they're not splines. Eventually you want to get the control points. The control point that has the highest z is is the one you use to determine the highest. It does look to me that the base of you part has offset distance from the xy plane. You should substract that offset to get the part's highest control point to get the "height".
Best,
Amen
www.cadhero.com
In addition, questions should be like an advertisement, in an ad we tried to sell our products in questions we tried to sell our problems for free of charge.
It is said that ad must be presented in a way within first 6 sec you should be able to capture the mind of a watcher after 6 sec you will never catch the mind of a watcher even though ad is a good one. This is a way human psychology works.
Your resume should be also like that.
I would find this height by getting a reference to the Body2 object. From here, you can use the GetBox method which will return an array of 6 doubles. These doubles represent the x,y,z coordinates of two points that make up the box that encloses the body. Find the difference between the two z values and this should be the value you are looking for.
A good piece by Keith Rice:
How to ask a good question in the API forum