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.

Line distance command error

Started by Rob S, May 25, 2020, 08:24:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rob S

Can anyone confirm, for me the "new/improved" line distance command gives incorrect information.

It is supposed to provided the shortest distance between two lines, but in my tests it gives an incorrect distance.
User since forever

Adrian 2.0

Well, I'm not sure if I'm doing it right because I can't find any instruction on how to use the command - the help files have not been updated.
However, if simply clicking on 2 lines is correct I can confirm I'm getting incorrect results.
I assume this is intended to be a 3D tool? (it does not give correct results in 2D either as far as I can see)
In my first test I drew random lines which I'd set so somewhere near their midpoints they'd be closest.
At one end they were 19 apart but the command told be the closest point was 24.7 apart - something not right there.
Second attempt I drew 2 parallel lines - it got the answer correct.
Then I selected one of the lines about it's midpoint and rotated it 90deg perpendicular to the other line so that the centre of each line stayed at a constant distance, but the command calculated an increase in distance of around 10%.
Even if it works correctly I can't for the life of me work out why that info is any use unless the command also tells where the two closest points are.
I assume it's meant to check for interference, but there is already a tool for that. So, maybe to check for near misses? If so wouldn't you need to know where the near miss occurs?
To find those closest points I draw a line from any point on the first line perpendicular to the second one, then from the end of that I draw another perpendicular line back. If I keep going like that long enough they converge eventually to give me the location of the shortest line possible.
I imagine a macro to do that wouldn't be impossible?
The other command I can't get to work is 'Best Fit Line' but again' without instruction on how it works I'm probably placing the points wrongly. I rather assumed it did what I just described above, but I get lines that don't touch either of the lines I select.

Rob S

In mine I do have updated help files, manual, and release notes all of which contain topics covering the new commands, as cryptically as usual.  On their website under new features, you can even find videos of how they work!!! 

DesignCAD 3D Max 2020 Release Notes.pdf

Manual - Dcad2020.pdf

Help files - Dcad29x64.chm

I notice a lot of the recently added commands and functions from past versions have been added and updated as well.

My reults with line distance are much like yours - which I wanted somebody else to find without clues from me as to how to reproduce.   In any case, I would consider such a mathematical error in a CAD program to be a fairly MAJOR bug.

As to the best fit line or circle, I can see where this would be useful when setting points over a background image, or some other imported source, where it will draw you a line or circle "best-fitted" to a series of points you have set.   These commands seem to work as advertised with an interesting side effect.

When you draw a best fit circle - you cannot select it by left-clicking on its circumference.  You CAN gravity snap to the points used to create it, and select that way.  These points remain snappable, but do not appear in point select mode.   It might be handy if they did so adjustments could be made.
User since forever

Rob S

QuoteEven if it works correctly I can't for the life of me work out why that info is any use unless the command also tells where the two closest points are./quote]


Agreed, exactly!!!
User since forever

Adrian 2.0

OK Rob,
I did find the release notes and manual - to be honest, burying them in the installation folder with all the 900-odd application extension & system files in not an intuitive place to go looking for them (I just noticed a 'readme' word document there too) - but when the folder settings open with the files in alphabetical order, that & the pdf files are buried 50-odd files down in among a bunch od DLL & SYS files.
Maybe at least putting them all in  folder at the top called readme would have been better?

The in-program 'Help/DesignCAD Help'  tool doesn't work at all for me - I get a 'No topic found' result. That may be my fault as I selected a 'minimal' install option when I loaded the program.
(I don't have a Dcad29x64.chm file - I do have a chw file, but have no way to open it anyway.)
Having read the release notes I was attempting to use the line-distance tool correctly, except I thought it would've been a 3D tool & their example shows it used in 2d. I can't see the point in that TBH, how is it a problem to simply measure the distance between the two lines at their closest end? In 2D it's always going to be one end or the other. (measured perpendicular to the other line  if one end is much longer)

I also don't see much use for the 'best fit' line tool. When I'm tracing something there is always so many external factors to take into consideration (usually scan or original paper distortions) that I like to decide where the compensations need to be made.
For circles, we already have a 3-point circle command which does pretty much the same job. Your idea that the points you set remain editable could be useful though...

Rob S

If the PDF help files are located in your installation folder,  the designcad menu commands under help should bring them up.

In the help file I also could not search, but the topics index seemed to work.

I wonder if they are using an outdated help file format?
User since forever

bdeck

#6
Quote from: Rob S on May 25, 2020, 08:24:57 AM
Can anyone confirm, for me the "new/improved" line distance command gives incorrect information.

Rob, I can confirm that it gives wrong answers to a question that nobody asked.

Quote from: adriank on May 25, 2020, 09:36:16 AMI assume it's meant to check for interference, but there is already a tool for that. So, maybe to check for near misses? If so wouldn't you need to know where the near miss occurs?

Adrian,
If used as a nesting tool, the command wouldn't necessarily need to provide the location of the near miss or interference. But it might be helpful to provide the angle of the vector between those points so that one could move the entities apart or closer in that approximate direction. (Nesting is actually much more complex than that.)

But, the function is worthless for that purpose, because one must set a point on each segment of each (poly) line just to initiate a function that could be done better in a macro. 

At least a macro would yield a result that is correct and meaningful to its author.

As you point out, the distance between two nodes closest to the set points is not useful to anyone.

What nobody knows is:
1) What is the purpose of the command?
2) Who has a use for it?
3) Why is Imsi spending time "improving" a command that no one has ever used?

Regards,
bd




Adrian 2.0

OK Rob,
You are correct - in the help menu the 'Contents' tab works, but 'Index' and 'Search' tabs do not.
( I had just used the 'Search' option, saved me having to try to guess what category the command is filed under)

Thanks BD for your input - you managed to confirm that it's not me going mad, it's them.
I used to do mountains of nesting (for laser-cut parts on components I was designing) but my production engineers tell me I'm wasting my time these days as the CNC programs do their own nesting automatically.
I still do it mind - mainly to see how efficiently I'm using the material getting cut - but I can't see this tool being a help even if it worked.

It won't be the only tool in DCad that I never use mind & if they don't fix it it won't bother me. I rather hope they fix the layers bug and installation issues though.