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.

Intersect unreliable?

Started by Frederick, February 09, 2007, 07:23:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Frederick

About the macros...

Upperspace Search couldn't find any hits for 'flatten.d3m'.

zzero.d3m sets all the Z values in a drawing to 0. As far as I can tell, it's not designed to work with a 3D drawing. The entities in the sample drawing I sent were copied from 1 layer of a complex 3D drawing, so I don't think I want to run it and have the entire drawing end up as a funny-looking pancake.

What would be good would be a macro that sets all the points on a specified layer to a specified X, Y or Z value with enough precision for DC to recognize all the entities as coplanar. Or better yet, maybe someone could tell me what I'm doing wrong.

Good night! My eyeballs hurt (;-O)

Rick


Frederick

And on a final note, check out this pic.

I used , to set the cursor on the handle. PrtScn doesn't capture the 4-arrow cursor so it doesn't show in the jpg but it's there in the drawing. Precision is set to 4 places. The drawing is in 3D mode.

Coordinate bar says the Y position of the selection handle on the line is -35.2717.

Info box says the Y position of the line is -35.27.

The Intersect-1 command between two lines showing a Y position of -35.27 with 4 point precision doesn't locate the intersection point. The command has no effect; clicking a point just places the selection handle at the click point, gravity snap sets the handle at the line end. Intersect-2 doesn't register the first point at all, the second point just sets the selection handle.

And lastly, Intersect doesn't appear to work at all with construction lines. Maybe since the vertical line was based on the position of a construction line that's making everything wonky.


Does this make sense to anyone?

Thanks, Rick

prl

#17
Rick,  the zzero and flatten code was created by me and others for different reasons.  In my case, I pop back and forth between 2d and 3d drafting modes and one can be accidentally logged onto the wrong z coordinate when in 2d drafting mode.  This causes your flat drawing not to be flat.

Basically what happens is when you are working in 2d mode on a 3d model, you are snapping to the 2d projection of points in 3d space.  Does any of this make sense?  It's not a flaw in DesignCAD but a rather powerful feature. It can confuse users. The key is to know where your 3d origin (0,0,0) is in both 2d and 3d modes.  If you keep them in the same place and coordinated between 2d and 3d modes, things will be okay.  I say this because you can create your own user coordinate system origins using the work plane command and they will track separate origins between 2d and 3d drafting modes.  I personally try to keep my working planes coordinated between both drafting modes.  The bottom right hand corner indicator should say the same thing.

As for limitations on the point xyz command, there are no known accuracy issues with it. I'm sure it is an unintentional drafting technique you are using that is causing the problem.  Keep an eye on how and what you do and I'm sure we'll get to the bottom of this.

Now should DesignCAD pop up a dialog that says "Intersection not found", I guess this could be okay but you are essentially getting this now when it doesn't place/find the point. It's implicit.  As soon as IMSI adds this dialog, I'm sure some will cry "get rid of that annoying message". 

prl

Quote from: Frederick on February 09, 2007, 06:30:49 PM
Precision is set to 4 places. The drawing is in 3D mode.

Coordinate bar says the Y position of the selection handle on the line is -35.2717.

Info box says the Y position of the line is -35.27.

You are misapplying the terms of precision and accuracy.

In your file, the z coordinates for one of the "c" lines is:

6.987216210900115

6.990089060303852

DesignCAD is correctly using the data for these points. For them to be in the same z location, they need to say the same thing regardless of your display setting.  The precision setting is for data display only. Obviously if your display setting is at 2, the display will say 6.99 for both but that doesn't mean the data is 6.990000000000000 for both.

Frederick

OK prl, thanks. I do understand the difference between accuracy and precision. What I don't understand yet is how I can avoid accuracy discrepancies from building up over time.

Last night I made the mistake of setting the precision display to 4 digits just to see what I had. I discovered that my values are all over the place. None of the values that displayed round numbers with display precision at 2 digits were round and most were off to a degree that would preclude any point command to set a point where I actually wanted it to go.

