Trying to automate dimensioning in Drawings. Help needed with getting extents.

Trying to automate dimensioning in Drawings. Help needed with getting extents.

machiel.veldkamp
Collaborator Collaborator
448 Views
1 Reply
Message 1 of 2

Trying to automate dimensioning in Drawings. Help needed with getting extents.

machiel.veldkamp
Collaborator
Collaborator

I'm working on a iLogic Rule that makes drawings for some components in an assembly.

It's going quite well but I need some help with dimensions.

 

 

image.png

 

I have all the views placed as in the example above. I now need to add DIM1, DIM2 and DIM3

 

I've been eyeing the GeneralDimensions.AddLinear method but I'm confused on what to select for the IntentOne and IntentTwo things.

I want to dimension the Flat Pattern Extents.

Also, I was thinking that the example above isn't always valid. (it's square) so I have a object with a left side that ends in a point or fillet I still want the extents and not the 'last' vertical/horizontal line?

 

 

 

HALP

 

I've attached the iLogic rule I have so far in the Attachements. You need to edit it to change the standard template files. (found in Sub MakeDrawing() )

 

 

Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

___________________________
0 Likes
449 Views
1 Reply
Reply (1)
Message 2 of 2

floccipier
Advocate
Advocate
Hi,

4/5 posts in this thread.
https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/dimensioning-drawing-view-extents/m-p/8...

I hope this solves your problem.

best rgards,
sam
0 Likes