0 Members and 1 Guest are viewing this topic.
Picky picky
( (lambda ( / let ) (defun let (bindings body) (eval (cons (append (list 'lambda (mapcar 'car bindings)) body) (mapcar 'cadr bindings))) ) (let '((ss-vp (ssget "x" (list '(0 . "VIEWPORT") '(-4 . "/=") '(68 . 1) (cons 410 (getvar "ctab")))))) '((if (null ss-vp) (progn (alert "\n No VIEWPORTS in current layout") (princ) ) ss-vp)) ) ) )
(if (setq vp-ss (ssget "x" (list '(0 . "VIEWPORT") '(-4 . "/=") '(68 . 1) (cons 410 (getvar 'ctab)) ) ) ) (progn ;;Do Stuff ) (alert "\n No VIEWPORTS in current layout"))
I'm just messin with ya This is how I would approach it (seems straight forward).
Most of the user don't care about using the correct templates or procedures. With certain projects, they will copy drawings that was done 5 years ago and make a couple of changes and then issue the drawing to the client/contractor.Part of our problem is that we do not have people that enforces standards or audit the drawings electronicly. The motto in the office is: If it looks good on paper, it was created in the right way".