This .... ?Code - Auto/Visual Lisp: [Select]
2 ) ) ) ) ) ) ) -1 ) ) )
It would be like this?
...(setq s (ssget "_: L" '((0. "INSERT") (66. 1))))
Very clear instruction, Lee.
I learned a lot. Thanks.
Code - Auto/Visual Lisp: [Select]
;;; Tharwat 03. July. 2012 ;;; ) ) ) ) )
It would be like this?
...(setq s (ssget "_: L" '((0. "INSERT") (66. 1))))
- Select the blocks (ssget with filter list)
- Iterate over the Selection Set (repeat / while, ssname)
- For each block entity in the set, iterate over the attributes (entnext)
- Retrieve the attribute values (cdr, assoc DXF group code 1)
- Modify the value (as demonstrated above, substr, strcat)
- Update the value (subst, entmod, entupd)
UPDATED :
:-)
UPDATED :
:-)
Perfect, exactly what I need. It will be very useful to me.
Thank you for your attention and patience.
Regards.
Lee,
Thank you for your explanations. :-)
Lee,
Thank you for your explanations. :-)
Evidently wasting my time since the code has been provided on a plate.
Is there more than one attribute in the inserts?
If so how will that attribute be identified?
Good idea.
Perhaps if the attribute had a unique TAG name it could be used for identification. 8-)
Perfect, exactly what I need.@ahsattarian: