Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add dimension to drawing for named geometry in component pattern 2021

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Andrew_Burnett
461 Views, 1 Reply

Add dimension to drawing for named geometry in component pattern 2021

I have been playing around with the new iLogic snippits for dimensioning on a drawing in Inventor 2021.  What I am having an issue with is all the individual parts seem to be getting dimensioned. I am looking to see if there is a snippit of code that I could use for dimensioning to a namedgeometry that is inside of a part in a component pattern.

 

I can add just the one part and the dimension is created.

Dim namedGeometry4 = VIEW1.GetIntent("Leg:1", "LegBottom")

 

But if I make a component pattern to have 4 legs around a tank I can not seem to get any of the coding to recognize the namedgeometry in the leg:1.  I have tried using the Intent on Patterned face snippit but that is not working for me.

 

Please let me know if I am missing something. 

Labels (1)
1 REPLY 1
Message 2 of 2

Update!!  

 

Found where the issue was.  I was looking for a named face that when in a pattern it was behind one of the other parts in the pattern.  If I changed the code line to say.  

Dim namedGeometry4 = VIEW1.GetIntent("Leg:3", "LegBottom")

Then the dimension would work.  The code would not find a named face that was placed behind another when patterned.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report