AutoCAD Electrical Forum
Welcome to Autodesk’s AutoCAD Electrical Forums. Share your knowledge, ask questions, and explore popular AutoCAD Electrical topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Run lsp File after AENEXT or AEPREVIOUS Command

3 REPLIES 3
Reply
Message 1 of 4
Fisherman120
347 Views, 3 Replies

Run lsp File after AENEXT or AEPREVIOUS Command

I am trying to run a simple lsp file to set my text style to "Arial" and the size to "2.5" for the MText. At present the default is "Arial_Bold" and size "4". Is there a way to run a lsp file each time the previous or next drawing is selected.

If not does anybody know where the standard MText defaults can be modified?.

3 REPLIES 3
Message 2 of 4
rhesusminus
in reply to: Fisherman120

The default text style can be set using the TEXTSTYLE system variable.
If the text style isn't set to use a specific height, the TEXTSIZE system variable keeps the default height of the new text.

This should be easy to implement in the acaddoc.lsp so that it's set every time a file is opened.

Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
Message 3 of 4
Fisherman120
in reply to: rhesusminus

Thank you for your response. I tried adding the following to the ACADDOC.lsp which is loaded at startup:

 

(command "TEXTSTYLE" "Arial")
(command "TEXTSIZE" "2.5")

 

It did not change the default style and size, any ideas?

Message 4 of 4
rhesusminus
in reply to: Fisherman120

If you do it manually, does it work then?

Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report