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.

Trim and break line options

Started by muddy, March 14, 2014, 10:09:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prl

Quote from: Dr PR on March 16, 2014, 10:34:01 PM
. . .  what does "parallel" mean in 3D relative to a line that curves in all three dimensions

Good point, technically a hollow 3d cylinder following the 3d curve would satisfy the definition of parallel to a curved line in 3d. Any line extracted out of the cylinder would fit this definition.  As Phil notes, an infinite number.

samdavo

#16
Back to topic ...
Quote from: ct on March 16, 2014, 03:23:44 PM
Quote from: Pearco on March 14, 2014, 04:03:08 PM
muddy:
When the wrong end of a trim line gets shortened, look at the dialog box and be sure the trim short end is selected. This will trim the shortest end of any line.
Thank you for this 'short' and uncomplicated answer, unlike many other answers on this forum. Its perfect, it has helped me also.
ct,
Keep an open mind mate.

Let me put it this way - as a quick err test/problem/whatever.
You have to trim the red lines AB and CD, as necessary, and end up with the parallelogram AGFE.  (talking 2D obviously).

And you have to do it as efficiently as possible, - with three applications of "trim one line" (only).
i.e. you need a reliable trim method.

Second part of the exercise - try it twice, first time trimming C to F first, and second time trimming D to G first.  :)


(PS I used to use Trim Short End TSE on, as Pearco offered as an option - I now leave it off.  - 2 cents).
So - do you use "Trim Short End" on or off?

(I enclose the dcd should you or anyone else wish to try it out - cheers)

prl

Sam makes a valid argument about having to visually analyze something before trimming in DC.

Revit and many other CAD programs simply use a convention of click on the portions of lines that you want to keep. Personally I always felt this was backwards (I like clicking on the get-rid-of this side) but the "keep this" convention is easy to understand.

samdavo

#18
I'm with you prl - just that I wish you could get rid of (and click on) the end not wanted, irrespective of whether it was shorter.  (which is not currently available ASAIK).  This would make it more like extend ( _ ).

Until then I have to accept click the end wanted - at least it is reliable, and not based on the visual guess of which end is shorter

prl

#19
Quote from: samdavo on March 17, 2014, 03:28:57 AM
I'm with you prl - just that I wish you could get rid of (and click on) the end not wanted, irrespective of whether it was shorter.  (which is not currently

Yes, DesignCAD with its flexibility can confuse people.  By unchecking the "Trim shorter End",  one gets the "keep this side" convention.  Which isn't obvious and as you point out inconsistent with the extend command.  First they say drive on the right side of the road, then on the left side of the road . . . . .

Edit: Sam it shouldn't surprise you I've reassigned the trim commands to my own basiccad versions which enforce my rules (get rid of the side I click).

samdavo

Quote from: prl on March 17, 2014, 04:08:39 AM
Edit: Sam it shouldn't surprise you I've reassigned the trim commands to my own basiccad versions which enforce my rules (get rid of the side I click).
Ahh - nice one.
Trouble is lol, in the time it would take for me to write such a macro, I could have trimmed an awful lot of lines. :)  Cost, benefit, etc.

prl

#21
Quote from: samdavo on March 17, 2014, 04:39:54 AM
Trouble is lol, in the time it would take for me to write such a macro, I could have trimmed an awful lot of lines. :)  Cost, benefit, etc.

Sure I understand.  I also wanted a general different DesignCAD behavior, hence I took the time.

Consider the graphics below.  The series of hockey sticks on the left portion of the screen are a single line each.  Where I have the arrow pointing is where I will be clicking to select the hockey sticks.  The line on the right is the trim line.  To make it interesting, the second hockey stick from the left is not in the same plane as the trim line.

DesignCAD behavior.

1.  It explodes the hockey stick and extends the line segment where I clicked.
2.  It ignores the out of plane hockey stick, which is correct but it doesn't tell me why.


My desired behavior.

1.  Keep the hockey stick as one entity.  Since I am clicking at this end of the stick, I want that true end extended.
2.  If a line doesn't trim, tell me something.

This wouldn't be everyone's cup of coffee but with BasicCAD you can brew your own.  ;)

prl

The file for the above discussion.

samdavo

#23
prl,
Small correction...
I note (V22 anyways) that your second jpeg is what you would get with "Trim Selected Segment Only" on.
And your last one is what you would get with "Trim Selected Segment Only" off  (i.e. Standard DCAD trim command).

So that particular feature at least can be replicated in DCAD. 
But you're right, it doesn't warn of the "out of plane" problem. (which is strange/unusual because it does with other commands that need same plane).  2 cents



prl

#24
Thanks Sam, I hadn't noticed the added feature. That's my problem, sometimes I don't notice when something good gets slipped in.  Also much of my math code was written back in my DesignCAD 13 days (when I finally made the switch from DOS to Windows).

samdavo

Update on this latter "trimming to an out-of-plane line" effect - where the plane is defined by the hockey stick.

I enclose a dcd which has hockey sticks on the left, and a trim line out-of-plane compared to the hockey stick in each case.

It is a 3D drawing.
With TPSO off,  it ignores the command, (all good so far - except no warning) ...
(and that applies whether in 2D mode or 3D)

But with TPSO on, (in 2D only), it trims to the projection of the line (as seen in 2D).
(question of DCAD - but what has this to do with Trim Picked Segment Only, lol?)

Actually, I can't replicate it for some reason,  but "earlier" I was able to trim the line with TPSO on, (in 2D), and it trimmed the line as above, but also twisted the end of the hockey stick out of its original plane, so that the new end of the line was on the trimming line (!?)  I would call this a BUG,  because trimming should not change the alignment/direction of a line (imo).   Trouble is I can't replicate it, lol.


prl

#26
Quote from: samdavo on March 17, 2014, 01:52:01 PM
but "earlier" I was able to trim the line with TPSO on, (in 2D),

You're right, try the attached and trim the left hand hockey stick while in 2d mode.  I get the twisted stick on the right.  Obviously you need to switch to 3d mode.


This reminds me of why the zzero macro was created.  I once so hosed up my 2d drawings that when I accidently switched to 3d mode, I realized everything was all over the place in terms of z coordinates.  Another reason I built-in those warning messages.

samdavo

#27
prl - in summary for your example:-
when trimming to a line out of plane,
with TPSO on, (in 2D), a line appears to trim correctly.
But in fact the z value of the new point is changed to zero, even if this means bending the hockey stick.

I would say the morals of the story are :-
a) don't use "TPSO on" without great care (180 degrees from my early posts here, sorry - what I should have said there was use "TSE off" for reliable trims :) )
b) in 3D use trim (any settings) with extreme care

samdavo

#28
Quotein 3D use trim (any settings) with extreme care -
Herewith an example of trimming in 3D - trimming the line AB to line C -
after checking that they intersect (at the blue circled point);

which works fine in 3D,
and also in 2D - EXCEPT if TPSO is turned on, in which case
a) the wrong end can be trimmed (i.e. A to C can be the same as B to C), and
b) z is set to zero.

prl

#29
Sam, did your request to be a beta tester get approved?  It should, nice job.  The trim command still has issues.  My take of it is that in 2d mode, only projection trimming should occur, meaning the 3rd 3d coordinate (usually z but can be anything really depending on which 2d mode one is using) should never changed.