lido Posted March 24, 2019 Posted March 24, 2019 Hello everybody. Considering PSTYLEMODE=0 (use of named plot style tables), how to select with AutoLISP all entities in current working space based on PlotStyleName criteria? Thank you in advance. Quote
marko_ribar Posted March 24, 2019 Posted March 24, 2019 Look into DXF 380 and 390 group codes... Quote
lido Posted March 24, 2019 Author Posted March 24, 2019 @marko_ribar Thank you for your answer. Here below are the results. ;;1 (vla-get-plotstylename(vlax-ename->vla-object(entlast))) ;;Return "Style_1" ;;2 (cdr (assoc 380 (entget (entlast)))) ;;Return nil ;;3 (cdr (assoc 390 (entget (entlast)))) ;;Return <ENTITY NAME: 2a253790> ;;??? Quote
marko_ribar Posted March 24, 2019 Posted March 24, 2019 (defun c:selnamedpstyle-Style_1 ( / dict stename ss ) (setq dict (dictsearch (namedobjdict) "ACAD_PLOTSTYLENAME")) (setq stename (cdr (assoc 350 (member '(3 . "Style_1") dict)))) (setq ss (ssget "_X" (list (cons 390 stename) (cons 410 (getvar 'ctab))))) (sssetfirst nil ss) (princ) ) HTH., M.R. 1 Quote
lido Posted March 24, 2019 Author Posted March 24, 2019 @marko_ribar Yess. Thank you very much for your solution. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.