Jump to content
DDTarrant

Macro textstyle

Recommended Posts

DDTarrant

This macro is something I use as a 'trained monkey'. I know what it does and how to use it but now I want to alter it and most of it is Greek to me. By elimination it seems "textsz" changes the current textstyle to a different style. The alteration I want to make is to stop the macro changing the textstyle.

 

 

 

(progn(setq scl 1)(setq scfac 1)(textsz)(dimsz)(ltscl)(prompt"Scale has been set to 1:1000")(setvar "modemacro" " : Scale is 1:1000 .")(princ))

 

 

 

How would this be happenning, or is it something our long since gone Acad expert setup to make our lives easier?

 

 

This is my first post and ask for gentle chastisements if I've done something wrong

 

 

Cheers

Doug

Share this post


Link to post
Share on other sites
ReMark

I'm having trouble seeing where the style is being changed. Did you forget to post all of the code?

Share this post


Link to post
Share on other sites
Tharwat
I'm having trouble seeing where the style is being changed. Did you forget to post all of the code?

 

1+

I encountered a fashion site and codes were not shown in that link but only fashion and clothes . :D

Share this post


Link to post
Share on other sites
eldon

I would hazard a guess that the macro is setting a text size, dimension size and a linetype scale, which are being defined elsewhere.

 

I don't think that the text style would be changed for a different scale, but we might not have ALL the facts.

Share this post


Link to post
Share on other sites
DDTarrant

^C^P(progn(setq scl 1)(setq scfac 1)(textsz)(dimsz)(ltscl)(prompt"Scale has been set to 1:1000")(setvar "modemacro" " : Scale is 1:1000 .")(princ))

 

Sorry there was a bit missing from the front.

Share this post


Link to post
Share on other sites
Tyke

Exactly as all the others said, I don't see anywhere where the text style is being changed. That means the text style of the text that is being inserted will be the current text style, whatever that might be.

Share this post


Link to post
Share on other sites
Tyke

It's a very long time since I did any LISP, but looking at what you have here you are setting two variables "scl" (Scale?) and "scfac" (scale factor?) to a value of 1 and then then calling three functions "textsz" (text size?), "dimsz" (dimension size?) and "ltscl" (LT scale?) that don't exist unless they were previously loaded in another LISP routine. Perhaps some code in ACADDOC.LSP file or your ACAD.LSP file. But if you don't know what you're doing in a LISP file DON'T change anything in any of these files, it could be disastrous.

 

I have the feeling your LISP expert had everything under control but now without him you will be really struggling and things can only get worse.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...