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: 5584

CAD tip CAD tip # 11492:

   
Question CAD 
 %  platform  category 
Q - question

Adding selected numbers in drawing texts - counting numbers (GrSelNum).

A - answer Using the freeware utility GrSelNum you can easily add up numerical values from selected texts in AutoCAD DWG files (drawings).

After you download (Download) and load (APPLOAD) the application, type the command GRSELNUM and click the individual texts containing integer or decimal numbers (or press 'w' to window-select plain texts). Finish the selection process by pressing ENTER after the last clicked text. The application supports single-line and paragraph texts, texts and attributes in blocks (references, insertions) and numerical texts in tables. In combined texts (text + number), the number is extracted automatically. The value with the total sum can be inserted back to the drawing as text. The text will use the properties (layer, size...) of the first clicked text entity.

You can influence the result display by setting some LISP variables:

(setq GrSelNum_resdp 4)   ;result decimal places - rounding
(setq GrSelNum_prefix "") ;result prefix - e.g. "TOTAL: "
(setq GrSelNum_suffix "") ;result suffix - e.g. " kg"

See also a similar application NumInText

ACAD
100% *  CAD 
22.6.2017    19665×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 14063:How to get week day and week number from a given date.
Tip 13938:ModDXF - utility for bulk modification/display of internal DXF properties in DWG entities.
Tip 13911:How to print all sheets at once from Inventor?
Tip 13884:How to send e-mails with an iLogic macro?
Tip 13878:SelectSimilar - extended selections for AutoCAD, incl. LT and Web versions


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:
DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.


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