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.

zero length lines - old topic revisted

Started by virgal, June 21, 2011, 09:17:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

If you actually have point entities in your drawing you can select them by dragging a selection box around them. Then you can move them or delete them.

To see these things switch to Point Select mode (CTRL 1). They will appear as a single point box when they are selected. I recently posted an example of these.

Phil
DesignCAD user since 1987

DrollTroll

#16
virgal, this has kept bothering me, so I exploded all the lines into segments, then changed the threshold for the DeleteMicroLines macro from 0.000001 to 0.1. It then picked up six line segments, all of length 0.0657. Are these small enough to be considered "zero-length" by the review program?

See image below, and attached drawing:
25 years with DesignCAD

Dr PR

Alan,

Nasty problem!

You can look for these tiny end segments by selecting the line in Point Select mode and zooming in on the line ends - you may have to zoom several times, but if the tiny segments, or overlapping segments, are there you will see multiple point boxes.

If you suspect this problem again, select a line and use "Edit/Selection Edit/Convert/Explode" to break up the multi-segment polyline into individual segments. Then use the drag selection box to "sniff around" the line ends to see if it finds any little bits and pieces. If so, delete them. Note: this could leave the remaining line short with a gap between it and the next line.

Of course this will explode any desirable polylines, so it is a good idea first to move the suspect line to an empty layer. After cleaning up fragments you can select all remaining line segments and turn them back into a polyline with the "Edit/Selection Edit/Combine Lines" (B) function, then move it back to the original layer.

Phil
DesignCAD user since 1987

DrollTroll

#18
While investigating this issue, some other interesting details in Alan's drawing made me go "hmmm...". The attached macro "switchback.d3m" looks for vectors that double back on themselves, which it calls "switchbacks", and selects them. A so-called "switchback" occurs when any two line segments are 180 degrees apart in their direction.

I am tempted to create a "Troll's Tools" thread, where I can post such utilities for easier access...

*Update* Added a new macro "FindTinySegments.d3m", which improves over DeleteMicroLines in that it finds polylines, arrows, planes, or curves that CONTAIN small segments, and the user can specify the minimum length allowed.
25 years with DesignCAD

Rob S


Simple, yet ingenious test for double-back! I have had need for that in the past.

If any part of a drawing has been imported from autocad, and particularly from inexperienced users, it seems to always contain no end of short bits and duplicate lines.

I do find when drawing and using temporary lines for alignment, or trim, or parallels, I sometimes accidentally create duplicate segments, and these can sometimes get combined into double-back polylines so they become hard to find.

To avoid dimensioning errors, I make a practice of checking as I go along to avoid ANY extra short lines or extra points in my drawings, so indeed yes, those kind of tools as included "sample macros" and here in the forum would be most helpful.

User since forever

magic

Hi Rob,

Quoteit seems to always contain no end of short bits and duplicate lines

which is why the CAM people is grateful for the "2D Lines Cleanup", and thank Troll for that!
It's a kind of magic!




DrollTroll

In this particular case, exploding the lines into individual segments seems to have eliminated the problem. I am leaning toward assuming it is a problem in the conversion software, but can't be certain.
25 years with DesignCAD