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.

Command Window Question

Started by cressjl, February 08, 2012, 10:15:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

Mark,

I use C++ pretty much like ordinary C, and shun many of the "turbo programming" features. That's why the guys joke about my C-- code. However, type casting and checking are a major improvement over the original C.

The three features that I would like to see in BasicCAD are callable functions with variable passing, the ability to include a macro file within another macro, so that the included code is executed just like another command (or function), and some way to create synonyms for Sys(x) variables so they have some meaning.

Phil
DesignCAD user since 1987

Lar

Hey, let's not forget that some of us are 'draftsmen', for lack of a better term, as opposed to programmers or hackers. When you see me write a macro I still have to get my drawing done around that.

Lar

dcadRob

#17
QuoteI would like to see in BasicCAD are callable functions with variable passing
Use CALL and CMDLINE
Quotethe ability to include a macro file within another macro, so that the included code is executed just like another command (or function)
Can't you use CALL for that.
Quoteand some way to create synonyms for Sys(x) variables so they have some meaning.
Use ALIAS

Dr PR

dcadRob,

Thanks. As I said, I am not very familiar with the BasicCAD language. It is good to see that these fundamental programming elements are included.

Phil
DesignCAD user since 1987

Bob P

I've posted the V15 help file (in PDF format) here:

http://www.wwslalom.net/dc/macrohelp.pdf

Note that values fed to DC commands must be enclosed in brackets.  The help file's examples are incorrect.

dcadRob

The weakest parts of BasicCAD are input and output and the lack of debugging tools. Multiple input boxes in a window with OK and Cancel buttons has to be the minimum standard these days.

MarkX

Quote from: Bob P on February 11, 2012, 05:07:14 AM
I've posted the V15 help file (in PDF format) here:

http://www.wwslalom.net/dc/macrohelp.pdf

Note that values fed to DC commands must be enclosed in brackets.  The help file's examples are incorrect.
Somewhere in these forums I found the v17 version in HLP and CHM form.

Mark


dcadRob

#23
Macros17 and OleDC17 help files in .CHM format for Win7 & Vista :

http://forum.designcad.com/index.php?topic=2975.msg15978#msg15978