Select textboject with style filter including Blocks

Select textboject with style filter including Blocks

BenitoVin
Participant Participant
406 Views
5 Replies
Message 1 of 6

Select textboject with style filter including Blocks

BenitoVin
Participant
Participant

(setq ss (ssget "_X" (list '(0 . "TEXT,MTEXT") '(? . "TEXTSTYLE")))).....

0 Likes
Accepted solutions (2)
407 Views
5 Replies
Replies (5)
Message 2 of 6

Simon_Weel
Advisor
Advisor
Accepted solution
0 Likes
Message 3 of 6

Kent1Cooper
Consultant
Consultant
Accepted solution

The number you want in place of your question mark is 7 -- see >this< and >that<.  But that will not find Text/Mtext inside Blocks -- (ssget) can "see" only top-level objects.  Also, by "including Blocks" do you mean Attribute values only?  FIND can get at those.  But if you mean regular Text/Mtext objects that are fixed parts of Block definitions, FIND won't do it, either.

Kent Cooper, AIA
Message 4 of 6

BenitoVin
Participant
Participant

Try to remove unwanted textstyles created by Xrefs.

0 Likes
Message 5 of 6

BenitoVin
Participant
Participant

(setq ss (ssget "_X" (list '(0 . "MTEXT") '(7 . "Standard"))))
(repeat (setq i (sslength ss))
(entmod (append (entget (ssname ss (setq i (1- i)))) '((7 . "Romans")))))

 

This one is working fine, but not for the blocks.

0 Likes
Message 6 of 6

Kent1Cooper
Consultant
Consultant

@BenitoVin wrote:

....

This one is working fine, but not for the blocks.


I think it would be necessary to step through the Block table, and within each Block definition, step through all objects, and for each one, if it is Text/Mtext, change its Style.

Kent Cooper, AIA
0 Likes