I need to finish up this job regardless of how off the actual values are. Next time I will be more diligent and observant.

As to the Intersect commands, I think you are seeing this from the perspective of a power user, which is a very small section of the user population. Intersect is the only command I'm aware of that requires a specific condition to be met before executing but does not notify the user if that condition is not met. Combine Lines, Make Plane, etc all display a warning dialog if the required condition is not met and I'd say the majority of users, I among them, are thankful for these dialogs. I disagree that doing nothing is an acceptable way to deal with required conditions not being met. To make my point, try this experiment. Jerry, maybe you should try it out as well.

1 Open the attached file.
2 Look at the clock.
3 Try to execute the Intersect1 command.
4 If it doesn't work, try Intersect2.
5 Zoom to arrange the lines on the screen so you can identify where the two lines are closest to each other.
6 Snap a line between the two lines at the place where they are closest.
7 Look at the clock.

All of this time is wasted because DC already knows that the two lines don't intersect and could easily tell you exactly where they are closest. It's the same thing as all of the Trim commands, where DC helps the user by providing means to fix inaccuracies regardless of how they were generated.

Thanks,
Rick

Frederick

I hope you'll find this amusing...

DC displayed this dialog in 3D after I made absolutely sure all lines are on the same plane, then tried to trim the vertical line against the C line using 'E' at the intersection point using F4. In 2D, the Trim command failed but did not display an error dialog. In 3D the Trim command failed and displayed this error dialog.

BUT the Line Cut command did work to trim this line at the intersection point using F4.   If that is the case, why didn't the Trim command do the same thing? Why does DC see an intersection for one command but not for another?

Please someone either explain this behavior or confirm that there's something here that needs to be fixed. The test file is in an attachment to the following post.

Thanks,
Rick


Frederick


dcadRob

Frederick,

Search for "flatten" on the Upperspace forum and you will get more hits.

Frederick

Thanks Rob. I think the pertinent thread is here:

http://forums.upperspace.com/topic.asp?TOPIC_ID=3764&SearchTerms=MoveZToZero

This topic and the associated macros have really useful info and it would be great if it were on the new forum somewhere.

Thanks,
Rick

prl

#24
Quote from: Frederick on February 10, 2007, 06:46:50 AM
Test file for the last post.

Not sure what you are doing but your backwards "c" is not in one plane.  Select it and go to the infobox and examine the z coordinates for the five points defining it.

-21.806833533502825
20.901725976864633
-0.000004428960174

-4.223417226656011
17.101524894211526
-0.000004428960174

-0.928729154564365
7.100779449253412
0.000021297664624

-4.223417226656324
-2.898465474003668
-0.000021297664625

-21.806833533502825
-6.698274023135369
-0.000004428960175

Edit: Rick, I hope you are reading my responses in an informative useful back and forth way. These technical questions are enjoyable to me but I don't want my responses to be preceived as trying to prove you wrong or implying I know everything.  I'm wrong more often than not on many things including DesignCAD. Only when others bring things to the forefront do some topics get a decent looking at.

Frederick

Hi prl,

I appreciate your taking the time and you've always been respectful. I hope you don't perceive me as being just argumentative or confrontational. I'm pursuing this because it has caused me real discomfort and inconvenience and I want to be able to use DC without dinking with this kind of thing. If it works as designed I need to understand the  design and if it doesn't then I need to show that it doesn't in a logical, communicable manner. FYI one of my many tasks at MS was to test translation software technology and provide useful feedback to engineers. That was one of the only tasks there that I actually enjoyed.

Anyway, 3 questions:

1) if they are not on the same plane, how can I make them coplanar using direct value input? Or any method at all, for that matter.

2) If they are not on the same plane, then why does Line Cut see an intersection there while Trim does not? Does Line Cut evaluate at a different accuracy than Trim?

3) Where did you get the 'actual' values you provided in the last post?

Thanks,
Rick






prl

#26
Quote from: Frederick on February 10, 2007, 03:19:32 PM
I appreciate your taking the time.

Anyway, 3 questions:

