How can i write a lisp to extract the handle of an object and then paste it in the dwg?
|
|
|
How can i write a lisp to extract the handle of an object and then paste it in the dwg?
real quick basics...
may need to play with the text command inputs if you are using a style with/without a set height.Code:(setq ent (car (entsel "\nSelect entity: "))) (setq handl (cdr (assoc 5 (entget ent)))) (command ".text" pause 0 handl "")
Last edited by Opie; 2008-07-11 at 03:21 PM. Reason: fixed code tag
It might be worth mentioning that you can also use a field to do this.
Not with the UI, but with lisp you can do it. You just need to extract the ObjectID and plug it in this Field string.
Code:%<\AcObjProp Object(%<\_ObjId 2129671512>%).Handle>%
R.K. McSwain | CAD Panacea |