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.

Double line type

Started by Pearco, January 07, 2015, 08:31:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pearco

Macro Experts:

Is there a Sys function to set the type of line ( Double line,Plane, or lines) from within the macro? Another words so as to allow the macro to turn on lines when the macro command is used. Or is it a command that is used within the double line mode part of the macro?
Jim
User since ProDesign 1.5

Juergen

Pearco,

Not sure, I got it. Do you mean something like this:
(copied from manual)


sys 346 - Double Line Mode Status [0=off, 1 = on]
--------------------------------------------
If Not (Sys(346)) Then
>DoubleLineMode
{
}
End If
' switches immediately to double line mode

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

Sys(346) = 0
>Line
{
<Pointxyz 10, 10, 0
<Pointxyz 20, 10, 0
<Pointxyz 20, 20, 0
<Pointxyz 10, 10, 0
<Pointxyz 10, 10, 0
}
>PointSelect
{
<Pointxyz 10, 10, 0
}
>DoubleLineToWideLine
{
}

Kind regards,

Juergen

Pearco

Thanks to both  you guys.

What I'm looking for is if you look at the double Line tool bar on the far right hand end you see save as 1.Double line which is the default, 2 Plane, or 3 line.
I want to run the macro and insure that it will save as lines for easy manipulation later.
I probably was not clear with my first post.
Jim
User since ProDesign 1.5

prl

Jim,

I didn't see the parameter for the double line mode saveas "line", but after you have created the double line via code you can immediately select it and "vector convert" to achieve the same thing.


JJG

not sure "vector convert" is the best way ... (You lost the tickness)
Edit/Selection edit/Convert .../Double line to wide line  appears more appropriate, No ?

in Basicad words :
>DoubleLineToWideLine
{
  }

DrollTroll

Hmm. Sorry Juergen, there doesn't seem to be a way to set the Double Line output type via BasicCAD.
25 years with DesignCAD

Pearco

DT:

Maybe that could be added someday without too much work.
Jim
User since ProDesign 1.5

Juergen

Pearco, DT:

Sorry, may be I didn't get it at all.
Reading the whole topic I now guess,
Pearco wants to have set the entries
(Double Line, Plane, Line) in the
pulldown menu of the DoubleLineBar?

Kind regards,

Juergen

Pearco

Juergen:

You are correct. Set the type of lines as the macro progresses. It doesn't look possible.

Thanks to all.
Jim
User since ProDesign 1.5

DrollTroll

Pearco: I imagine it could, now that I've become aware of the omission. Since I have much less time available to work with the SDK myself these days, it's easy for me and Egor to forget to implement some of the little details that matter.
25 years with DesignCAD