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.

Trimming circles changes the radius of the resulting arcs

Started by magic, May 18, 2014, 03:52:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

magic

Hi all,

I have a customer, who has a weird problem that I can't figure out. Even if it's sort of a ContourCAM problem, I believe that it's a problem with some DesignCAD 3D MAX parameters, but I just don't know which.

The customer uses ContourCAM and with this program you get an Add In program called MagicTrim. Here is, how it works: http://www.magicsystems.com/Magic%20Trim%20KW.htm

However, here is, what his result looks like: http://www.magicsystems.com/Drawing%20after%20MagicTrim%20KW.jpg

All the Arcs now have the same radius of 35.625", but the trimming is correct, which you can see by restoring the Arcs to their original radius.

I can't reproduce this, even though I have used his original file (the one in the above video), which were saved with the Save parameters with drawing checked.

If anyone has an idea, as to what causes this, I should be most grateful.

Below are the drawing that the customer has sent me, and you can download the 15 day trial version of ContourCAM from here: http://www.magiccadcam.com/usa/Demos.php

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




prl

Quote from: magic on May 18, 2014, 03:52:27 AM
I can't reproduce this, even though I have used his original file (the one in the above video), which were saved with the Save parameters with drawing checked.

So you're saying when you use Magic Trim on the "before", it works, yes?  But when the customer uses it, he gets the "after".

magic

It's a kind of magic!




prl

Quote from: magic on May 18, 2014, 04:35:08 AM
Yes, prl, that's right.

Since the desired end result is a series of properly trimmed circular arcs and since DesignCAD can't trim closed circles (arcs with span = 360 degrees), leads me to believe it is in your MagicTrim OLE routine.  Somewhere you are opening the circles to create arcs and then trimming them.  Or are you using your own math to find the intersections and then adjusting the starting and stopping points of the circular arcs?

Also does the user always need to select the entities clockwise in an adjacent next order?  What if the picking order is haphazard?


magic

Hi prl,

Quote from: prl on May 18, 2014, 05:13:07 AMSince the desired end result is a series of properly trimmed circular arcs and since DesignCAD can't trim closed circles (arcs with span = 360 degrees), leads me to believe it is in your MagicTrim OLE routine.  Somewhere you are opening the circles to create arcs and then trimming them.  Or are you using your own math to find the intersections and then adjusting the starting and stopping points of the circular arcs?

Also does the user always need to select the entities clockwise in an adjacent next order?  What if the picking order is haphazard?

You can trim circles using Trim between two lines, but I don't know, how the MagicTrim routine is actually done. It was written long before we took over the program, and it has never performed this way before.

The user has to do it in an adjecent order either clockwise or anticlockwise, and the customer assures me that he has done it exactly as I in the little film, only his result is different.

If the picking order is haphazard, nothing happens, when you hit enter to activate the trimming in the end.
It's a kind of magic!




prl

Quote from: magic on May 18, 2014, 06:28:37 AM
You can trim circles using Trim between two lines

Regarding your quote above, is there some special way to do this?  It doesn't work for me, no error messages, just ignores the Trim between two lines command.

Regarding MagicTrim, certainly possible something new was introduced that is causing trouble for an older routine.  Recall http://forum.designcad.com/index.php?topic=5468.  We never did learn how DesignCAD created those corrupted circles.


magic

Hi prl,
Quote from: prl on May 18, 2014, 06:49:24 AM
Quote from: magic on May 18, 2014, 06:28:37 AM
You can trim circles using Trim between two lines

Regarding your quote above, is there some special way to do this?  It doesn't work for me, no error messages, just ignores the Trim between two lines command.

Trim between lines works fine on circles. Watch this: http://www.magicsystems.com/Circle%20trim%20between%20two%20lines.htm

Quote from: prl on May 18, 2014, 06:49:24 AM
Regarding MagicTrim, certainly possible something new was introduced that is causing trouble for an older routine.  Recall http://forum.designcad.com/index.php?topic=5468.  We never did learn how DesignCAD created those corrupted circles.

As to this comment, then why does it work with me and not with the customer?
It's a kind of magic!




prl

Quote from: magic on May 18, 2014, 07:40:43 AM
Trim between lines works fine on circles. Watch this:

Thanks.  I was using the wrong point order.

Quote from: magic on May 18, 2014, 07:40:43 AM
As to this comment, then why does it work with me and not with the customer?

The difficult process of elimination until the difference is revealed.

Edit: So using MagicTrim, you've started at different circles and tested each flow direction? 

prl

Magic, since you mentioned the incorrect radius (35.625") is repeatedly used, maybe MagicTrim is based on a version of Arc4.  Note the warning about the user residual dialog input.  Ask the customer to enter arc4 on the command line and uncheck the "specify radius" option.


QuoteArc4
{
<Type t
[0 = arc, 1 = line]

<Radius r [-1 (and any value <= 0) = off, any positive value used as fixed radius for the arc] (The Radius parameter is new to Version 15. Newer macros should make it a point to explicitly specify this value – otherwise the macro's behavior may be altered depending on what the user last specified manually in the dialog box when using this command)
<Points: 1 = center, 2 = start, 3 = end  'The arc is drawn counterclockwise from point 2 to point 3.

}


prl

Your MagicTrim has me off trying to figure out how they did that.  Straight forward to create a vector version using polygon add, but MagicTrim retains the arcs which is an interesting diversion for me. Will MagicTrim do the attached advanced test and if yes, what type of entities does it create?

magic

Hi prl,

Thank you for your suggested solution, I tried it out and that was probably it. I have forwarded it to the customer, but so far I've heard nowt.

As to your intricate drawing, so: "No".

MagicTrim doesn't do polylines nor elipses.
It's a kind of magic!




magic

Hi prl,

Here is also a thank you very much from the customer, he is happy as a lark (not to be confused with No. 1: The Larch).
It's a kind of magic!




prl

Quote from: magic on May 19, 2014, 08:26:18 AM
he is happy as a lark (not to be confused with No. 1: The Larch).

Was that it? If it was, we got lucky. :)

Anyway, Larch is probably happy too.  Sunshine, blue water, out wining and dining other sexy CAD programs (the 3D siren song).


Edit:

For the vector method, see this excellent video by Magic.

https://www.facebook.com/photo.php?v=276697809175674

magic

It's a kind of magic!




magic

Hi prl,

I've taken the liberty of publishing your outline method on the DesignCAD Facebook page: http://www.facebook.com/Designcaduk and the DesignCAD 3D MAX Facebook page: http://www.facebook.com/pages/Designcad-3D-MAX/122126544632802

Hi all,

Take a look and Like it, if you like it.
It's a kind of magic!