Message 1 of 3
Center Point of Hole Features - IV11

Not applicable
08-14-2006
11:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?
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?