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.

Macro - Curve - Save as a Line

Started by ablincoe, March 28, 2014, 02:03:00 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

ablincoe

Unfortunately, I am still somewhat new to CAD, and have to re-draw/modify things many times before I like the looks of the entity.  Because of all this, and the combining of entities into a single entity and then mirroring the entity ...  I have no idea as to where the system may think that some of the points are.

I am trying to set-up a macro that will take a selected set of lines, Place "X" number of point marks along the entities, and then use the  >CURVE command (from a specific PoinMark and direction) to draw a new entity to replace the original ones with.

When I use the >CURVE command, it always comes out as "Save as a Line" checked, and I am looking for a method to turn that check-mark off when drawing my Curve.  Has anyone found a method of doing this?  I am using  DC-19  at the moment.

Thanks,
Allen

P.S.  Thanks to the forum, I think I have some much better ideas on how to "divide" my lines now.

prl

Quote from: ablincoe on March 28, 2014, 02:03:00 PM
When I use the >CURVE command, it always comes out as "Save as a Line" checked, and I am looking for a method to turn that check-mark off when drawing my Curve.  Has anyone found a method of doing this?


You want type 0. 

Example:

>Curve
{

<Color 0, 128, 255
<Layer 3
<Linestyle 5, 2, 0
<Type 0
<Pointxyz 0, 0, 0
<Pointxyz 10, 10, 0
<Pointxyz 20, 0, 0
<Pointxyz 30, 10, 0
<Incomplete
Message "Finish the curve."

}

prl

Quote from: ablincoe on March 28, 2014, 02:03:00 PM
P.S.  Thanks to the forum, I think I have some much better ideas on how to "divide" my lines now.

I posted some code called Segit.d3m and Segitv3.d3m that may serve as a starting point for what you want to do.

ablincoe

Thanks, I'll definitely give the  Segitv3  a look at.