CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
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 CAD tip # 8910:

Question

CAD 
 %  platform  category 
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
100% *CAD
15.11.2012    16065×  
applies to: Inventor ·

See also:
Tip 14611:Contribution of individual features to the total mass of an Inventor part (iLogic).
Tip 14527:Search/Replace texts in Inventor drawings - iLogic.
Tip 14489:Multiline header of a parts list in an Inventor drawing.
Tip 14359:Automatic macro execution when opening a CAD file (AutoCAD, Inventor, Max, PowerMill)
Tip 14274:How to unify part thumbnails in Inventor BOMs? (white background)


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  



Featuring:
Automatic nesting of 2D parts on rectangular sheets in AutoCAD
AutoNEST 2008 More info


Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist