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.

Hatch fill problems again

Started by paul craig, January 10, 2016, 02:42:41 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

paul craig

OK I am now using WIN 10, DCAD 25 64 bit, HP system with I7 [email protected] Gig with 8 gig, and NVDIA card with 1meg

As some of you will know I have been designing UK steam outline based model etched kits in brass or nickel for almost 15 years, since V14/15, and from the beginning, had problems with Hatch fill.
Some of the early problems were obviously due to my lack of knowledge and understanding, but now I have overcome most of the simple one.
The attached file shows the same item in two different sizes, because I need them to. In Britain, we use 4mm scale, ie 4 mm equals 12inches. I draw in "full size", and only scale on output for the etcher.
Most etching takes place on two layers, front and rear, and in common use, you have red as the top layer, and blue to get the bottom. This means you can get raised and cameo layers on the model.

I am having problem with the lower part of the item which is marked 00. I need it to be hatch filled as the lower one marked P4, and I am finding that often the hatch fill stalls and does not fill. It doesn't always happen, and mainly seems to fail when I am zoomed in. You might think that I should therefore not zoom, but there is a problem in the way that DCAD sets points, so that when you do use largest zoom, DCAD creates a spiders web over the whole, and whilst you cannot see this in DCAD, when you export using convert to DWG, or DXF you can see them. You might like to check this by exporting and then opening with the free DWG reader, v 2016 is now available.

So the question is why does it sometimes work and sometimes not, and does that happen to you.
Just to save my embarrassment, I sent this off line to Dr PR, and he too found a similar problem so.

You might well notice that the lower parts are made of 5 pieces which I have not joined as a block, because mainly, I forgot :-\
however, there is another reason. It is not truly possible, as far as I know to have a white hatch fill, in DCAD, you can use 255+255+255, but that shows as a kind of Gray, but I have not discussed this with the etcher to see whether they could read that properly. It also seems not to be possible to overlay hatch fill, and no I have not tried that by putting different items on different layers.
but even so there does, to me seem to be a problem with hatch fill solid colour, I use Win solid.

When I sent the file to PR, there were items on 2 layers, 1+3, but when I hid items, they were complete, and ends joined, and the B command used, so I was not sure it was that reason, because some of the items were still filling.

So what do you guys think, is there a problem or is it me again?

Happy New Year by the way.

Paul

Rob S

OK, I think I got someplace with this.

First of all by isolating various areas of the drawing I found the bottom centre area to have hatch problems, which I was able to correct by replacing the two T-shaped objects there with copies of the ones above.  If you select one of these original bottom objects, you will see it has extra points, and somehow these are causing an issue with the hatch.  See image 1 below.

Now I was able to hatch the centre area successfully, and also the two ends, by dividing it up with the two temporary vertical lines shown in image 2.   However I was not able to hatch the entire area at once in V25.  In V22 I was able to hatch the whole thing, but it overflowed in some corners, so maybe the area has too many points for a single hatch.

The point total for the three hatches is 303 plus 63 plus 303 = 669  I can't recall right now what the limit is, but I thought it was much higher.
User since forever

Rob S

A bit further testing shows V22 and V25 actually behave the same.

If the object is zoomed to full width of the screen, it will hatch in its entirety in one go, but it overflows a couple of the corners

If you need this hatch to be a single entity, you could probably edit this corners by hand in point select mode, as I did in the attached file, which hatch now has 946 points
User since forever

paul craig

HI Rob, what is interesting to me in your comments  is that ALL the T shaped pieces are copies of one of them, so I have no idea where the extra points came in, very confusing?

I had drawn these things before many years ago, and then just decided to tidy them up, so amongst other things, I made a copy of the t shape, by using one continuous line from the
line command, snapping to the various points at the corners, so I cannot understand why there should be points in the air as it were.

But I still wonder whether we might get something of an error message, or a detail which tells us why hatch fill fails, it would make it really useful, especially now that when you us ctrl alt delete
to get to task manager, you lose so much work, and it is difficult to know where to go back to.

