Need live dimensions while editing loops. Ilogic, VBA? Not sure how to find a wa

Need live dimensions while editing loops. Ilogic, VBA? Not sure how to find a wa

Anonymous
Not applicable
360 Views
1 Reply
Message 1 of 2

Need live dimensions while editing loops. Ilogic, VBA? Not sure how to find a wa

Anonymous
Not applicable

Im looking to create simple 2D sketch shapes but view the dimensions as I edit. If I understand correctly this is not available without using something like ilogic or a VBA code?? (not clear on the how the two work honestly)  If there is something I can do to keep live dimensions while editing I would appreciate the help. I attached a link to a youtube video of the editing in a vector draw program.

 

Thanks

 

https://youtu.be/6xa2ITAEC2g

0 Likes
361 Views
1 Reply
Reply (1)
Message 2 of 2

Sergio.D.Suárez
Mentor
Mentor

Hi, if you're talking about splines, could you identify it and calculate the length

A mode of access in ilogic would be something similar to the following

 

Dim doc As PartDocument= ThisDoc.Document
Dim oCD As PartComponentDefinition = doc.ComponentDefinition
Dim oSK As PlanarSketch = oCD.Sketches.Item(1)
Dim Spl As SketchSpline = oSK.SketchSplines.Item(1)

Dim oLength As Double = Round(Spl.Length,3)

MessageBox.Show(oLength)

 This reads as the length of the first spline found in the first sketch of the part file.
I hope some of this can be useful. Regards!!


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

0 Likes