haisagiviz Posted February 4, 2020 Posted February 4, 2020 Hi All, I am using ssget to filter select some of properties to modify. I searched and tried many way to filter text height of dimensions but I cannot. (ssget '( (0 . "DIMENSION") (what dxf group code?) )) Please help me. Thanks in advance. HAI Quote
dlanorh Posted February 4, 2020 Posted February 4, 2020 5 minutes ago, haisagiviz said: Hi All, I am using ssget to filter select some of properties to modify. I searched and tried many way to filter text height of dimensions but I cannot. (ssget '( (0 . "DIMENSION") (what dxf group code?) )) Please help me. Thanks in advance. HAI Look Here and bookmark it 1 Quote
haisagiviz Posted February 4, 2020 Author Posted February 4, 2020 (edited) 48 minutes ago, dlanorh said: Look Here and bookmark it Thank @dlanorh so much. I will read until have a solution. Result: Sorry but I saw in all of Dimension have no any dxf reference for Text height. Edited February 4, 2020 by haisagiviz Quote
dlanorh Posted February 4, 2020 Posted February 4, 2020 Use the code given on Autodesk Forum and try substituting (not (< 120 (getpropertyvalue en "Dimtxt") 160)) for (not (equal (getpropertyvalue en "Dimtxt") th 1e-6) 1 Quote
haisagiviz Posted February 4, 2020 Author Posted February 4, 2020 (edited) 1 hour ago, dlanorh said: Use the code given on Autodesk Forum and try substituting (not (< 120 (getpropertyvalue en "Dimtxt") 160)) for (not (equal (getpropertyvalue en "Dimtxt") th 1e-6) Thank you very much @dlanorh I can filter and do something with your support. Edited February 4, 2020 by haisagiviz Quote
haisagiviz Posted February 4, 2020 Author Posted February 4, 2020 For newbie want to filter Dimension Text Height like me. From BeekeeCZ (Autodesk Forum) (defun c:test (/ ss th i en) (if (and (setq th (getreal "\nText height you search for: ")) (setq ss (ssget '((0 . "DIMENSION")))) ) (repeat (setq i (sslength ss)) (setq en (ssname ss (setq i (1- i)))) (if (not (equal (getpropertyvalue en "Dimtxt") th 1e-6)) (ssdel en ss)))) (sssetfirst nil ss) (princ) ) Quote
dlanorh Posted February 4, 2020 Posted February 4, 2020 5 hours ago, haisagiviz said: Thank you very much @dlanorh I can filter and do something with your support. No problem, glad i could help 1 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.