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.

How to automatically run a BasicCAD program when DesignCAD starts

Started by prl, February 03, 2007, 04:49:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

Looking for a way to automatically run a BasicCAD program when DesignCAD starts?

Keywords:
basiccad  startup autostarting



A way to control DesignCAD and have it do what you want each and every time it starts, is to use an autostarting basiccad program that runs whenever DesignCAD is launched.  Use it to set whatever you want programmatically, I do.  I don't use templates and such, just my autostart code. As an example, to set the active line style to what you want each time DesignCAD starts, do this:


Step 1:
To tell DesignCAD what the name of the autostarting program is, go to the DC3MaxDef.ini file found in the DesignCAD program directory. Add the name of the startup program path, similar to what I have shown below. Change the path and file name to your needs.


[BasicCAD Settings]
TraceDlg=42,62,580,387

[Startup Program]
BasicCAD=d:\DcBsc15\mysettings.d3m



Step 2:
Now actually create the "mysettings.d3m" program below.

'Program: mysettings.d3m

sys(4) = 0 'this is for line style 0 = solid
sys(5) = 1 'line type scale
sys(6) = 0 'line width

end


Save this file as "mysettings.d3m" and put it in your macro directory.  Start DesignCAD.


Hope this helps.



janders1

This sounds like a great idea, but I cannot find the file DC3MaxDef.ini anywher in the DC 17 directory. I am sure I am probably looking in the right place. Could you direct me to the proper place in DC 17. The line loading is driving me nuts.

prl

Quote from: janders1 on February 03, 2007, 05:17:54 AM
This sounds like a great idea, but I cannot find the file DC3MaxDef.ini anywher in the DC 17 directory. I am sure I am probably looking in the right place. Could you direct me to the proper place in DC 17. The line loading is driving me nuts.

I guess it doesn't exist by default.  You can use mine. Put it in the default DesignCAD directory (where Dcad17.exe exists).  You will need to edit the path for where DesignCAD looks for your macros. 

dc3maxdef.ini

janders1

I cannot get this to work. When I open Ver. 17 I get the message that the path cannot be found. I must be doing something wrong. Here is the path I used and my macros are in the sample macro file.

[BasicCad Settings]
TraceDig=42,62,580,387

[Startup Program]
BasicCad=C:\Program Files\IMSI\DesignCAD 3D Max 17\Sample Macros

Lar

Guys, you can do this through the menu:

File menu> Workspace Configuration>> Setup DesignCAD Workspace...

Startup Settings will be highlighted. Click the Details button. Type in or Browse for the desired macro in the Startup Macro field at top.

Lar

prl

Quote from: janders1 on February 03, 2007, 08:24:06 AM
[Startup Program]
BasicCad=C:\Program Files\IMSI\DesignCAD 3D Max 17\Sample Macros

Your path to the file is incomplete.

If you used the file I gave above, it should be something like

BasicCad=C:\Program Files\IMSI\DesignCAD 3D Max 17\Sample Macros\mysettings.d3m

janders1


Lar


magic

Hi all,

I didn't realize that this was an issue.

If you want this under Windows Vista, 7 or 8, you now have to place your startup macro in the DesignCAD xx or DesignCAD 3D MAX xx folder under Documents/My Documents and create a DC3MAXDEF.ini there too:

DC3MAXDEF.ini
[BasicCAD Settings]

[Startup Program]
BasicCAD=C:\Users\Your Name\Documents\DesignCAD 3D MAX 23\xxx.d3m
It's a kind of magic!




Dr PR

magic,

For clarification - does the .ini file have to be in the "Documents" folder, or should it be in the folder where the program was installed? I avoid the entire "Documents" thread like the plague! On my Win 7 machine there is no "DesignCAD" folder in the "Documents" thread.

The only things in the "Documents" folder are files that some piece of crapware put there against my protests! When this happens I have to move the files to where I want them. PITA!

Phil
DesignCAD user since 1987

magic

Hi Phil,

No, it doesn't. But when you install DesignCAD, that's usually where it stores the .ini files etc.
It's a kind of magic!




Dr PR

magic,

If you use the default installation I think it installs the program in the "Documents" folder. But if you use the "just for me" installation option it puts the program wherever you want it.

Personally, I always use the "just for me" installation. This allows me to have multiple versions installed with no danger that one version will overwrite, erase or change files from another version.

Phil
DesignCAD user since 1987

magic

Hi Phil,

Yes, you're right, only I always install for all users (default).

This way it's also easier for ContourCAM installation to find the right folder.

I can still have all the versions of DesignCAD on one PC without problems.
It's a kind of magic!