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 error trapping and SYS(n) function/name list

Started by Dempsey, December 04, 2008, 06:07:42 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dempsey

I like to write a macro to list a range of SYS() or SYS$() values, e.g. from SYS(1) to SYS(120). I have three questions.

Is such a macro already available?

Retrieving some of the SYS(n) values give an error when some prerequisite action is not met. Is there a way to trap those errors and then continue processing with SYS(n+1)? For example like this: IF "SYS access error" THEN do something.

Finally, is there a structured list (table) with short text strings describing what each SYS() and SYS$() does? I can dump SYS(1) to SYS(120) but can certainly not remember all of their meanings.

My list would look something like this:
    SYS(0) = 1; error checking
    SYS(1) = 0; number of points currently in the point buffer
    .
    SYS(90) = 3; entity type (used entity 523)
    etc.
Dempsey

DrollTroll

For a start, have a look at the ST.d3m macro in the Sample Macros folder. It doesn't do a group of them, but you can check them one at a time. It should point you in the right direction. For a list of the Sys() functions, have a look in the macros17.hlp file located in the SDK section.
25 years with DesignCAD