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.

Dumb Questions About BasicCAD

Started by Ignoblius, January 18, 2011, 06:39:56 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Ignoblius

What language are macros written in?

Can they be written with a simple text editor?

Is compilation required?

Is there an application designed for coding these with a means of error-checking prior to run?

Is there a reference source available in which the elements of the language are defined?

Rob S

QuoteWhat language are macros written in?

A form of basic which has been called "BasiCad", and which is the same as any recorded macros are kept in.

QuoteCan they be written with a simple text editor?

Yup, notepad, or any other.

QuoteIs compilation required?

It is not compiled, still amazingly fast though.

QuoteIs there an application designed for coding these with a means of error-checking prior to run?

No, but the language itself contains a parameter for error-checking when run inside of Designcad.


QuoteIs there a reference source available in which the elements of the language are defined?

Latest available was written for DCAD 17, and there have been a few loose items added since.

http://forum.designcad.com/index.php?topic=5.0
User since forever

Dempsey

#2
When you really are going to dig deep into writing BasicCAD macros then you should install the free programming language sensitive PsPad from:
www.pspad.com/en/download.php

Another forum member (prl) also provided us with a PsPad customization that allows you to test a macro in an open drawing in DesignCAD. Have a look at http://forum.designcad.com/index.php?topic=5261.0 for the new zip file with all the required files and new documentation. Been tested up to V23.0.
Dempsey

bdeck

Adding to what others have posted:

1) I recommned copying the "SYS Function" page and the "SYS$ Function" pages from the the SDK (the "Macros17.hlp"  file at the link RobS provided) to individual text files so they can be searched easily.

2) No compiler, but there are also SDKs for interfacing to DC using OLE automation with examples in VB, VC,  C++Builder, and Delphi. (search this forum)

3) The DesignCAD installation also includes a utility program Encrypt.exe, which allows you to encrypt your macros so that others can use them, but can't read your code. (see the SDK file for info) ( The programs are still interpreted )

BD

RWSurvey

The syntax file mentioned in the above pdf is at a site that Explorer will not let me go to, is it available somewhere else? PsPadBasicCADSyntax. zip I mean.

Gary E.

RWSurvey

Now that I have read farther how about the PsPadInterface_gui.zip also?

Gary E.

Dempsey

RWSurvey,

I don't understand why you are having a problem. The zip and pdf files are on the same site as the forum itself. You just double click on the file and the browser does the rest. Works for me in Firefox 3.6.13 and Internet Explorer 8.0.6001.

You may have to check your IE security settings, although I run with the default settings.
Dempsey

Dr PR

RWSurvey,

What browser are you using?

I have an XP machine on which Firefox always fails file transfers. It will go through the dialogs, but it never completes a file transfer. I have heard this complaint from several other people. Internet explorer always works. The Firefox failure started a few versions back.

I don't know if it was a Firefox upgrade that caused the failures, or one of the incessant Microsoft meddlings with the operating system. I do know that Microsoft has screwed up some features on XP since Vista and Version 7 have appeared. How convenient for Microsoft!

On the other hand, I have another XP machine where Firefox works correctly. Go figure! It is running an older version of Firefox, and has Microsoft automatic upgrades disabled.
DesignCAD user since 1987

RWSurvey

HTTP://h1.ripway.com/DcForems/PsPadBasicCADSyntax.zip
and
HTTP://h1.ripway.com/DcForems/PsPadInterface_gui.zip

as mentioned in the BasiccadPsPadnew.pdf downloaded from this site.

At the ripway site sometimes the page no longer exists and somtimes Explorer complains about it being a dangerous site

Gary E.

Dempsey

RWSurvey,

Okay, now I understand your problem. "ripway" was the old website. Everything you need is included in the zip file and pdf file I provided. Granted the text in the pdf refers to the original zip files, but I only had the old hardcopy text which I scanned in as pdf. Sorry about the confusion.
Dempsey

RWSurvey

I see said the blind man...

Have found several versions of the Macros help file with the statement, functions and commands listed alphabetically. Before I undertake it has anyone already arranged them by category, i.e. all the file manipulation commands and functions together, etc.?

Gary E.