News:

Please note new Forum URL: forum.designcad.com

Main Menu

Strange behavior

Started by Gymbo, June 05, 2021, 01:06:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gymbo

I wrote a routine to toggle layer 3 visibility for a couple of seconds, when I wrote it last year it seemed to work well, I named it T3.d3m.

I run it by pressing the spacebar, type t3, and hit Enter. Now what happens is it invokes the text command! If I run it using "%" or with the Tools menu it works correctly, if I rename to S3.d3m and run it with the spacebar. s3, Enter it works correctly.

I'm using DC2D Version 23.0

I've attached the macro and a sample drawing with layer 3 not visible.
Regards,

Jim

Rob S


The same happens for me.

It appears that T3 is actually one of the existing Designcad two-letter shortcuts for Text 3D

You can find these in the custom.ini file, and edit them if you wish.  If you change or remove that one from custom ini, then you can use it as a macro name.

Otherwise Designcad will default to the existing shortcut, rather than your macro name.
User since forever

Gymbo

Thanks Rob, found it and commented it and that solves the mystery. Don't know why it worked last year, must have changed the name at some point.
Regards,

Jim