Message 1 of 14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Please help to upgrade this.
(defun c:CFM (/ DuctW DuctH DuctA a2f CFM)
(setq Height (getreal "\nEnter Duct Width: "))
(setq Width (getreal "\nEnter Duct Height: "))
(setq DuctA (* Width Height))
(setq a2f (/ DuctA 100000)) ; Convert square mm to square feet with exta value
(setq CFM_VALUE (* a2f 600))
(princ (strcat "\nCFM (Cubic Feet per Minute): " (rtos CFM_VALUE 2 2)))
)
Instead of typing the Width and Height. Can Lisp extract the Digits from a text object, and substitute
Example;
EAD1000X700
FAD 500 X 300
SA200X400
As its finding area doesn't matter if width and Height are interchanged.
Solved! Go to Solution.