News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Macro query for V22

Started by Blood, January 08, 2014, 06:06:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Blood

Hello

Happy New Year to everyone here :)

I'd like to know if it is possible to record a macro that loads a symbol. I've looked at the macro option under tools and have started to record a new macro, named it, used the file > Load symbol option, navigated to the folder, selected the file, clicked open then stopped the macro, but nothing happens when the macro is played back.

The documentation only discusses creating drawing elements with a macro - nothing else is mentioned.

Is it possible to do this, please?

We have the relevant 'symbols' on a toolbar but it would save a considerable amount of time if a keystroke could be assigned to a macro so that a particular symbol is chosen and ready to be placed within the drawing when the key is pressed.

Thanks.
Using DCAD V17 and V22 in 2D mode on a Windows domain.

Bob P

The easiest way to initially create a macro is to use the Tools>MacroRecord method, then remove the lines which you don't need.  I quickly came up with this.  The options for commands are listed in the "Commands in macros" reference.

>SymbolLoad
{
  <Filename "D:\dcmacros\lock-unlock.dcd" 'Substitute your file here.
  <Type 1
  <Scale 1  'Remove this if you are going to scale the symbol.
  <Reference 0
  <LoadAsBlock 0
  }

Blood

Hi, Bob

Thanks a lot! It works like a charm :)
Using DCAD V17 and V22 in 2D mode on a Windows domain.