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.

Library of Macros etc

Started by pnb, December 19, 2019, 02:06:26 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

pnb

Has one been started and are they on the forum somewhere?
Peter
DesignCad 3D Max 2021, 64bit

Rob S

Nothing too well organized that I know of.    They are indeed on the forum, but (scattered) everywhere  :)

Best place to look is in the "User contributions".    Or search, using keywords.

Assuming you are aware of the samples that are installed with the program?

User since forever

Dr PR

Look for the "Sample Macros" folder in the folder where DesignCAD was installed.

Personally, I keep all of the macros I use in a "C:/DesignCAD/Macros" folder. Then I assign this folder to be the Macro folder in the "Options/Options/File Locations" dialog. This way every version that is installed has access to the same collection of macros, and when an old version is deleted I don't lose the Macro folder.

****

There are many macros on the forum. Unfortunately, many have cryptic or meaningless names so you don't have any idea what they do. To make it worse,many of the authors do not include comments at the start of the files to say what they are supposed to do, who created the macro, when, and with what version of DesignCAD.

The saving grace here is that the macro language hasn't changed much over the years, and most macros created in older versions still work with newer versions.

I know of no text index that catalogs the macros and explains what they do and how to use them.

Phil
DesignCAD user since 1987

pnb

Thanks both.
Perhaps a Macro section could be added to the forum where they can be posted with an explanation?
A Sticky could suggest the structure of perhaps:
Author, Date, Version, Title, Brief description of its action, Brief description on how to run it, Macro.

I had forgotten Macros were provided with DC, I have four directories of them in my User folder! Combining them would be a good idea.
Peter
DesignCad 3D Max 2021, 64bit

DrollTroll

I've posted most of my macros here:
https://forum.designcad.com/index.php?topic=3797.0
There's a front 'page' post with links and descriptions for all the macros in the subsequent posts.
25 years with DesignCAD

Bob P

If you use many layers in your drawings, I have created a suite of macros to make things easier: The latest DC has something similar, but they are not as convenient. Note that when you create a layer "group", a file is created in the same folder as the drawing.
"L" also assigns (historical DOS) colors, so you may want to edit out that section of the macro.

Download: http://www.wwslalom.net/dc/layers.zip

Description:
Bob's Layer Manipulation Suite
Bob Putnam ([email protected])
----------------------------------------------------------------

Program: mall.d3m
Changes to Edit all layers

Program: mclo.d3m
Edit current layer only

Program cl.d3m
Makes the layer of the selected entity the current one

Program: hsl.d3m
Hide Selected Layers"
The program will hide the entities in the layers of the entities selected.
If the current layer is to be hidden, the program will ask for a new current layer.

Program: l.d3m
Changes to or changes entities to a given layer
At the command line type l <n>, where n is a layer number.
If there are entities selected, they will be changed into that layer.
If there are no entities selected, n will become the current layer.
The color will be changed to that in the colors.txt file.

Program: shl.d3m 
Displays all layers

Program ssl.d3m 
Show Selected Layers"
If no entities are selected, all layers (up to 125) but the current one are hidden
If entities are already selected, the layer of the first is made current and the rest are left visible

-----------------------------------------------------------------

The following are a group of programs that allow you to remember up to 19 layer
configurations that associate with the current drawing.  That is, each drawing can
have its own set of "views".  They can be recalled, added, subtracted, replaced
and new ones saved.  When you save a layer state (savl.d3m), you will be asked for a short
description, which will be shown when you run the other programs. The layer states
are saved in files that are named <filename>.dv(n) where n is a letter from a-q

Program: savl.d3m
Saves the current layer state to a file for retrieval by rv.d3m, av.d3m, subv.d3m

Program: rv.d3m
Retrieves a saved layer group to display from file

Program: av.d3m
Adds a layer group to the current view

Program: subv.d3m
Removes a layer group from the current view

pnb

Thanks for the contributions everyone
And Seasons Good Wishes to you and yours!

Peter
Peter
DesignCad 3D Max 2021, 64bit