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 can't find DcadAlias.d3i

Started by Mark Laing, April 27, 2010, 03:59:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mark Laing

I'm putting DesignCAD 20 on my new Emachine running Vista 7. I installed Designcad per the instructions and it works by fine. I go to run a macro, and it can't find the include file.
I've saved it in the programs directory, and the document directory. Where else can I put it? I have the "*\DecadAlias.d3i" path. Should I spell out a different path?

Pearco

Mark;

I am not a programmer of the magnitude of you guys, but should the path be DcadAlias.d3i not DecadAlias.d3i? If it makes no difference, I apologise.
Jim
User since ProDesign 1.5

Lar

Ever since Vista I've found it better to specify the exact folder path and not use the asterisk.

Lar

Mark Laing

#3
I checked, and I did spell it right in the macro.
I'll try the exact path.

Now, I notice I have the macros in the program directory. Wasn't there discussion of putting them the document folder in Vista? Where do other people have them?

bdeck

#4
Hi Mark,

In version 17 I keep my include file in my macro folder. My macro folder isnt even on the same drive with the program folder. But it is at least outside the program folder so that when I update DC, my my macros remain in tact.

But I rarely link to the include file.

Normally I just declare the alias variables within the macro itself. I've never had more than 6 in a macro.

Since I have to look them up to get the spelling right, it's as easy to copy the entire declaration as it is to copy just the name.

BD

Dr PR

Mark,

Have you set the "Macro" files location in "Options/Options/File Locations"? This is where DesignCAD looks for macro files.
DesignCAD user since 1987

DrollTroll

With version 18 and later:

If installing on Windows 7 or Vista, if you check "Install for all users" the macros, sample drawings, and settings will default to your Users/Username/Documents/DesignCAD folder, and that's where the asterisk will point to as well. For XP they go to your My Documents/DesignCAD folder.

If you check "Install for me only", the macros, sample drawings, and settings will default to the same folder where DesignCAD was installed, and that's where the asterisk will point.

For version 17 and earlier the extra files are always installed to the same folder as DesignCAD, and that's where the asterisk points.

Like bdeck, I usually just define the aliases in the main macro -- that avoids any potential problems of missing files. Alternatively, I copy the included files to the same folder as the including macro, and omit any path info for the include statement.
25 years with DesignCAD

Mark Laing

Thanks, I went with just not puttting in a path for the file in the macro. Just the file name itself in quotes. Works great.