Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 2
Anonymous
115 Views, 1 Reply

Question

HI,
I found this sort of lisp:
(defun ppn_get:edata (E1 ITEM ITEM# / E1DATA)
(if E1
(progn
(setq E1DATA (entget (car E1)))
(set (read ITEM) (cdr (assoc ITEM# E1DATA)))
)
)
)
But i do not much get of it.
It test wheter there is object or not.Right?
And then..........
1 REPLY 1
Message 2 of 2
pciganek
in reply to: Anonymous

something like:

(ppn_get:edata [entsel return value] [varname as string] [dxf code as integer])

?

Command: (ppn_get:edata (entsel) "objnam" 0)

Select object: "TEXT"

Command: !objnam
"TEXT"

- There are simpler ways to get the dxf value - but then, I don't know what the programmer needed.

Peter

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost