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.

Quarter Circle

Started by G-Bob, October 12, 2013, 01:50:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

G-Bob

I am getting error message when attempting to get Quarter Circle to work inside a macro
I use the example in the DC commands for macro's file

anyone else having this problem (ver 22.1 2d)

It states a error in a DesignCad command

Appreciate any help, thanks

G-Bob

DrollTroll

Post your macro so we can see your code.
25 years with DesignCAD

G-Bob

The Code as generated by a macro on a clean page

QC.d3m

>SetStartPoint
{
  }
>QuarterCircle
{
  <Color 0,0,0
  <Layer 1
  <LineStyle 0,50.0000,0.0000
  <PointXYZ 0.000000000000000e+000,0.000000000000000e+000,0.000000000000000e+000
  <PointXYZ -8.409999999999959e+002,-8.730000000000006e+002,0.000000000000000e+000
  <Type 0
  }




And the result


Lar

#3
I tried your code in 22 and 23 and it works ok for me.

Your error message indicates that dcad has a problem with the command name. If I remember correctly dcad 22 did have a problem with macros with command names in them. Sorry, but I don't remember the solution (something to do with dcad not finding the command in one of the ini files). Maybe someone else does. When we find the solution maybe it should be posted in a sticky topic since it seems to happen to some users when they first start dcad 22.

Lar

DrollTroll

G-Bob, if you change
>QuarterCircle
to
>Line

does the macro work then?

Also, make sure Layer 1 is not currently locked.
25 years with DesignCAD

DrollTroll

I think I found the problem -- looks like a typo in the MacroCmd.ini file that ships with DesignCAD 2D 22.
G-Bob, locate the file MacroCmd.ini and open it in Notepad.
Locate the line
;QuarterCircle=ID_QUARTERCIRCLE
and remove the semicolon in the first column, so you now have this:
QuarterCircle=ID_QUARTERCIRCLE
Save the ini file, and try your macro again.
DT
Sorry about that!


25 years with DesignCAD

magic

Hi DT,

It's the same with the MacroCmd.ini file that ships with DesignCAD 2D v. 23, so maybe you should fix that as well, when developement fixes install without connection to the internet.

Thank you very much.
It's a kind of magic!




Bob P

My V23 macrocmd.ini file doesn't have that mistake.
*And I just checked the V22 and it is correct too.  Maybe it was corrected in V22.1.

magic

Hi Bob,

It's only the 2D versions that have the problem. And it's easily corrected.
It's a kind of magic!




G-Bob

DT

I edited the MacroIni file and now all is good

Line worked within the macro as well

Thanks