Select textboject with style filter including Blocks

Select textboject with style filter including Blocks

BenitoVin
Participant Participant
408件の閲覧回数
5件の返信
メッセージ1/6

Select textboject with style filter including Blocks

BenitoVin
Participant
Participant

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

0 件のいいね
解決済み
409件の閲覧回数
5件の返信
返信 (5)
メッセージ2/6

Simon_Weel
Advisor
Advisor
解決済み
0 件のいいね
メッセージ3/6

Kent1Cooper
Consultant
Consultant
解決済み

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
メッセージ4/6

BenitoVin
Participant
Participant

Try to remove unwanted textstyles created by Xrefs.

0 件のいいね
メッセージ5/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 件のいいね
メッセージ6/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 件のいいね