Error Code

Error Code

jyan2000
Advocate Advocate
471 Views
1 Reply
Message 1 of 2

Error Code

jyan2000
Advocate
Advocate

Hello, 

 

Could anyone correct this code ? 

 

Best Regards

Victor

 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

 

(defun c:osd2 ( / ss e )
(setq ofd (cond
(setvar "ofd" 74))
)
(if (setq ss (ssget "all"))
(repeat (sslength ss)
(setq e (vlax-ename->vla-object (ssname ss 0)))
(if (vlax-method-applicable-p e 'Offset)
'vla-offset (list e))))(list ofd (- ofd)))
)
(ssdel (ssname ss 0) ss)))
(princ)
)

 

0 Likes
472 Views
1 Reply
Reply (1)
Message 2 of 2

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

please ask questions about LISP code in the LISP-forum (here is the VB/VBA forum).

That's the link to the >>>Lisp Forum<<<.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes