Merge text styles AutoCAD 2024

Merge text styles AutoCAD 2024

sander.van.pelt
Advocate Advocate
2,298 Views
5 Replies
Message 1 of 6

Merge text styles AutoCAD 2024

sander.van.pelt
Advocate
Advocate

Hello everybody,

I used the lisp below in AutoCAD 2023 and older versions of AutoCAD. With this lisp I could change all selected text styles to another text style at once. Or even change all text styles in a drawing to 1 text style so that, for example, I no longer have arial/ times new roman/ calibri/ isocp and many other fonts in my drawing, but only "standard".

We have now switched to AutoCAD 2024.1.2. However, now this lisp no longer works.

Could someone check what is wrong/needs to be adjusted in this lisp to ensure that it works again?

Thank you

 

mts_4-2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

Accepted solutions (1)
2,299 Views
5 Replies
Replies (5)
Message 2 of 6

Kent1Cooper
Consultant
Consultant
Accepted solution

Do you simply not have [or not have in a place AutoCAD knows to look] the MyDialogs.dcl file called for?

 

[A suggestion:  Don't paste over 700 lines of code into the body of a Message -- attach a file.  If it doesn't accept attachment of the file type, Zip it and you can attach the .zip file.]

 

[A clarification:  "Standard" is not a font, but a Text Style.  I expect what you mean is 'I no longer have arial/ times new roman/ calibri/ isocp and many other fonts in my drawing, but only the font that is assigned to the "standard" Style.'

Kent Cooper, AIA
0 Likes
Message 3 of 6

pendean
Community Legend
Community Legend
FYI it "does not work" aka never does anything here in any of my files in AutoCAD 2023-2022 either.

Do you have a DWG file that this LISP works in that you can share here?
0 Likes
Message 4 of 6

ВeekeeCZ
Consultant
Consultant

LISPSYS 0?

0 Likes
Message 5 of 6

sander.van.pelt
Advocate
Advocate

How easy can it be...

Indeed I forgot to copy the Mydialogs.dcl to my support folder. When I now use the lisp, the window appears and I can adjust all unwanted fonts.

Apologies for posting a code with so many lines @Kent1Cooper. Will add lisps consisting of many lines as attachments to any new messages. I have now also edited my current post.

(If anyone wants to use the lisp, I have now added it, together with the mydialogs.dcl, to this reply)

Message 6 of 6

Sea-Haven
Mentor
Mentor

Just a suggestion you can put the dcl code into the lisp makes it easier to maintain as only 1 file.

 

This great program by RLX can help.

 

 

0 Likes