- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a lisp (OPP-OM see attachment) that works fine; when I first select a polyline and in second place a block, in which specified attributes are included, the area of the polyline is added to the attribute "VLOEROPP" and the length of the polyline is added to the attribute "OMTREK".
What I would like to achieve is that also the Handle of the selected polyline will be added to the attribute "VLRHANDLE_AUTOCAD".
I have the code below to get the Handle of an entity but I don't know how to combine this within the existing lisp OPP-OM.
(setq en (car (entsel "\nPick an entity: "))) ; pick your line at the prompt
(entget en) ; this will get the data list
(cdr (assoc 5 (entget en))) ; gives the handle
Thanks in advance!
Solved! Go to Solution.