0% found this document useful (0 votes)
5 views1 page

CS STR Cut

Uploaded by

bravomikeparle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

CS STR Cut

Uploaded by

bravomikeparle
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

(defun c:strcut()

(setq filed(open "D:\\Structure Foundation Area Data.xls" "a"))


(setvar "cmdecho" 0)
(setq os(getvar "osmode"))
(setvar "osmode" 0)
(vl-load-com)
(setq ht(getreal "\nEnter the Height of Wall"))
(setq chainage(entget(car(entsel "\nSelect the text containing chainage\n"))))
(setq ChObj(cdr(assoc '-1 chainage)) ChPoint(cdr(assoc '10 chainage)))
(setq chval(cdr(assoc '1 chainage)))
(setq CP (getpoint "\nEnter the point inside cutting area:"))
(cond((eq CP nil)(setq CArea "0"))
((/= CP nil)
(command "Boundary" CP "")
(setq Ent1 (entlast))
(setq Vla_EntL1 (vlax-ename->vla-object Ent1))
(setq CArea (rtos (vla-get-area Vla_EntL1) 2 3))
(entdel Ent1)
)
);cond
(if(eq cp nil)(setq cp ChPoint))
(setq ChArea(strcat chval "\t" (rtos ht 2 2) "\t" CArea))
(write-line ChArea filed)
(close filed)
;(command "text" cp "" "0" (strcat "RetCA : " CArea " Sqm"))
;(command "move" "l" "" cp pause)
(setvar "cmdecho" 1)
(setvar "osmode" os)
(princ (Strcat chval "\n"))
) ;_ defun

You might also like