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.

Name in control Box

Started by BPWL, April 02, 2009, 12:42:56 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

BPWL

Hello,

working in DesignCAD V18.2

Is it possible to draw a box and immediately assign a name to the box that appears in the name field of the info box ?

Box
{
  <Layer 10
  <Pointxyz 0,0,0
  <Pointxyz [DI],[LE],[BE]


' here something like this  <name "panel"

}

And can we have access to that field ??


BPWL



paulerens

#1
'This little macro ask a name and draw a box
Input "Enter a name to the box",N$    'Here, we assign a name to the strig variable N$
>2DBox
{
}
GetSelect 1,n
Entity n
Sys$(300) = N$      'Here, we apply the given name[N$] with (system strigvariable Sys$(300)) to the Entity named [n]
>InfoBox               'Only to see the Results
{
}
End