Using VBA to Dimension From Given Point to All Instances of a Face

Using VBA to Dimension From Given Point to All Instances of a Face

el_jefe_de_steak
Collaborator Collaborator
628 Views
1 Reply
Message 1 of 2

Using VBA to Dimension From Given Point to All Instances of a Face

el_jefe_de_steak
Collaborator
Collaborator

Hi, I'm relatively new to the Inventor VBA API, and I'm wondering if it is possible to automatically add drawing dimensions from a given point (not user selected, but coded in) to all instances of the drawing edges that a specific part's named face creates. Basically, I want to produce a pattern of parts, and automatically dimension the pattern. But, I don't know before hand how many occurrences of the part there will be in the pattern.

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

el_jefe_de_steak
Collaborator
Collaborator
Accepted solution

OK, so I haven't worked out the specific code yet, but using the information in this YouTube video, I believe I can automatically dimension this by saying "for each occurrence, do dimension". If someone is willing to work this out and post some basic working code, that would be helpful. However, I think I can get it from here.

 

https://www.youtube.com/watch?time_continue=5&v=7_0YuPYmGyY&feature=emb_title

0 Likes