Center Point of Hole Features - IV11

Center Point of Hole Features - IV11

Anonymous
Not applicable
385 Views
2 Replies
Message 1 of 3

Center Point of Hole Features - IV11

Anonymous
Not applicable
I'm trying to automate the creation of a hole table on an IDW, but it appears that the API doesn't yet support that. Because of this, I was planning to get the center points of all hole features in the model, create the table manually, and tag each hole in the appropriate view.

I can see how to get centers for Hole Features created by using a sketch. The problem is that if the feature was placed using Linear, Concentric, or Point references, there is no sketch.

It looks like I can get the Placement Definition of the Hole in the above three cases. For Concentric and Point, backing out the hole center should be easy - it's either the center point of the Circular reference or the location of the Workpoint.

The Linear reference is a bit more tricky, though - it seems I'm going to have to wrestle with the reference Edges and the distances to get the location of the point. Anyone know of an easier way to do this?
0 Likes
386 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Have you tried the HoleFeature.HoleCenterPoints property? If I remember
correctly, this property returns sketch points if the feature is sketch
based and transient 'Point' objects if the hole placement is of any other
type.

Sanjay-

wrote in message news:5267944@discussion.autodesk.com...
I'm trying to automate the creation of a hole table on an IDW, but it
appears that the API doesn't yet support that. Because of this, I was
planning to get the center points of all hole features in the model, create
the table manually, and tag each hole in the appropriate view.

I can see how to get centers for Hole Features created by using a sketch.
The problem is that if the feature was placed using Linear, Concentric, or
Point references, there is no sketch.

It looks like I can get the Placement Definition of the Hole in the above
three cases. For Concentric and Point, backing out the hole center should
be easy - it's either the center point of the Circular reference or the
location of the Workpoint.

The Linear reference is a bit more tricky, though - it seems I'm going to
have to wrestle with the reference Edges and the distances to get the
location of the point. Anyone know of an easier way to do this?
0 Likes
Message 3 of 3

Anonymous
Not applicable
Sanjay,

Thanks for the quick response. I actually just found this out now that I've got some code written around it. Looks like they'll actually be a little easier than the sketched holes.
0 Likes