1) if they are not on the same plane, how can I make them coplanar using direct value input? Or any method at all, for that matter.

2) If they are not on the same plane, then why does Line Cut see an intersection there while Trim does not? Does Line Cut evaluate at a different accuracy than Trim?

3) Where did you get the 'actual' values you provided in the last post?

Glad to hear we are on the same page as far as being able to just chat back and forth about this or any other issue.

For your questions 1 and 3, select the line and open the infobox (Ctrl I).  The values I posted are shown there for each of the coordinate points.  You should see a drop down which selects which point to show 1 of 5, 2 of 5, 3 of 5 etc.

If you want to zero out the z coordinate, enter 0 in each of the z coordinate fields. Do this for all five points.

I'll have to look at the line cut question.  I'm not on top of that one at the moment.

Edit: Oh yes, if you want to see the complete data value DesignCAD has stored for the value of that coordinate, you will need to adjust your display precision to 15 otherwise you'll only see a portion of the complete coordinate entry.

DrollTroll

Rick, you do bring up a valid point --- the commands should be consistent in their approach. I notice that DesignCAD 15 trims the lines without complaint, so the Trim behavior has changed between Version 15 and 17, but the Cut Line behavior has not. I don't know if an internal tolerance changed, or if some other aspect of the logic changed. This needs investigating.

How did the lines get out of kilter in the first place? I can't say. Possibly you accidentally did a Ctrl+Shift at some point in the Front view, thus changing your z-component slightly. Unlike most 3D applications, DesignCAD doesn't tie you to a particular base plane in 3D mode. Often it's a true convenience. Sometimes it can surprise you....

If you intend to draw things at fixed-Z (or X or Y for that matter), remember that you can set and lock any of the coordinate axes using the coordinate bar. And if you've locked a coordinate (Z for example) you can easily change that elevation by simply typing a new value into the locked coordinate. So you could easily draw two or three profiles at Z = 0, then a few more at Z = 10, and so forth.

25 years with DesignCAD

Frederick

OK, thanks DT and prl. It's going to take a while for me to process all this. Somehow I'm going to have to finish this complex patent app with all these values out of whack. Next time I will make sure to pay close attention to point placement from the start.

Quote from: DrollTroll on February 10, 2007, 04:14:43 PM

How did the lines get out of kilter in the first place? I can't say. Possibly you accidentally did a Ctrl+Shift at some point in the Front view, thus changing your z-component slightly.


What would that do? I don't see Ctrl+Shift in the Indexed Shortcut list, and I Ctrl+Shift all the time when I use Ctrl+Shift+Letter shortcuts. It's not possible to hit all three keys simultaneously.

Quote from: DrollTroll on February 10, 2007, 04:14:43 PM
Rick, you do bring up a valid point --- the commands should be consistent in their approach. I notice that DesignCAD 15 trims the lines without complaint, so the Trim behavior has changed between Version 15 and 17, but the Cut Line behavior has not. I don't know if an internal tolerance changed, or if some other aspect of the logic changed. This needs investigating.

I'm glad to hear you say that. As an ex-software tester it's very hard for me to see inconsistent behaviour and just sidestep it. I've spent a lot of time trying to understand why and under what conditions Trim and Line Cut behave differently, a task that is definitely over the head of a novice like me. As long as I know that someone qualified will pick up the ball I can let it go.

Thanks again, I hope this discussion will help produce a better V18 product.

Rick


DrollTroll

When you are in 3D mode (and this includes Top, Front, and Side views), Pressing Ctrl+Shift and moving the mouse forward or backward moves the cursor in or out along the "depth" axis in whatever view you are in. This is most easily observed in the Perspective view -- in the Front, Top, or Side views, the "depth" axis for that view simply changes with no visible indication in the view itself. Locking the corresponding axis in the coordinate bar will prevent this from happening.

If you are in 3D Selection Mode, this in/out behavior will occur whether or not you are in the middle of a drawing command. In 2D Selection Mode, it only occurs during a drawing command.
25 years with DesignCAD