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.

CutEdge macro does not work

Started by BlankMan, May 06, 2019, 05:58:00 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

BlankMan

Anybody know how to get the CutEdge macro to work? Because it doesn't. Finally figured this out, last time I tried to use it I could not get it to work. This time I figured out why.

You're suppose to give it the point on an edge and the depth to cut, but it ignores the depth you give it. Instead, when you use Cut Edge interactively a box pops up where you enter the depth you want to cut the edge. Well, when you use CutEdge in a macro it ignores the depth you give it and uses what ever is in the box from the last time you used it interactively.

So maybe Depth is not the correct parameter name to use? Even though that's what the v17 document says to use?
Newbie? Not.
Been using DesignCAD 3D since ~1990
Still have version 4 floppies from 1992...

Lar


Does it use sys(36), ie
Silent Mode,
in which case it will not display certain things like dialog boxes that could slow down the macro.


If you post the macro mybe we can figure it out.


Lar

BlankMan

#2
Thanks for the ideas. Here's the macro. Pretty simple. Marco 101. Not doing anything fancy. The variables evaluate to numbers, no surprise there. This macro will cut the corner, just not to the depth of BoxLipSup which is 0.281". It cuts the corner to the default value in the CutEdge box on DCAD startup which is 0.031. I can hard code a number in the macro, any number, and it will still cut the corner to 0.031 regardless. That is the problem.

As for sys(16) none of the macros I use display dialog boxes and they shouldn't unless a parameter is missing. I use macros to automatically do something without me having to manually do any part of it whatever it is. So if something is displayed when I use a macro that means something is wrong with the macro and I then fix it. The fact that on those occasions I'm then requested to do something would say I'm not in Silent Mode?

Troubleshooting 101. I use "Message" to display the evaluated calculations and make sure they're correct and I use "PointSelect" to show me that I'm where I think I'm supposed to be. The problem is that DCAD ignores the "Depth" parameter, it's not operator error...


    >CutEdge
    {
        <PointXYZ [CtrX-(BoxWidOD/2)-BoxLipSupClr-BoxLipSupX,CtrY-(BoxHgtOD/2)-BoxLip+BoxLipSupY,CtrZ]
        <Depth [BoxLipSupY]
        <Layer [CurLayer]
    }
Newbie? Not.
Been using DesignCAD 3D since ~1990
Still have version 4 floppies from 1992...

Lar


Man, I hate those macro parameter bugs cause it'll take another million years for the developers to fix it.


You may have to use Slice instead of CutEdge, using the corner points of the box to generate the 'custom' slicing plane.


Lar


BlankMan

Thanks. Na, for now I just draw a plane on the angle I want and extrude it and subtract that to make the chamfer on the edge. PITA to have to do that though when there's a command that is supposed to do it...
Newbie? Not.
Been using DesignCAD 3D since ~1990
Still have version 4 floppies from 1992...