CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 7374

CAD tip CAD tip # 8910:

   
Question CAD 
 %  platform  category 
Q - question

iLogic rule to measure loop length in a sketch.

A - answer 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    14274×  
Prices - CAD eShop:
applies to: Inventor ·

See also:
Tip 13965:Total length of sweeps in Inventor - wires, pipes, trusses, tubes, hoses (iLogic)
Tip 13963:Sum of pipe element lengths in Inventor (iLogic).
Tip 13920:Saving your Inventor model in the presentation color scheme (iLogic).
Tip 13911:How to print all sheets at once from Inventor?
Tip 13884:How to send e-mails with an iLogic macro?


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 glossary   



Featuring:
Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools More info


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