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.

DOS version of DesignCAD 2D

Started by DrollTroll, June 06, 2016, 07:56:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DrollTroll

Does anyone here remember how to save a screen image from the 2D Dos version? I've got a customer asking me, and all those brain cells left decades ago.

He can't just copy them to a new system and load them in a current version, because those old indexed colors don't come across correctly.

Thanks,

DT
25 years with DesignCAD

Bob P

What?  You haven't saved the manuals?  I never throw anything away.
Menu: files>screen save
Short form: ss

Points 1-2: Opposite corners of the image to be saved. (Optional)

DrollTroll

Thanks Bob.

Most of my old manuals got accidentally donated to the library by my wife some years ago. My bad -- I had them in an inconvenient place.
25 years with DesignCAD

Dr PR

#3
Boy, talk about digging up old memories!

Shift-PrtSc key combo writes the screen contents to the standard printer device. This may work only for text.

I think you have to redirect output to a file "> filename." I don't remember how to do this. Maybe

PRTSCR > filename

or PRINT > filename

May have to set the path first to point to the directory containing the file.

Phil

PS: I still have some old DOS programming manuals! Time to clean out the bookshelves.
DesignCAD user since 1987

samdavo

You have to smile when the administrator isn't beyond asking (i.e. isn't too proud to ask) for help lol - even if it involves how to clip the toenails of a dinosaur etc :)

PS Did the library put them on the shelves? or in the bin?, lol.

Bob P

I've attached the help files for both DC 2D V6 and DC 3D V4. I did some editing of the sys file and converted to PDF.

DrollTroll

25 years with DesignCAD

Bob P

You're welcome.  Now can you explain to me how to use aliases in macros?  Whatever documentation I've found is less than clear to me.  Especially the lines that are like "Alias D_ARROWTYPE &H0A01". :o

DrollTroll

#8
Aliases are strings that can be used in place of other identifiers.

For example, you could have
Alias curlay Sys(3)

anywhere you used curlay in your macro, DesignCAD would substitute "Sys(3)" instead.

The aliases used for Query and Change parameters are friendlier names for special hexadecimal ids used by Query and Change to identify a particular parameter. So in the example you gave, it's much clearer to use D_ARROWTYPE in your macro code than &H0A01.

What happens is, as DesignCAD parses the BasicCAD file, it maintains an internal version with all the aliases substituted out for the underlying text that they are replacing, and runs that parsed version rather than your "friendly to the eye" version. That means you can't cheat the 256-character limit of a BasicCAD statement by using shorter aliases; the fully-parsed-and-replaced statement is what's going to be counted.
25 years with DesignCAD

Bob P

D.T.,

Thanks.  That clears things up.  It was the origin of "&H0A01" that had me most confused.

bdeck

Hi Bob,

I'm guilty of putting alias definitions at the top of my code, where many users would simply put an "include" statement referencing DcadAlias.d3i. 

I find the alias definitions I need by searching "query and change parameters" in the SDK. Then I simply copy and paste the definition to the top of my macro, from where the alias itself can be copied for use in the code below.

Query and change commands work only on the entity which is the object of the most recent "entity" command.

Change commands do not take effect unless the update command is subsequently executed while the prior entity command is still active.

Query/Change commands are modern improvements over the old Getattr/Setattr commands.

bd