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.

left over dots

Started by bobarthur, November 29, 2007, 01:04:19 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

bobarthur

If I modify a drawing a number of times, little dots sometimes are left.  Is there a macro that will clear these distractions?

Rob S


If they are just display garbage and not actual dots. "Ctrl+ R" (regen) will get rid of them.

I don't believe designcad can draw actual single point dots, so the other possibility is that they are short lines. 

For this you would have to determine how short (depending on the size of your drawing) qualifies for deletion.

Someone else may be able to help with a macro for that.
User since forever

robhosailor

Quote from: bobarthur on November 29, 2007, 01:04:19 PM
If I modify a drawing a number of times, little dots sometimes are left.  Is there a macro that will clear these distractions?

Are they permanent after REGEN? If yes - they are probably vectors (lines) or curves drawn by 1 point inserted... or more points inserted in the same place.

You can clean it by ERASE command. :)
:-) Robert

bobarthur

These dots do not cleanup with regen.  They are left after I draw a line and then trim or erase it.  Not all the time. I usually find them when I zoom out.  This happens in 2000LT.  I don't use the newer versions enough to Know if it occurs there.

robhosailor

Hello bobarthur,

Few days ago prl posted simple BasicCAD routine for clean up your problem but today I can't see it here (probably he did remove it ??? ).

I don't know from what "your dots" are. I have only "1 point lines" (and curves) and lines (and curves) drawn by few points inserted in the same place. I can use ERASE command for clean up them. BasicCAD routine is usable for "similar garbage" which were drawn on other entities.
:-) Robert

Bob P

Can you select one of the "dots"?  What does the info box say about it?

robhosailor

Quote from: Bob P on December 03, 2007, 11:32:21 AM
Can you select one of the "dots"?  What does the info box say about it?

I use old DOS version of DesignCAD which is probably absolutely different than yours...

Yes! I can select "dots" (by GRAVITY command f.e.) and info box says: (for example) "Vector, Layer no:, ...and other features..., Points: 2 (when curve: Points 3)" ....There are "dots" - lines and curves drawn by 1 point  :)

I can select "dots" by SELECT command too but only if they are on current layer or when Options are set: "Manipulate current layer only: NO".
:-) Robert

prl

Quote from: robhosailor on December 03, 2007, 11:16:30 AM
Few days ago prl posted simple BasicCAD routine for clean up your problem but today I can't see it here (probably he did remove it ??? ).

What I had posted only worked for line entities. I wasn't sure if it helped or confused matters.  As Bob P suggested, you need to find out what type of entity the "dot" is.

robhosailor

Quote from: prl on December 03, 2007, 01:48:48 PM
As Bob P suggested, you need to find out what type of entity the "dot" is.

Yes, of course! It's first.

(If DesignCAD work properly, like mine, "dots" are short lines or curves, but if they are not....? ???)

Anybody have similar problem than bobarthur?
:-) Robert

Rob S


I do not believe newer versions will draw "0" length lines, so they must be "short" lines.

If we open info box on a short line, which may look like a dot on screen until you zoom way in, we should be able to see the two sets of co-ordinates for its two points.

Prl's macro as I read it, being configurable to delete all lines shorter than "x" might indeed be useful.

I never used V2000 much, so I don't know if it had a habit of creating stray bits.

In most versions, if you trim a line, any segment beyond the one you trim becomes stranded, so if a line had an extra short segment at its end, that piece would be left loose.

It could be that bobarthur needs to look at his drafting techniques to see what operation causes these stray bits to occur.

Until then, manual deletion is the safest solution.

User since forever

prl

#10
Here is a slightly simpler version, again for line segments only.  You can edit the variable fuzz to change what is and isn't considered too small.

'Program: dsl.d3m (delete short lines)

'remove zero length lines and things so small they shouldn't be a line

fuzz = 0.001

sys(80) = 0

for j = 1 to sys(9)
       getattr j, type, select
       y=length(j)
       if type = 1 and y <= fuzz then putattr j, type, 1
next j

precision 0
message "Purging ", sys(80), " zero length lines"
if sys(80)>0 then
>Erase
{
}
endif
end

Pearco

If memory serves me right, wasn't there a thread similar to this where someone had little dots when editing a drawing and it turned out to be a problem with keyboard use? Such as when the original line was laid, enter or some thing else was entered to much and in fact laid another line, very small and only noticeable when the original line was erased. It may have been on the other forum and a couple versions ago. The whole thing was like double dribbling with the key board. A search of this and the original forum or someone whose memory is not as foggy can shed some light on it. Maybe it was being done in preselect mode.
Jim
User since ProDesign 1.5

bobarthur

Next time I get the dots, I will query them.  prl's macro looks good.  I'll give it a try.

janders1

I had this trouble before and I found it was caused by double clicking to end a line instead of using the enter key. Since I quit doing that I have not seen the problem.

robhosailor

Quote from: janders1 on December 04, 2007, 08:19:00 AM
I had this trouble before and I found it was caused by double clicking to end a line instead of using the enter key. Since I quit doing that I have not seen the problem.

Of course!

double click on the end drawn line produce 'polyline'. If you use 'TRIM' or 'EXTEND' command that 'polyline'  is broken, and longer indicated part of 'polyline' is trimmed, and short 'dot' (garbage = "0 points line") is permanent on your drawing.

I think you are quite right! prl's macro can to be useful for clean up it.... and 'ERASE' command too.
:-) Robert