Hole selection

Hole selection

Anonymous
Not applicable
374 Views
1 Reply
Message 1 of 2

Hole selection

Anonymous
Not applicable

Hi,

 

via .NET API, how can I re-create the command Hole Selection?

and how can I select the holes in the drawing in .NET? I must choose only some holes depending on position and direction of the holes (orthogonal to the face)

an example?

 

Thank you,

 

Giacomo

0 Likes
Accepted solutions (1)
375 Views
1 Reply
Reply (1)
Message 2 of 2

Vladimir.Ananyev
Alumni
Alumni
Accepted solution

I’ve made some tests with the part that has two non-parallel hole features (attached).

 

model.PNGresults.PNG

 

Attached VBA code does the following.

For every hole feature that is presented in the drawing view we check its orientation. 

And if this hole is orthogonal to the drawing view we add all its drawing curve segments to the selected set.

 

This sample is discussed in more detail here:

http://adndevblog.typepad.com/manufacturing/2015/07/selecting-holes-in-the-drawing-view-filtered-by-...

 

Hope it could help you as a start point.

 

cheers,


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes