Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Automating Text Selection and Color Change in Civil 3D: Seeking Guidance for Beginners

erlanlirajr
Observer

Automating Text Selection and Color Change in Civil 3D: Seeking Guidance for Beginners

erlanlirajr
Observer
Observer

Hello. I'm trying to automate a task in Civil 3D, but I'm a beginner. The idea is to create a script that selects all "text" or "mtext" with a specific height and changes the color of these found elements. Note: this would be in the layout, and there are projects that reference the model with different scales. Could someone help me with how this automation could be done? Thank you!

0 Likes
Reply
Accepted solutions (1)
250 Views
2 Replies
Replies (2)

Joe-Bouza
Mentor
Mentor
Accepted solution

Go in a layout of one of you files.

start the action recorder give the macro a sensible name. QSELECT  filter text by height>> change property. QSELECT,mtext by height >>change property>>>QSAVE.

stop recording . Test it and adjust if needed.

 

find your acaddoc.lsp file in windows explorer and open in note pad.

add this to the file:

(COMMAND “macro name”)

save a close.

 

back to acad. using Sheet set manager or PUBLISH the layouts you need to change 

 

When done go back to acaddoc.lsp and add REM in front of the Caio and we previously added

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature