Author Topic: why (setq ss (ssget '((3 . "*")))) can't work?  (Read 1590 times)

0 Members and 1 Guest are viewing this topic.

xinxirong

  • Mosquito
  • Posts: 17
why (setq ss (ssget '((3 . "*")))) can't work?
« on: February 14, 2017, 07:23:03 AM »
 (setq ss (ssget '((1 . "*")))),you can select all entities that contain dxf 1 。
but when i try to find Mtext that are over 250 words,it can't work,why?

ChrisCarlson

  • Guest
Re: why (setq ss (ssget '((3 . "*")))) can't work?
« Reply #1 on: February 14, 2017, 07:49:45 AM »
I cannot recall off the top of my head but I believe there is a separate DXF code for mtext entities with a length > 250.

(setq ss (ssget (list '(0 . "MTEXT")))) should select mtext entities regardless of length.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: why (setq ss (ssget '((3 . "*")))) can't work?
« Reply #2 on: February 14, 2017, 10:36:06 AM »
Try this:
Code: [Select]
(setq ss (ssget '((0 . "MTEXT")(1 . "*"))))
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

xinxirong

  • Mosquito
  • Posts: 17
Re: why (setq ss (ssget '((3 . "*")))) can't work?
« Reply #3 on: February 14, 2017, 08:34:46 PM »
I want to use regular expressions to search MTEXT ,like
Code: [Select]
(setq ss (ssget '((3 . "*searchString*"))))

ChrisCarlson

  • Guest
Re: why (setq ss (ssget '((3 . "*")))) can't work?
« Reply #4 on: February 15, 2017, 08:07:32 AM »
I don't understand fully what you are trying to do.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: why (setq ss (ssget '((3 . "*")))) can't work?
« Reply #5 on: February 15, 2017, 12:38:08 PM »
So you are trying to "Find Text String"
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: why (setq ss (ssget '((3 . "*")))) can't work?
« Reply #6 on: February 15, 2017, 12:45:59 PM »
As far as I'm aware, I don't believe you can filter a selection based on the value of DXF group 3 for MTEXT, therefore, you will need to obtain a selection of all MTEXT entities which fulfill all other criteria, and then filter the selection further by iterating over the entities in the selection.