Example Macro's and NPoints

Started by bajanine, March 27, 2021, 09:16:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bajanine

When I try to run this example macro 'NPoint.d3m' I get an error on line 4. If anyone could point me in the right direction it would be appreciated. DesignCAD v 29.0.

[code>Line
{
  <Color 255, 0, 0
  <NPoint 7
  <CmdPrompt "Set 7 points for the line."
  }

>Curve
{
  <Color 0,100,0
  <NPoint 4
  <CmdPrompt "Set 4 points for the curve."
  }

>Hatch
{
  <Color 0,0,255
  <NPoint 5
  <CmdPrompt "Set 5 points for the hatch."
  }

>Arrow
{
  <Color 120,80,30
  <NPoint 2
  <DoubleSided 1
  <CmdPrompt "Set 2 points for the arrow."
  }

>Plane
{
  <Color 40,120,80
  <NPoint 3
  <CmdPrompt "Set 3 points for the plane."
  }
]
DesignCAD 2D 2020 Ver. 29.0

Rob S

I also can't find any reference to the parameter <NPoint anywhere in the documentation that I have.

Checking in Macrocmd.ini, it looks like <MaxPoints is connected to the internal command npoint. (MaxPoints=IDM_FUN_NPOINT)

You could try <MaxPoints in the macro and see if it works. 

Do you have the latest effort at macro documentation by the late and great "Drolltroll"  - which can be found here??

https://forum.designcad.com/index.php?topic=5.0
User since forever

bajanine

That did it changing it to MaxPoints worked!

Thanks.
DesignCAD 2D 2020 Ver. 29.0