Jump to content

[SOLVED] ssget: How to filter dimension text height?


Recommended Posts

Posted

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

Posted
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

  • Thanks 1
Posted (edited)
48 minutes ago, dlanorh said:

 

Look Here and bookmark it

Thank @dlanorh so much.

I will read until have a solution. :D

 

Result: Sorry but I saw in all of Dimension have no any dxf reference for Text height.

Edited by haisagiviz
Posted

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)

 

  • Thanks 1
Posted (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 by haisagiviz
Posted

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)
  )
  • haisagiviz changed the title to [SOLVED] ssget: How to filter dimension text height?
Posted
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

  • Like 1

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...