Must confess I had not understood the hatch count, even though many of you have mentioned it before, now I have a better idea :-[

The other strange thing is the same components exist in the item mentioned P4, as a pattern, and the only difference between the two is that the 00 one was drawn by cutting and shutting the P4 one. Of more value to me as an idea is that I resolved the left hand side of the drawing, then copied and pasted to the right, before finally joining end points.

But thanks Rob, it is a good starting point for us all.


Dr PR

Paul,

You mentioned using CTRL-ALT-DEL to bring up Task Manager. I guess you are using this to terminate the program after the "HAtch Fill" command hangs.

When the"Hatch Fill" function hangs, as it seems to do when you try to fill the areas in the lower part of your drawing, you can press the "ESCape" key to terminate the function. Then a box pops up saying "Command Failed." After this you can continue editing the drawing.

I looked at program activity on my machine when the "Hatch Fill" function hanged and DesignCAD is busy doing something - chasing it's tail I guess. This is a BUG. Your drawing should be useful for finding the bug in the "Hatch Fill" routine that causes the program to hang.

I am a bit paranoid about having the program crash and losing recent work, so I frequently use "CTRL S) to force a save of the drawing. I always do this immediately after a particularly complex bit of drawing, and always before starting something that might not turn out as I expect. Well, almost always! Sometimes I am on a roll and do a long sequence of operations without saving. And sometimes the program crashes and I do lose all of that work.

Phil
DesignCAD user since 1987

Rob S

You guys do know about the autosave timer in options, right?

I don't use it myself, but in small to medium drawings with a fast harddrive, it works just fine, almost unobtrusively
User since forever

Dr PR

Rob,

I don't use autosave. I tried it many years ago and found it to be extremely annoying when I was in the middle of drawing something to have the program halt while the drawing was being saved. Over the years disk writes have become faster, so the delay is shorter. But my drawings have become larger, taking longer to save.

On my latest work station it takes about 15-30 seconds to save 100+ mbyte files. That is too much of an interruption while I am in the middle of drawing something. So I use "CTRL S" periodically.

Phil
DesignCAD user since 1987

Adrian 2.0

You have several points offset onto a different plane. (15.4316 units offset to be exact)
If you switch to 3D mode it is clear to see them (low-res image of the 3D view attached) and this is usually the culprit whenever I have problems with functions like hatch or trim.
I'm not sure if this is the cause of your problem but in my experience it is likely to be.

You can 'flatten' the drawing by selecting all the lines and in the info box change the Z Axis Scale to '0'.
Changing the 'Bounding Box' depth t o0 does not work - it requires a number larger than 0.

The problem with this is that it positions all the points on a new plane halfway between the 2 (or in a case of points on multiple different planes, halfway between the 2 extremes). if you try to draw new elements after flipping back to 2D they will be on the origin plane and the same issue will return unless you drag all your drawing back onto the origin plane first.
The other issue with this is that it changes all arcs and circles to ellipses with equal X & Y radii.

Another way to flatten a drawing is to (in 3D mode) goto the front view and 'save as' 2D projection with a new name.
Be careful when saving 2D projections because DCad thinks you've saved the original file and it won't prompt you if you had also made changes to the drawing and you try to close it. You will lose any unsaved work.
The issues you will have with this method is that it changes the text to 3D text, and acs & circles will be changed to curved spline lines. For me this makes the method a real last-ditch option.

A third way (and probably easiest on this drawing because all your offset points are on the same plane) is to goto 3D mode, topview, and select all the elements that are partly in the wrong plane, in point select mode, select all the points in the wrong plane and drag them back to the origin plane. (I'd draw a construction line perpendicular to the XY plane from one of the error points and trim it to finish on the origin plane first so you have a point to snap to.

It'd be nice if we had a dedicated command that moves all selected points on to a specified plane without the side effects of corrupting arcs because this problem bites me more often than I'd like.

Adrian

Rob S

It appears the object in question does not have any non-0 Z values

However - for this issue, we have the flattenz macro posted here

http://forum.designcad.com/index.php?topic=3797.msg30462#msg30462
User since forever

samdavo

PS Not really relevant, and unlikely it would help here -   But on the subject of leaking outlines, you can have a blatantly incomplete line - eg a circle with a quadrant missing - and if you use Draw\Hatch\ Hatch Line, then it completes the hatch with an extra line across the missing bit.   You can only have one missing part of the line however (2 cents). 

paul craig

#10
but how does the being out of plane happen in a drawing which was done COMPLETELY in 2d mode???

At the beginning of the drawing process for etching, I ALWAYS use 2d, so surely if points are in a different plane, this too is  BUG?

Unlike most of you, I only move to 3D after I have completed the etch work, and need to arrange instructions and any extrusions that I might use for 3D printing.
which is why Dr PR has occasionally told me off for trying to do things in 2D and then convert to 3D. It took a long time for the hammer blows to get through to my
thick brain, but I still lack a  lot of practice in purely 3D.

But any help and ideas will at least get us to see whether this is a bug, or just me stuffing up again ::)


Mind you, there is one thought, when I first sent the file to DR PR, he commented on part being on layer 3.
So I modified the file to bring it all to layer 1. But still does working in layers in 2D mean things move in the Z access?
Paul

paul craig

#11
As a result of reviewing the information printed here, I am even more confused.

The major points that are in the Z plane seem to be on the top drawing, with which I had no problem hatching. I have disassembled the whole drawings and found a major problem in terms
of point alignment at the top, but I do not understand why. As said before, I did no drawing for this in 3D mode, so why the wierdness?

Paul

Dr PR

Paul,

I doubt if anyone knows why 2D drawings occasionally go 3D with points outside the Z=0 plane (all points in XY plane by default, although you can change the default 2D working plane). But all drawings are 3D to DesignCAD. If you switch to 3D mode a 2D drawing just has all points with the same Z value.

In 2D mode you aren't supposed to be able to get out of the Z=0 plane, but it does happen. When it does DT's "FlattenZ.d3m" macro will convert all non-zero Z values to zero.

This should work perfectly for 2D drawings, to force all points into the Z=0 plane. But use it with caution in 3D drawings because it can change 3D circles that are at angles to the XY plane into ovals in the XY plane.

Frankly, I didn't think to look at the drawing in 3D. Seeing how many points are out of plane I wonder how any of the hatches worked? I think the fact that it did create hatch fills with non-planar point sets must certainly be a bug!

Phil
DesignCAD user since 1987

Adrian 2.0

I've always thought that importing details from another drawing was the cause of creating additional Z planes - especially if I've downloaded a symbol or or detail off the internet.

The fact that when I set a new origin in a 3D drawing before exporting it to Sketchup & it gets ignored by Sketchup (which always set's it's origin at DCad's original origin) may give some clues to any trolls trying to track down the cause of the problem. Some drawings will have ghost origins that might lead to placing points in the wrong Z plane?

paul craig

Checking my other drawings ie those I made some time ago, I came across this one, and to my surprise when I checked it in 3d it is all in one line.
the original was drawn in 2008, so 7 versions back?/ why the difference do you think?

I was wondering whether drawing on different layers would cause the problems with the "Z" axis?

This certainly seems to hatch fill properly and easily, but I have not yet tried to see whether the fill will provide spiders webs when I export to DWG?/

Paul