Print Page | Close Window

Extract numbers

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=14697
Printed Date: 26.May.2026 at 05:30


Topic: Extract numbers
Posted By: PSkala
Subject: Extract numbers
Date Posted: 12.Apr.2025 at 11:49
I am using your utility Extract numbers and I would like to have a small change in its behaviour. Is it possible to copy the Sum of all selected numbers to a target text?



Replies:
Posted By: Vladimir Michl
Date Posted: 12.Apr.2025 at 11:54
You can prepare the result (the Sum in your case) in a user variable and then refer to this variable - e.g. in Field.

Just add the following line before the final "(princ)" line:
(setvar "USERR1" (apply '+ s))

You can then refer the USERR1 variable.


-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner



Print Page | Close Window