Ilogic to add dimensions to flat pattern

Ilogic to add dimensions to flat pattern

Anonymous
Not applicable
1,306 Views
4 Replies
Message 1 of 5

Ilogic to add dimensions to flat pattern

Anonymous
Not applicable

Hi,

 

Does anybody have any ilogic to add dimensions to a flat pattern view in an idw ?

0 Likes
1,307 Views
4 Replies
Replies (4)
Message 2 of 5

KarelC
Enthusiast
Enthusiast
Which dimensions do you mean? Automatic dimensions are in context menu.
___________________________________________________________
Dell Precision T3620
Inventor 2019, Autocad Mechanical 2019, Vaul Basic 2019
0 Likes
Message 3 of 5

Anonymous
Not applicable

I have an Ilogic rule that creates 5 views on the drawing sheet and it can retrieve dimensions for the front view.

It places a flat pattern view and I want it to automatically dimension it.

Overall dimensions and fold lines.

Is this possible?

0 Likes
Message 4 of 5

KarelC
Enthusiast
Enthusiast
Sorry, I didn't create dimensions by macro yet. I think it is possible. I'll try it.
___________________________________________________________
Dell Precision T3620
Inventor 2019, Autocad Mechanical 2019, Vaul Basic 2019
0 Likes
Message 5 of 5

KarelC
Enthusiast
Enthusiast

Yes, it is possible. I tried VBA macro for drawing dimensions in one view. Here yoy have few steps for drawing dimensions by macro. For iLogic you must make some changes.

 

First you must find lines wit poit for dimensions

Dim oView As DrawingView

Dim oCurve As DrawingCurve

For Each oCurve In oView.DrawingCurves    '  - finding lines in your view

 'here you chose some lines for dimension

Next

 

Then transform line points to points for dimension

Dim oPoint As GeometryIntent
Set oPoint = oDocument.ActiveSheet.CreateGeometryIntent(oCurve, kStartPointIntent)  '  - make points for dimesion, you must have two point

 

One poit for dimension text

Dim oPointForText As Point2d

 

Finaly draw the dimension

Call oSheet.DrawingDimensions.GeneralDimensions.AddLinear( oPointForText, BodPrvni, BodDruhy, kHorizontalDimensionType)

___________________________________________________________
Dell Precision T3620
Inventor 2019, Autocad Mechanical 2019, Vaul Basic 2019
0 Likes