Over 1.096.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips.
Try the new precise Engineering calculator and the updated Barcode generator.
New AutoCAD 2026 commands and variables.
CAD tip # 8910:
Question
A
With a simple iLogic expression (rule) you can automatically display loop length - length of the first sketch containing any geometry.
2D sketch:
Dim se As SketchEntity = ThisDoc.Document.ComponentDefinition.Sketches(1).SketchLines(1) MsgBox(ThisApplication.MeasureTools.GetLoopLength(se)*10 & " mm")
3D sketch:
Dim se As SketchEntity3D = ThisDoc.Document.ComponentDefinition.Sketches3D(1).SketchLines3D(1) MsgBox(ThisApplication.MeasureTools.GetLoopLength(se)*10 & " mm")
Inventor


15.11.2012
16065×
applies to: Inventor ·