VBA/iLogic: Automatically Add Hole and Thread Dimension

VBA/iLogic: Automatically Add Hole and Thread Dimension

el_jefe_de_steak
Collaborator Collaborator
920 Views
2 Replies
Message 1 of 3

VBA/iLogic: Automatically Add Hole and Thread Dimension

el_jefe_de_steak
Collaborator
Collaborator

Hi, I'm wondering if anyone would be willing to help me out with this one. I'm smart enough to know it's possible, but dumb enough to not know how to do it.

 

I would like to have a VBA script that follows the logic of:

for each drawing view in active sheet, find the first hole (if any exists) and automatically add a hole and thread dimension

exact placement of the dimension would not be critical, as I always manually tweak dimension locations anyways

 

Inventor API documentation explains how to add a dimension, but not a hole and thread dimension, or the option of just picking the first hole for each view.

 

Any ideas on how to implement this?

 

0 Likes
921 Views
2 Replies
Replies (2)
Message 2 of 3

Frederick_Law
Mentor
Mentor

If the holes are modeled in hole wizard, you can go through entities in the drawing and add holes note to them.

If not, it'll be more difficult.

 

Don't know if auto dimension could bring in all the hole notes.

0 Likes
Message 3 of 3

el_jefe_de_steak
Collaborator
Collaborator
@Frederick_Law wrote:

If the holes are modeled in hole wizard, you can go through entities in the drawing and add holes note to them.

If not, it'll be more difficult.

 

Don't know if auto dimension could bring in all the hole notes.


Yes. I am expecting the routine to skip features that do not accept the "hole and thread" detail, simply by that command not working on those features and the routine just moving on to the next. 

0 Likes