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

Help with Macro & Text Format incompatibility

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
333 Views, 2 Replies

Help with Macro & Text Format incompatibility

I have a macro activated via a custom toolbar button in LT2002, for the purpose of incrementally numbering dinner tables in gala dinners for a major Convention Centre. The macro works fine until I create a nominated text format, such as 'Tables' with a pre-set text height. (any height except 0.0000 will cause the problem)
With preset text height in any current text format, the macro shows it is activating correctly on the command line, but no incremental numbers appear in the drawing window.
When I revert to 'Standard' text with no height, or remove the height from the new 'Tables' text, the incremental numbers appear perfectly, but with a default height of around 2.5 millimetres, when I require 250 millimetres.

The macro script is as follows:

*^C^C_undo;_mark;_setenv;StartWithNumber;\_-text;\;;$M=$(getenv,StartWithNumber);setenv;StartWithNumber;$(+,1,$(getenv,StartWithNumber)); ^M;

Can anyone help with this problem?
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Two fixes, pick one:

1. TEXTSIZE variable, set it to what you want. Your macro will work fine
after that with any text style with no height assigned.

2. Create a new version fo your macro, this one for text styles with fixed
heights, and take out the extra prompt for text height the command does not
look for with this type of text style (one less ; before your first $M):

^C^C_undo;_mark;_setenv;StartWithNumber;\_-text;\;$M=$(getenv,StartWithNumbe
r);setenv;StartWithNumber;$(+,1,$(getenv,StartWithNumber)); ^M;

--
Dean Saadallah
http://www.pendean.com
Expanded Links Page
http://www.pendean.com/lt/links.htm
--

"probe" wrote in message
news:f116e4e.-1@WebX.maYIadrTaRb...
> I have a macro activated via a custom toolbar button in LT2002, for the
purpose of incrementally numbering dinner tables in gala dinners for a major
Convention Centre. The macro works fine until I create a nominated text
format, such as 'Tables' with a pre-set text height. (any height except
0.0000 will cause the problem)
> With preset text height in any current text format, the macro shows it is
activating correctly on the command line, but no incremental numbers appear
in the drawing window.
> When I revert to 'Standard' text with no height, or remove the height from
the new 'Tables' text, the incremental numbers appear perfectly, but with a
default height of around 2.5 millimetres, when I require 250 millimetres.
> The macro script is as follows:
>
>
> a..
^C^C_undo;_mark;_setenv;StartWithNumber;\_-text;\;;$M=$(getenv,StartWithNumb
er);setenv;StartWithNumber;$(+,1,$(getenv,StartWithNumber)); ^M;
> Can anyone help with this problem?
>
Message 3 of 3
Anonymous
in reply to: Anonymous

Thanks very much Dean,
I've been on leave for a couple of weeks, but I will give your suggestion a try.
Regards,
Peter Robins

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

Post to forums  

Autodesk Design & Make Report

”Boost