Author Topic: Help with hatching on mech drawing - freecad related  (Read 4073 times)

August 18, 2018, 06:56:26 PM
Read 4073 times

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
Hi guys.

I'm a newish inkscape user with no clue about vector graphics. Or drawing, or art. I'm an engineer  :) This is my first post here :D "Hi"
I am here because I have made some drawings with freecad (Tech Draw workbench).

I need to hatch various areas of these drawings. But freecad is having issues recognizing faces and surfaces properly. I have spoken to the appropriate freecad Dev. A fix is a while away.

Its possibly easiest to just export .svg from freecad and add hatching in inkscape. Except I am not getting far, and its taking a long time.

I have read a few tutorials on hatching. Have made some custom patterns. Cant use them though because they wont line up right if I have the same pattern in multiple "areas". And they are just fiddly and unstable. I feel I am missing something here. Would prefer to constrain lines via propertys, rather than dragging with mouse. ie set angle to 45 degress. rather than dragging mouse to some close but random value I wont be able to replicate later. As with freecad. Having isues defining the areas to fill.

Have tried an eggbot hatching extension. Got it installed. Its on my extension menu. But cant get it to actually do anything


Then found this tutorial https://inkscape.org/en/~henkjan_nl/%E2%98%85patterns-for-mechanical-drawings-in-inkscape
which is closer to what I want. But its way over my head. I have no idea with python or anything else in that tutorial. (Aside from a good dose of PTSD from the time I had to convert (with gedit :xf2:) the company drawing template to scale for freecad template. Pleas no more .svg coding!!!)

I tried copy object properties with some success. From the examples. But the scale is all out. Came out shaded. Then inkscape crashed, so no example image.

What I really want is to make some patterns and save them in inkscape for future use. As described in the tutorial. But scaled correctly for freecad created documents. (1mm=1px I think)


One extra concern is how patterns in multiple areas line up. Consider the cross section drawing attached. The two outer tubes need hatching on cut faces to line up. Not sure how to describe clearly in digital terms. But to do it by hand I would put my ruler across both sections when drawing hatching lines. and fill in any areas under the ruler before doing the next hatch line So each line appears in each field as a continuous line. I'm afraid I'm not making a lot of sense here, but anyone famillar with mechanical drawings should get the idea. I hope

The other problem I get is similar to freecad. Having issues defining the area to fill.

I have attached an example file and some images to help explain.

my inkscape version is 0.91 and I'm on Ubuntu 16.04. (I'm pretty clueless with Ubuntu/Linux too. No CLI instructions if at all possible. I like to click stuff with a mouse)

eg for hatching.svg
*eg for hatching.svg
(634.06 kB . 297x210)
(viewed 867 times)
Selection_281.png
*Selection_281.png
(23.46 kB . 435x712)
(viewed 727 times)
Selection_283.png
*Selection_283.png
(24.62 kB . 251x733)
(viewed 738 times)
Selection_280.png
*Selection_280.png
(87.81 kB . 1640x798)
(viewed 750 times)
[ Invalid Attachment ]
  • 0.91
  • Ubuntu 16.04

August 19, 2018, 05:25:03 AM
Reply #1

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Hi.

I feel your pain, had similar problems too many times.
Before trying to achieve acceptable results within inkscape, I'd check if any of those pattern fills are compatible with the cad software.
Pattern fills in inkscape are a matter of rendering -the underlying vectors embedded in a base tile are rendered repeatedly. Have serious doubts of them being converted to full vector content covering an area.
As far as I know inkscape saves them still as pattern fills in pdf-s so there is a chance they won't be converted when saving as dxf.

On the other hand the mentioned geggbot extension or some gcodetools would produce a "real" hatching of lines. Have to dig deeper I'm not familiar using those.

Still, remember Tavmjong wrote something about vector hatching is a concept of future svg specs.
Well not in the near future though.

August 19, 2018, 06:57:29 PM
Reply #2

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
The patterns would be usable to freecad. Tech Draw. The workbench that produces drawing files is based strongly on .svg/inkscape code. There are a few basic patterns already installed and I can put more in once I work out how (probably just put the .svg files in the right folder). The Developer of Tech draw has been very helpful, and I try my best to provide decent beta feedback. As the workbench is very new. Thats not the problem though.

My issue is that its (freecad) not making the boarder around a shape quite right. Especially when I have proper threads with radius on the pointy bits. Also problems where a curve looks straight from the drawn perspective. Like the holes in ends of rods in my example drawing.

So when I go to fill. Both inkscape and freecad are producing strange results. I might get areas outside the selected area get a pattern. Like the image on previous post where the text also got patterned (that one was probably me not selecting the right stuff to pattern, but its happened when I did it correctly too). Or its not filling the shape at all. Or its filling parts of the shape and leaving blank bits.

After playing around more while waiting for the Moderators to ok this post I was able to fine tune my questions a bit. And come up with a better example document. Attached eg for hatching2. ( Pun warning: if the eg hatches well, will I get chickens? Or maybe a Linux Penguin? :-D)

I updated my 3d model to include radius on the thread tips. As a proper thread should have. This breaks the .svg output pretty badly and in the same way as the "real" file I can't show. I have hatched a few areas I wouldn't normally hatch. Just because this shows my problem quite well. Also because the main area I want to hatch (The large face created by cross section) is just not working at all. I think this is because its not a "Closed Shape" It looks like one. But something in the document is not actually connecting the lines. They are just sitting there in the right place.
Selection_285.png
*Selection_285.png
(25.43 kB . 709x804)
(viewed 745 times)
Selection_289.png
*Selection_289.png
(23.38 kB . 723x664)
(viewed 744 times)


So Looking at attached documents and screenshots. I was able to hatch the top recess and cross hole in a useful way. I just selected the bit I wanted to fill and shift+ctrl+V pasted my hatch in. Took a couple of tries to realize I want to do the small shapes first, then the background shape. To avoid hatching over the circle with the background. But when I tried to do the same on the lower recess and hole it all went badly.
Selection_288.png
*Selection_288.png
(71.68 kB . 514x803)
(viewed 744 times)
Selection_286.png
*Selection_286.png
(22.21 kB . 388x606)
(viewed 714 times)
Selection_287.png
*Selection_287.png
(54.27 kB . 388x606)
(viewed 728 times)


First I couldn't fill the hole. There is a triangle thats not hatched for some unknown reason.
Then when I hatched the recess (rectangle area) it hatched outside the selected area and added some new boarders and hatched over my circle. Taking a closer look at the circle showed I had a full circle made of 3 sections, and another bunch of left over bits.
Selection_285.png
*Selection_285.png
(25.43 kB . 709x804)
(viewed 719 times)


My messed up file is attached as eg for hatching 2.1

What I am hoping to do in inkscape is define the shape outlines manually. So I can fill properly. Also need to find out what caused blank areas and stop that too. Hopefully with some drag the box style selecting. If I have to click each bit manually I may as well just learn to draw the drawing from scratch... As its already time consuming to generate the drawing in freecad and I know every dimension by heart after working on one part for many months.


I also hope to find some hatch property's so I can change the angle, line thickness and spacing. Using numbers, not the node tool. Also interested in getting one node tool for multiple fill areas if thats possible. But strongly prefer to edit hatch patterns with numbers. ie what if I want to change line spacing, but not line thickness? Or I want to change line thickness and not spacing? Or I want to change 45deg to 44deg. Or just move the pattern center, so its not doing funny intersects with its boarder. Without changing any dimensions... Node tool seems to change everything all at once and is really hard to control. Especially with a regular mouse or touchpad.

Finally I think I need to understand inkscape basics a bit better. Having issues with group/ungroup. Not sure I am using it properly (only found it due to random clicking stuff and see what happens). As well as possibly related issues with some "Invisible Shapes" that get in my way when trying to select stuff. I think I might need to use layers or something? Or just delete a bunch of junk artifacts in the document.
Also not sure when I should be using node pointer :node: and when I should be using the regular pointer :sel:?
Its also really annoying that I keep moving parts of the drawing!! Can I lock all my locations down before editing? or use a different pointer? I'm wearing out my ctrl+z putting stuff back where it was because I don't know how to click on the right object.

If someone could show me step by step how to hatch this document I think a lot of my errors would become obvious. Don't leave anything out. I know nothing except what I have learned from randomly clicking stuff.
If there is already a detailed tutorial, please point me to it. i have googled for days and days over the last 9 months.
Also open to suggestions on other open source software for drawing plans and mechanical designs etc. Like libreCad for example (Thats got a huge learning curve too!!! I'm hoping for something more like ms paint, with dimensions that can be locked in)

Oh and one last thing. I don't need to export dxf or anything fancy. .pdf is the end goal.

  • 0.91
  • Ubuntu 16.04

August 19, 2018, 08:16:46 PM
Reply #3

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Holy crap, that's a long message!  I'll have to take it bit by bit, partly because I don't completely understand what you're trying to do, which is partly because I don't understand the mechanical drawing language.

However, I can probably troubleshoot some of the hatching problems.  Do I understand correctly that you're using a pattern fill for the hatches - a custom pattern?

Aah, I was about to ask for an SVG file, but I finally see what I need, already attached.  Let me examine the eg for hatchin2.1.svg file, and maybe I can figure out that missing traingular area.

And I think one of your questions is about....closing the shapes properly, so that you can fill them.  You may be already on the right track for that, I'm not sure.  I'll have a better idea when I look at the SVG file, in a minute.  Sometimes you can fill a shape that looks closed but technically is not a closed path.  But usually it's good practice to make sure they are closed.

A closed path means that all the nodes are joined together.  You can do that with the Node tool, if you didn't already discover it.  Select the 2 nodes which are open, and click "Join selected nodes" button on the Node tool control bar. 

The control bar is the first row of buttons and switches and dropdown menus and etc, immediately above the horizontal ruler.  (The one above that is the command bar, just fyi.)  The control bar changes for every tool, and contains various options for configuring whatever tool is enabled.  Or if you prefer keyboard shortcuts, usually you can see the shortcut either in the menu item or tooltip.  But if you can't find it on the canvas, try Help menu > Key and Mouse Ref. 

(I would suggest to avoid the Eraser tool.  If you need to remove something, we can tell you how.)

I also hope to find some hatch property's so I can change the angle, line thickness and spacing. Using numbers, not the node tool. Also interested in getting one node tool for multiple fill areas if thats possible. But strongly prefer to edit hatch patterns with numbers. ie what if I want to change line spacing, but not line thickness? Or I want to change line thickness and not spacing? Or I want to change 45deg to 44deg. Or just move the pattern center, so its not doing funny intersects with its boarder. Without changing any dimensions... Node tool seems to change everything all at once and is really hard to control. Especially with a regular mouse or touchpad.

That probably won't be possible using pattern fills.  But there might be another hatch tool (somewhere) which can do that.  I would think there should be a forum or at least tutorials for a lot of the eggbot toys.  I think Moini may know a little bit about it (more than me, anyway).  She should be around before too long.

It sounds like you might have already figured out how to edit patterns using the Node tool.  But I'm not positive about that.  Have you found the tiny x, the tiny square and the tiny circle handles, which can manipulate the patterns?

I can give you some tips about selection and not moving things accidentally.  But I'm going to wait until after I look at your SVG file.  That might tell me more about how you've been working.

I don't know if you've found the Hatches LPE yet?  I'm not sure if it can do the kind of hatching you want.  On the surface it looks like it does the kind of hatching that can resemble what you might do when sketching with a pencil - back and forth and back and forth, with a sharp curve or point between each long line.  I don't know if it can be configured to do the 'one line at a time' type of hatching which you're working on.  But it is highly configurable.  If I have time, I'll study it (which essentially means trial and error with all the buttons and switches).

Ok, I'll post more after I've had a look at the SVG file.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

August 19, 2018, 08:39:58 PM
Reply #4

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Ok, the "missing triangle" happened because the circle is not a closed shape.  For some reason, which I haven't figured out yet, it's made of 3 pieces.  Ungroup that object, and you can pull apart the 3 pieces.  You can see what I mean when I say that sometimes you can fill a path that's not closed.  So you filled those 3 pieces of the circle, but because the circle is not closed (either closed path or circle shape) it didn't fill properly.

One thing I can't figure out is what's under the 3 part circle.  It's a series of 2 node paths in the shape of a circle, except not a solid circle.  Are you aware of how that happened?  In fact, throughout this file are lots and lots of 2 node paths which are not connected together, although they are lying on top of other paths.  Most of them are a Group of 1, which gives me a clue that you might have opened a file which was started in another program, in Inkscape.  That might or might not have resulted in a format conversion.  Was part of this drawing started in another program, and as a different format?

Oh right -- now I've re-read part of your messages.  So these were started in freecad, right?  Yikes!  No wonder you're having trouble making closed paths!  But some of the eg for hatching2.1.svg file has been drawn with Inkscape, right?

Have you already attached the original file for this?  I'd like to look at that, so that I can tell you how to join all those segments into closed paths.  Is that eg for hatching2.svg?

Geez, no wonder you're confused, haha.

I'm almost positive that eg for hatching2.svg is the file that came from freecad.  But before I launch into instructions for joining those paths, let me ask this.  Will you be using any of these paths in any kind of digital cutter, CNC, gcode, laser cutter, anything like that?
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

August 19, 2018, 09:02:36 PM
Reply #5

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
Sorry about long post. Trying to explain stuff well when I don't know the technical language is tricky...



However, I can probably troubleshoot some of the hatching problems.  Do I understand correctly that you're using a pattern fill for the hatches - a custom pattern?
I'm not sure of the correct terms. I used the Hatch Patterns.svg that came with this tutorial https://inkscape.org/en/~henkjan_nl/%E2%98%85patterns-for-mechanical-drawings-in-inkscape as described in the tutorial. click on pattern in hathes document, ctrl+C to copy. Then shift+ctrl+v to paste the pattern in to working document. I have tried making custom patterns too, but can't get the lines consistently and repeatably well spaced and angled using node tool. Long term goal is to use the python script from tutorial to make a set of patterns I can save in inkscape, and maybe freecad as well. But I'm a linux dummy sometimes and don't know how to use the script.. (probably right click and run, haven't had time to play around yet)


And I think one of your questions is about....closing the shapes properly, so that you can fill them.  You may be already on the right track for that, I'm not sure.  I'll have a better idea when I look at the SVG file, in a minute.  Sometimes you can fill a shape that looks closed but technically is not a closed path.  But usually it's good practice to make sure they are closed.

I'd like to learn to make closed shapes. As well as hatching. If I can get my basic incscape skills up a bit. I can import .svg into freecad and make into 3d object. Sometimes this might be a better way. For stuff like text, logos etc on parts... Shapes need to be closed for this to work. Freecad does not like open shapes, stuff is bound to go wrong... This is the main problem I need to solve. Hatching with numerical properties is a bonus.

A closed path means that all the nodes are joined together.  You can do that with the Node tool, if you didn't already discover it.  Select the 2 nodes which are open, and click "Join selected nodes" button on the Node tool control bar. 

Freecad has similar system in its sketcher. Not constraining end points to make a shape will give you a bad day when you try to make the sketch 3d. lol.

So with my drawing. some parts like the thread have a lot of nodes. Can I box select a bunch and close them? Or does it have to be 2 at a time? Played around with this but was unsure how to tell if its working...
Might be quicker to draw over the existing drawing on a new layer or something? If I can't multi select a bunch of nodes at once.


I can usually find the node tool for pattern adjustment. with the X square and circle. If I remember to use the node pointer  :-D Thats a big trap for new players. I'll get sick of getting caught soon and remember...

Also starting to consider editing .svg file in text editor. i think angles and line thickness are in there, and I might have worked out how to find the right bit quickly. I see this as a last resort. I hate editing code because i tend to break it. Many times before i get it right. Like I said above. Hatching well is secondary. First I just need to get hatching in the right places.

if i want to delete stuff. I usually select it and press del on my keyboard. Often followed by ctrl+z lol. I've also moved it to a new layer and made invisible if I think I might want it later. (I know nothing so will probably want it later)

One thing I can't figure out is what's under the 3 part circle.  It's a series of 2 node paths in the shape of a circle, except not a solid circle.  Are you aware of how that happened?  In fact, throughout this file are lots and lots of 2 node paths which are not connected together, although they are lying on top of other paths.  Most of them are a Group of 1, which gives me a clue that you might have opened a file which was started in another program, in Inkscape.  That might or might not have resulted in a format conversion.  Was part of this drawing started in another program, and as a different format?

Yep. I know mostly whats happened there. Firstly. I saw the 3 parts of circle, and grouped them. I know now I should have used node tool to join the ends. Thats what I was trying to do with group.

Also the entire document was one group when I opened it. I had to right click and ungroup to do anything.

As to the other partial circle pieces. I'd say thats freecad trying to draw the background. ie its a drawing of a hole. where the view angle is looking straight down the hole. You can see all of the top/front side of the hole, and probably bits of the back/bottom end of hole. So freecad drew it that way.
 Ive added 2 screengabs to try and explain better.
One is from the view angle the drawing is of. The other is adjusted so you can see the hole wall and other end. The extra circle bits in .svg output are from freecad trying to draw the wall or other end of hole...
Selection_290.png
*Selection_290.png
(5.76 kB . 304x845)
(viewed 671 times)
Selection_291.png
*Selection_291.png
(18.56 kB . 477x561)
(viewed 685 times)



Yes eg for hatching2 is the raw output from freecad with no changes made . Also check eg for hatching.svg in my first post. This does not have radius on threads and made a solid shape. I think. Might see something useful in comparison... This may be useful to the drawing workbench developer...
  • 0.91
  • Ubuntu 16.04

August 19, 2018, 09:12:42 PM
Reply #6

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Yes, this is a more complex file than I expected.  Would you consider drawing this fresh in Inkscape?  That would certainly eliminate the problems of the file conversion - the many 2-node path segments.  If you would consider that, that would be my strongest suggestion.  We certainly can help you learn how.

If not, we can get there from here.  It's just going to take some work.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

August 20, 2018, 12:40:08 AM
Reply #7

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
I'm sort of interested in both ways.

I really need to learn inkscape anyway. I make plumbing parts etc as part of my job. Another thing the Boss wants me to learn is p&id diagrams (Like a circuit schematic for plumbing, I do electrical drawings too!). Google tells me inkscape is great for these too. As well as multiple uses with freecad. And just being able to draw stuff. Maybe one day it will be easier to just draw the plans from scratch myself :D

I think there will also be many times I will need to fix a freecad exported document, when its not too bad this will probably be heaps quicker than a re-draw/trace over. Also I get occasional requests to re-work logo art etc, usually from a .pdf source. I have stumbled my way through a little, seems very similar problems as when freecad makes .svg.. Plus I'm in contact with the freecad .svg dev, so maybe I can help him fix the problem if I can learn inkscape for repairing the broken stuff..

Lets have a quick look at repairing just the lower rectangle and circle I failed to hatch. Then we can look at how to "trace" over the rest of the drawing to fix the really nasty bits. How does that sound?
  • 0.91
  • Ubuntu 16.04

August 20, 2018, 01:59:25 AM
Reply #8

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Sounds great!

Just a reminder inkscape is not a cad program and it's accuracy is quite limited. In the svg output at the preferences (Shift+Ctrl+P) you can set more digits to be saved yet there is some hard-wired limit for the operations as well.
Resulting you can end up with like 0,0005 px differences opposed to typed in values in the top spinboxes.

Another main difference is inkscape is Bézier path based. Although svg can hold circular arcs, there is no gui to do so which is another great limitation for cad drawings. Here is a comparison between the two.


By the screenshots it did seem your paths were cut to smaller portions. Need to check those svg-s.

August 20, 2018, 04:48:54 AM
Reply #9

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Just in case it's not clear, even though you might have had every path closed in freecad, opening the file in Inkscape caused them to be broken up into individual segments.

I guess it sounds like you're more interested at the moment in fixing the freecad file, so I'll start with that.  There are some relatively easy ways to connect all the short path segments.  However, there are a lot of extra things in the file that you'll need to sort through, pretty much one by one, before you can isolate the path segments from everything else.

I'll mention some of those.  Also, I'm only going to focus on the mechanical drawing part.  You can figure out if you want to fix the rest of the document or not.



There are several paths, filled with white and with no stroke, here and there throughout.  Some of them correspond to paths that you actually want to keep, and some don't.  So you'll have to sort through and delete the ones that you don't want.  For the ones that you want to keep, you can add a stroke and remove the fill, and then you won't have to fix the path segments for those areas. 

See screenshots h1.png, h2.png and h3.png, showing the kind of detective work you'll need to do.  At first, you can't see this object (the bottom rectangle which holds the circle) because it's white (h1.png).  Add some color to it (h2.png) and you think you might see it.  But move it over a bit and switch to the node tool (h3.png) and you can see that it is a complex object.  Part of it, the tall, narrow part on the right is apparently underneath another white object or objects.  I'm guessing you'll want to delete that one, but you probably know best.

Just that much might persuade you that drawing it in Inkscape from the start might not be a bad idea.  But I'll show you some more of what I found, just to help you learn.

Looking at the corresponding rectangle at the top.  For some reason, that one looks more like what you might expect.  (h4.png)  I've added a wider blue stroke, just to show some things.  First, most of the path segments are joined, except for the bottom-left corner.  And literally, I find that out by dragging the nodes around to make sure there are 2 paths coming out of a node.  If a node only has a path associated on one side of it, the path is not closed there.  If a node has 2 path segments connected to it, the path is closed at that node.  Then I just Undo after I learn what I need to know.

1 - For some reason which I don't know, there are several nodes along the top edge of that rectangle.  Ideally, you'll want to delete all those in the middle.  With the Node tool, drag a selection box around all except the 2 at the corners, then Delete. 
2 - To join the nodes at the bottom-left corner, drag a little selection box around them.  (Since they are precisely on top of each other, you can only select one of them by clicking.  But dragging the selection box select however many nodes may be there - 2 in this case.)  Then Join selected nodes button on the Node tool control bar (or whatever the key shortcut is).
3 - Remove the fill.

Now, that path is fixed, and you no longer need the paths underneath (see h5.png) which are made of 4 separate segments.  In my screenshot, I have it moved to the side.  But actually, if you do that, how will you be able to get it back in the right place, after you delete the separate path segments that you no longer need?  Not very easily.  So instead of moving it over, while it's selected, do Object menu > Lower to Bottom (or this button on the Selection tool control bar  :m2b: ).  Now you can easily select the 4 segments (because now they are on top in z order) and delete them.

There are several more white objects scattered around.  You may have some idea where they are, from when you drew it originally in freecad.  But you could also use Edit menu > Find, to locate them all.  Or there's a new feature which I haven't used.  I believe it's Edit menu > Select Same.  I think with one object selected, that will select all the others like it.



Now for the 2 circles.  The top circle is whole.  But move it to the side for a moment, and you can see a circle made of several broken path segments.  They don't even look like they were ever connected together.  Here's the best way to delete those many segments, without having to move the circle over, and thus have a hard time getting back into place.  Or I should say, it's the technique I would use.  Others might have different approaches which they prefer.

1 - With Selection tool, drag a selection box around the circle.  This selects the whole circle as well as all the pieces underneath.
2 - Press and hold the Shift key.  The Shift key allows for multiple selections.  Actually you already have a multiple selection, but you're about to de-select the whole circle, so you need the Shift key to keep from  de-selecting everything.
3 - Click once on the circle.  Since the whole circle is on top, it will be de-selected.
4 - Delete.  This will delete all the many pieces below, and leave the whole circle intact.

The bottom circle....  Hhmm, it seems for some reason, the broken segments for this circle are on top of the 3 large segments.  To be able to select those 3 segments, I can't only suggest trial and error, clicking short distances apart around the circle, until you find the 3 large pieces.  Hold the Shift key, to make the multiple selection, one at a time.  If you accidentally click a tiny piece, click it again, to deselect.  Pay attention to the bounding box (dashed line rectangle around it).  The next time you click, click just outside where the bounding box was, and you'll probably select one of the 3 large pieces. 

I think I've given you the info you need to join them already.  After they are joined, and while it is still selected, click Object menu > Raise to Top (or this button  :mtt: ).  Now you can use the same technique as the other circle, to delete the broken pieces.



After you have removed all the white pieces, you should be able to relatively easily join all the broken pieces together.  (I mean about the mechanical part.  The parts of the drawing which create a document....well, I haven't looked at those parts yet.  Anyway, I would suggest using this extension, to join all the segments:  https://github.com/fablabnbg/inkscape-chain-paths

It can be done without an extension, but usually requires a bit of cleanup afterwards.  I haven't not used this extension myself, but I've seen good reports about it.



For the selection tips I promised earlier.  I suspect it was mostly those white objects which you can't see, are responsible for most of the problem.  However, it is hard to select objects which have no fill and only a narrow stroke.  You can adjust the precision of your mouse, so that Inkscape selects what is directly under the mouse, and not a few pixels away.  Inkscape Preferences > Input/Output > Input Devices > Grab sensitivity.  I have mine set at 2.

And just for good measure, a few more gems.

I'm not sure if you've run  into this problem yet.  But you might want to consider custom styles for your tools, if you didn't already see this.  https://forum.inkscapecommunity.com/index.php?action=articles;sa=view;article=15

And if size and precision is important (which I assume probably is) you might want to switch to a geometric bounding box.  (If you didn't already find that too.)  It does not include the width of the stroke, in the size of the object.  Inkscape Preferences > Tools, and check Geometric Bounding Box. 

Depending on your options, the stroke width might be scaled when you scale an object.  Therefore, the size of the object changes differently than you intended, if you're using the Visual Bounding Box option.  While the Geometric BB avoids that, you can also disable that option.  Inkscape Preferences > Behavior > Transforms, and uncheck Scale Stroke Width.  You can also find this option on the Selection tool control bar:   :ssw:



I guess we'll come back to the hatching after you've digested all this much.  Or maybe someone else will address it?

(click on attachments to make them bigger)
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

August 20, 2018, 07:34:30 AM
Reply #10

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Didn't read it all, but just wanted to suggest using the eggbot hatch extensions for hatching, they work pretty well:
https://github.com/evil-mad/EggBot/tree/master/inkscape_driver

August 20, 2018, 05:25:05 PM
Reply #11

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
Thanks Brynn for that detailed instruction.


I mostly understand what I am doing here. I have a partially fixed document attached. I have removed a bunch of junk, and have all the stuff I am happy with on the bottom layer. Stuff I don't need to edit is on top layer. Pretty confident I know whats going on here. Just rinse and repeat what i have done.
The mid layer has the bit I need to make into a shape so i can hatch it. (Help here on the forum is so good. I have shifted the goals back to the original: Hatch all the cut faces)

I'm interested in doing this both ways:

Repairing the existing drawing (This may mean going back to eg for hatching2.svg and doing some bits differently)
"Tracing" over the existing drawing to make a new one, almost from scratch.


First a few questions about what i did. Some of the result in eg for hatching3 may not be completely repeatable.. Although overall I am impressed with how easy this is so far. Only took me a bit over an hour for my first time to get from eg for hatching 2. to the attached eg for hatching 3. Cheers inkscape forum people :D

With the top rectangle. Why are we keeping the white box and getting rid of the 4 lines underneath? I intuitively wanted to delete the white box and join the 4 lines. Although i can see its easy to add a pattern and boarder to the white box, and I can't seem to get the 4 lines to join up to become a box... Maybe that has something to do with it.

You mention moving stuff to lower layers. I assume its ok to create them where they do not exist? Couldn't seem to move the objects without a layer to move too, and even with a new bottom layer added. the toolbar option didn't seem to work? I had to right click object and move to layer.

I can explain why some lines had many nodes. Like one end of each rectangle. This is because in the 3d model these are curves. They only look straight due to the view perspective of the drawing. So freecad made the curves, in case I want to change view angles. As I will need to dimension these drawings. I think it would be useful too keep the middle node so I can mark out the radius dimension if I need to.
This probably explains many of the other unwanted features too. Freecad has them all there, in case I want to change the view aspect.

Looking more at leaving the middle top node (assuming this will be handy to have later?) when I did this there where nome extra bits? the status bar called the  "cusp node handles". Then I found the node wasn't attached to anything. perhaps I am barking up the wrong tree here, but it would be really useful to be able to snap a line to halfway later on. So I can provide the radius measurement on the drawing. I don't actually need dimensions on this drawing. Its a practice run for a patent drawing. Just trying to think ahead for later.
Selection_292.png
*Selection_292.png
(16.82 kB . 1018x783)
(viewed 642 times)
Selection_293.png
*Selection_293.png
(21.04 kB . 1224x572)
(viewed 648 times)


Also had issues deleting the extra nodes on bottom rectangle. Deleting them removed the line across the bottom.
Selection_294.png
*Selection_294.png
(13.13 kB . 307x579)
(viewed 664 times)

I tried joining the nodes and it didn't work quite like I was hoping :???: :lol:
Selection_296.png
*Selection_296.png
(19.51 kB . 425x587)
(viewed 652 times)

So undid that and had a look on toolbar. Found join nodes with new segment. But it seems to have brought back all the nodes I just deleted.
Selection_295.png
*Selection_295.png
(23.23 kB . 1102x749)
(viewed 636 times)

So I undid again. thats when I say I have bonus nodes.
Selection_297.png
*Selection_297.png
(13.15 kB . 814x720)
(viewed 647 times)

Could someone please explain whats happened here. I guess that I didn't look for stuff to delete well enough first? How do I better deal with this when it happens?

I'm interested in using the edit>find tool to find other bad bits. More information please :-| I tried opening it and clicking on objects. Seems to require text entry. I don't know what to write.
   While on this topic. I notice the white shapes are easy to see when .svg uploaded to forum or opened in image programs with no default background. Could I change or remove the inkscape white background to make finding this stuff easier?

When I was selecting nodes. something funny happened when I used ctrl+scroll wheel to zoom with mouse over the multi node line. It seemed to be selecting nodes? Is there a cheat sheet with basic mouse controls and keyboard shortcuts somewhere? This is not the first time the mouse/keyboard has done unexpected things. Sometimes they look like usefull things too. Except I have no idea whats going on. And no idea what useful thins I am not using...

When joining nodes using box select. I had trouble box selecting. Does the object with the nodes need to be selected or something? This was the only way I could get it to work....


With the chain paths extension. The description looks like what exactly what I want. Are there detailed pictorial instructions on installing and using? Say I want to make the threaded part into one shape and fill it?
The instruction in the readme seem to assume a bit more inksacape skill than I have...
This may also be useful with the eggbot hatch extension. I have it on my extension menu, but it doesn't seem to do anything...
I have put chain paths .py and.inx in my share inkscape folder. What do I do with all the other stuff that came with the extension zip?
How do I actually use the extension
? The readme has about 3 repentances on the topic and I only understand half of it.


Finally great tips at the end. I have set my BB to geometric. I'll look at custom tools when it comes up. Good to know about that trap in advance :D
  • 0.91
  • Ubuntu 16.04

August 20, 2018, 05:31:05 PM
Reply #12

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
Sounds great!

Just a reminder inkscape is not a cad program and it's accuracy is quite limited. In the svg output at the preferences (Shift+Ctrl+P) you can set more digits to be saved yet there is some hard-wired limit for the operations as well.
Resulting you can end up with like 0,0005 px differences opposed to typed in values in the top spinboxes.

Another main difference is inkscape is Bézier path based. Although svg can hold circular arcs, there is no gui to do so which is another great limitation for cad drawings. Here is a comparison between the two.


By the screenshots it did seem your paths were cut to smaller portions. Need to check those svg-s.


0.0005px error won't be a problem. But thank you for mentioning this. Most part manufacturers offer accuracy around 0.2-0.5mm. Freecad - inkscape scale is 1mm - 1px. No one will notice half a micron. If they do I will tip my hat to them.  :wink1: :lol: :rtfm:

Re the circles. Not quite sure what you are talking about. But circles, or portions of will need to be circular. If I have to learn some code or script for this I will. Because its important.
  • 0.91
  • Ubuntu 16.04

August 20, 2018, 05:32:19 PM
Reply #13

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
Didn't read it all, but just wanted to suggest using the eggbot hatch extensions for hatching, they work pretty well:
https://github.com/evil-mad/EggBot/tree/master/inkscape_driver

Got it installed. I think. Its on my extension menu. Nothing happens when i select it. Have tried with and without object to fill being selected.
  • 0.91
  • Ubuntu 16.04

August 20, 2018, 05:48:35 PM
Reply #14

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
Ooops.

I think I made a mistake in eg for hatching3.svg

eg for hatching3.1 attached.


We are looking at the middle layer. I want to make this shape closed and fill it.Selection_298.png
*Selection_298.png
(6.94 kB . 154x565)
(viewed 628 times)
  • 0.91
  • Ubuntu 16.04

August 20, 2018, 07:25:31 PM
Reply #15

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
update.

I had a play with the chain paths extension tool. It seems to do what I want. It also seems I need further instructions using it.

See eg for hatching 3.2 attached.

I box selected the entire right zigzag line. Tried the chin path extension and got an error message.
Selection_299.png
*Selection_299.png
(19.3 kB . 605x378)
(viewed 637 times)

Followed instructions in error message and got a result.

But it didn't work completely as hoped. I got a series of conected bits. This is still great. Because wouldn't take too long to join the ends manually.
Except some bits look funny. With white sections.
Other bits had double up lines like the circles. Some are needed some not so much. thinking I should have deleted these earlier?
Selection_300.png
*Selection_300.png
(13.52 kB . 430x486)
(viewed 640 times)
Selection_301.png
*Selection_301.png
(12.32 kB . 216x535)
(viewed 614 times)


I think I will wait for further instruction before proceeding.

I'd also be interested in just tracing over this part. I don't actually know how to "Draw a single line" yet. Let alone draw a series of connected lines to make a complex fillable shape.... i should probably do something about this....
  • 0.91
  • Ubuntu 16.04

August 21, 2018, 09:22:46 PM
Reply #16

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
With the top rectangle. Why are we keeping the white box and getting rid of the 4 lines underneath? I intuitively wanted to delete the white box and join the 4 lines. Although i can see its easy to add a pattern and boarder to the white box, and I can't seem to get the 4 lines to join up to become a box... Maybe that has something to do with it.

It was just my first instinct to reduce the amount of joining of nodes as much as possible.  Since only one node needed to be joined, that's why I kept that one.  Plus my other instinct was to get rid of the white fills.  Of course that could easily be done by turning off the fill.  So either way is fine, in the end.

You mention moving stuff to lower layers. I assume its ok to create them where they do not exist? Couldn't seem to move the objects without a layer to move too, and even with a new bottom layer added. the toolbar option didn't seem to work? I had to right click object and move to layer.

Ok, the options  in the Object menu (also there are buttons on the control bar) Lower to bottom, Lower (1 step), Raise (1 step), and Raise to top, are for arranging objects in z-order within the same layer.  Those do not move things to new layers - only z-order within the same layer.

Looking more at leaving the middle top node (assuming this will be handy to have later?) when I did this there where nome extra bits? the status bar called the  "cusp node handles". Then I found the node wasn't attached to anything. perhaps I am barking up the wrong tree here, but it would be really useful to be able to snap a line to halfway later on. So I can provide the radius measurement on the drawing. I don't actually need dimensions on this drawing. Its a practice run for a patent drawing. Just trying to think ahead for later.

That makes sense to save the middle node for later.  At the moment, I don't know why that node does not seem to attach to anything.  It does happen from time to time, if you're doing path operations, that a node will be orphaned.  But more likely it is attached to something.  I'm not sure which file to look at, to be able to answer.  eg for hatching3.2.svg ?

Hhmm, in eg for hatching3.2.svg, there is no longer a middle node there.  If this question still needs to be answered, tell me which file.  Well, you can see from the screenshot that it's attached at least to the node to the right.

Those straight blue lines with a tiny circle on the end are node handles.  With those you can adjust curves....if it's a regular bezier curve.  There are some other kinds of curves, like with LPEs, where the handles either won't move, or moving them doesn't do anything.  But in a regular bezier curve, they can adjust the curve.

So whenever you select a single node, then the handles of the nodes on either side of the selected node are revealed.  Those associated nodes are not selected, but their handles are revealed.  That info might not be very relevant for your purposes, but it's a clue that that node is attached to something.

I have a feeling you still may be having trouble (or you were at this point) with selecting what you intended to select.  The eg for hatching3.2.svg file looks much cleaner than the first version though.  So maybe it's getting better.

I'm interested in using the edit>find tool to find other bad bits. More information please :-| I tried opening it and clicking on objects. Seems to require text entry. I don't know what to write.
   While on this topic. I notice the white shapes are easy to see when .svg uploaded to forum or opened in image programs with no default background. Could I change or remove the inkscape white background to make finding this stuff easier?

Sure, that's one way to do it.  Although I haven't used it yet (very new feature) I think Edit menu > Select Same might be easier than using Edit menu > Find.  For Select Same, you have to have one of what you want already selected, as far as I understand.  Ok yes, I just tried it.

In the top layer of eg for hatching3.2.svg, those long skinny rectangles have white fills, so select one of those, and do Edit menu > Select Same > Fill Color.  You'll see that there are even some 2-node paths which have a white fill assigned to them.  You can't see the fill, and it's really inconsequential that it has a fill.  But when you're doing things like you are, with different programs, having absolutely the cleanest and most basic file, with nothing unexpected, is really ideal to eliminate surprises. 

So while everything with a white fill is selected, I would remove that fill from everything.  The formal way to do it is that big X button in Object menu > Fill and Stroke > Fill tab.  But there's a neat shortcut....well probably a few, but here are 2.  See that tiny X chip at the left end of the palette?  That removes the fill of whatever is selected.  If you hold Shift and click it, that removes the stroke.  Or another way, place your mouse over the Fill bar in the bottom-left corner of the Inkscape window, right-click > Remove fill.

When I was selecting nodes. something funny happened when I used ctrl+scroll wheel to zoom with mouse over the multi node line. It seemed to be selecting nodes? Is there a cheat sheet with basic mouse controls and keyboard shortcuts somewhere? This is not the first time the mouse/keyboard has done unexpected things. Sometimes they look like usefull things too. Except I have no idea whats going on. And no idea what useful thins I am not using...

Help menu > Key and Mouse Reference  :)

When joining nodes using box select. I had trouble box selecting. Does the object with the nodes need to be selected or something? This was the only way I could get it to work....

Yes, the nodes need to be showing before you can select them.  And that means that the path needs to be selected with the Node tool.  So to select nodes, first switch to the Node tool and select the path  (Or select the path with Selection tool and switch to the Node tool).  Boom, there are the nodes, and now you can select them.  Partly that might have been my fault.  It's hard to judge someone's skill level, and on some things you seem more advanced, so I might  have left out the step to switch tools.

I have put chain paths .py and.inx in my share inkscape folder. What do I do with all the other stuff that came with the extension zip?

As far as I know, it doesn't matter.  Some instructions I've seen seem to leave them in the Downloads folder.  I keep them in my extensions folder.  But you have to remember that the PY and INX files have to be in the extensions folder, and not in a folder in extensions folder.  Because when you download the extensions, often they have a few folders.  But if you don't take out the relevant files, and put them in extensions folder, that extension won't show up in the menu.

How do I actually use the extension
? The readme has about 3 repentances on the topic and I only understand half of it.

As far as I can tell, you just select all the path segments that you want to connect.  In your case, where the paths are all separate because of just opening in Inkscape, the nodes are probably already on top of each other.  So the distance between nodes might be irrelevant.  I'm not positive about that, just guessing.

The first few times I tried it with your file (which is the first time I've tried to use it) I had used Select All, so I had a lot of the extra stuff selected.   I've been waiting for you to create the cleaner file, and I'll try it again.  With a very clean file, select all should work.  But this file may just be too complex, and you'll have to select section by section, and run the extension a few times.

I think I mentioned before that you don't have to use that extension.  If the file is very clean, you should be able to Select All, switch to the node tool, select all again (selects the nodes) and click Join selected nodes button.  I thought the extension might work in your file without having to clean it up, but that didn't turn out to be the case.


But it didn't work completely as hoped. I got a series of conected bits. This is still great. Because wouldn't take too long to join the ends manually.
Except some bits look funny. With white sections.
Other bits had double up lines like the circles. Some are needed some not so much. thinking I should have deleted these earlier?

I think I will wait for further instruction before proceeding.

I'd also be interested in just tracing over this part. I don't actually know how to "Draw a single line" yet. Let alone draw a series of connected lines to make a complex fillable shape.... i should probably do something about this....

Now that you have a much cleaner file, I'll look more closely at using the extension.  I'll post this much, to answer your last questions.  Then I'll try the extension again, and look for these problems, and try to figure out what to do about them.

I made a video recently to introduce someone to tracing using the Pen/Bezier tool.  It's just a very brief introduction, and not a full tutorial for the Pen tool.  It's attached.  The video makes a blue circle whenever I click the mouse, but it doesn't make a double-blue circle for a double-click.

Click once to start the path.  Click once to drop a node.  Double-click to end the path.  I usually draw a new path with all cusp/corner nodes (they are diamond shaped....I think all your nodes are currently corner nodes) and then I come back later with the Node tool and change the node type and/or adjust the nodes, or node handles as necessary, to fit the path.  Or you can drag the path itself with the node tool, to adjust the curve.

Or, if you do a click-drag with the mouse, with the Pen tool, it will drop a Smooth node (square shaped nodes).  Personally, I find that very hard to control in a precise manner.  So that's why I always set corner nodes and come back later to change the node type and/or adjust the curves

In the situation where you need those grooves to indicate screw threads....and given the precision you need....that might be very tedious to trace.  I might be tempted to draw those threads as sharp points at first, and then come back later to make them curved.  Well, unless they technically are not curved....I guess I haven't zoomed in that close yet.  I might have more on that later.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

August 21, 2018, 09:52:43 PM
Reply #17

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Ok, in eg for hatching3.2.svg, have you already used the extension to join some nodes?  You're going to have to go back to the original file, and make sure it's all cleaned up before joining nodes.  It appears there were some extra paths in the screw threads area, and sometimes it joined one path and sometimes it joined another.  I apologize that I didn't find this earlier.

Attached is a screenshot where I've pulled some of the nodes apart to show.

I'll go back to the first file that I looked at, and try to find all the problems, and how to fix them.  I'll be back shortly.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

August 21, 2018, 11:07:04 PM
Reply #18

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
A couple more screenshots.  h8.png shows what the path looks like at first.  h7.png shows all the many pieces which create what you see in h8.png.

Not all of those pieces are needed to make the a single path.  And you can see at the bottom that there are 2 paths overlapping.  Do you have any clue what might be responsible for the double paths?  I know earlier you thought the 3 part circle was because of the viewing angle in freecad, so I guess it's possibly the same explanation here.  But unless there's some way to avoid that from earlier in the process, I don't know any way to discover them, except by going through the file, one path at a time.

Oh, I just made another observation.  It looks like every other diagonal path is doubled - one side of each V, in other words.  That should help.  I could be wrong about this, but as far as I can tell right now, it's the bottom path which is correct.

Yes, if I were doing this, the first thing I would try is to go through and delete the top path of all the longer overlapped paths.  For those several paths in the inner curves, it appears to be the 2 smallest segments which are not needed.  So I would go through and delete the top path of the longer segments, and the 2 smallest paths of those in the curve.  That should make the file ready to connect nodes.

I'm speaking of using eg for hatching 2.svg.  Also, I've discovered that you can just delete everything with a white fill, and not lose anything.  That's very fast - just a couple of clicks, including Select Same.  Knowing what I know, I could have this file ready in 5 or 10 minutes - just to give you an idea.  It might take you longer.  Let me make steps for you.

1 -- Open eg for hatching2.svg
2 -- Ungroup once
3 -- Select only the mechanical part
4 -- Ungroup once more
5 -- Select one of the known white filled objects
6 -- Edit menu > Select Same > Fill color
7 -- Delete
8 -- Click on what appears to be the wider side of each thread (it looks wider because there are 2 paths on top of each other)
9 -- Delete
10 -- Repeat until you get through all the threads
11 -- With Selection tool, drag a selection box around the inner curve of the threads.  Try to identify the 2 smallest paths and delete those.  I don't know, it might turn out easier to use the Node tool to find them.

Oh I know.  One of them is a 3 node path, that should make one of them easy to find.  And the other one, the 2 nodes are almost on top of each other. The path is so short it almost looks like a circle.  Those are the 2 that I think need to be deleted.  So far, looking at 3 different curves, they are all alike.  So hopefully they will be the same in every curve.

After you get all that done, show me the file, and I'll test both the Chain Path extension and the more manual way of joining nodes, to find out if one is better than the other.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

August 23, 2018, 05:19:20 PM
Reply #19

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
Wow. Thank you again for all the time you are spending helping me :D

Sorry i am a bit slow to reply. Lots to digest there. I'm working through it.

I am working on making a cleaner file now. I have done as you say. Selected a white fill. selected same fill colour and deleted. That was indeed a very nice way to get rid of a good amount of the junk.

Then I did the circles. Grouped the 3 part one and removed junk from both circles.
So far about 1-2 minutes :D

Then on to the threads. Did first of 4 threads in about 10-15 min. Most of that time being spent selecting the first few bad bits. (Yes i am still having trouble selecting stuff correctly, but its getting better, I'm nearly over the steep part of the learning curve)

While I was deleting threads I was looking at how each extra bit has geometric copies all over the page. Like the 3 node curves on the threads. Tried to use inkscape GUI to search for matching geometry. Failed.
Opened .svg in text editor (Gedit for ubuntu, notepad for windows, don't know for mac) and had a look for the object id of one of the 3 point curves. ctrl+f let me search for it and find it in about 10 secs.
Selection_320.png
*Selection_320.png
(93.96 kB . 895x695)
(viewed 630 times)
Selection_319.png
*Selection_319.png
(67.2 kB . 1117x664)
(viewed 597 times)


Then I had to do some detective work, because I'm not a coder....
 It was easy to see the group. Trial and error searching for different parts of the group and finally I found the bit that describes the arc. I know I'm right because there are 8 the same in the whole document. And thats how many curves like that I have left.
Selection_321.png
*Selection_321.png
(42.76 kB . 884x296)
(viewed 588 times)
Selection_323.png
*Selection_323.png
(98.57 kB . 899x693)
(viewed 585 times)
Tooltip_322.png
*Tooltip_322.png
(103.75 kB . 911x703)
(viewed 634 times)


So I deleted those groups from the code. Saved with a new name and opened in inkscape. Looks good to me. All the 3 point curves on the lower right thread are gone. (I already did the top right in gui, left side still to go.)

Over all my coding skills are pretty equal to my inkscape skills. so this is taking me as long or longer to do in the text editor. Especially with the straight 2 node paths. Their code is not so obvious to hunt and destroy.

Wondering if there is a way to do a search for matching geometry, or even matching start co-ords. ie all my 3 node paths in a thread section have the same horizontal co-ord as a start point. Using inkscape gui? If not wondering if there is an extension maker around interested in adding this feature? I don't think it would be a big job...

I have attached a few screenshots of the process and the resulting document. I am now going back to document pre-text edit, and doing it the way I have been instructed. Because as mentioned before I'm getting better at selecting what I want and its not taking as long as I thought it would and looking at all that code makes my brain hurt...

I'll be back soon with the cleaned up document. :D
  • 0.91
  • Ubuntu 16.04

August 23, 2018, 05:54:12 PM
Reply #20

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
Wohoo!

I think I have all the junk deleted. eg for hatching 4.3 should be all clean. I even checked the form part and am confident its pretty good :xf2:

This 3rd or 4th time around I think it took me maybe 10-15 min to delete all the junk in the entire document. Using GUI only with no text edits.

Still having trouble selecting stuff, but developing intuition about why its not working and moving forward :D Just need to do it wrong a bit more to learn  :b1:

Now all I need to do is close up all the shapes so I can apply fill of my choice. :beg: :xf2: :beg: :xf2:

I'm going to have a try at that myself while I wait for further instruction :D :help2: :help2: :help2:


Since I have a few attachments to spare, I will explain about the junk lines on the threads.

If we look at a thread  in freecad and zoom right in on one of the problem areas.
Selection_324.png
*Selection_324.png
(8.76 kB . 354x828)
(viewed 594 times)


Then we can see edges and faces.
Here I have selected the edge in green
Selection_326.png
*Selection_326.png
(8.66 kB . 1226x855)
(viewed 591 times)


and here the face is selected in green
Selection_327.png
*Selection_327.png
(8.67 kB . 1226x855)
(viewed 583 times)

Here is the face still selected from a different view angle.
Selection_328.png
*Selection_328.png
(31.55 kB . 683x581)
(viewed 580 times)


So the problem is that freecad draws everything it sees. Including a few bits I don't always want. Considering the Tech Draw workbench is only a year or so old. I think its doing pretty well. Now I have a better idea on whats happening I may be able to assist the developer of the drawing module in improving things :)

Until then, I now have almost enough inkscape skills to fix any problems. Vay!!

I'll be back soon with some bad attempts at making closed shapes and filling them. :2tu:


  • 0.91
  • Ubuntu 16.04

August 23, 2018, 08:56:07 PM
Reply #21

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
Wohoo again :D :-D

I think i am almost there.

I have a bit of a layer problem though.

I joined up all the bits in my last file with combined chain tool and manually selecting single points. Managed to fill all the areas :-D.

 Found a couple of bad node I had missed and added a few bits back that I may have deleted. Lots more stuff making sense and I am getting better selecting stuff.


Now my problem is that some areas need to cover other areas and they don't. If I can fix that I'm good to do what I need. You should be able to see what I mean in the attached files.
Hatches and fills etc on one layer/area are intersecting hatches on another layer/area.. There is also a new rectangle. This is just for the little corners that stick out. but it needs to be same pattern as 2 circles. to represent a single surface. I'm happy to shift+ctrl+v to match the areas that need to be matched.

Just need to get stuff on top fully blocking stuff under it.
  • 0.91
  • Ubuntu 16.04

August 23, 2018, 11:21:58 PM
Reply #22

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
WOHOOO

I did it  :yay: :hd: :ur: :th: :ty1: :hd: :yay: :clap1: :2tu:

I used ctrl+d to duplicate a few bits. Set one copy to white and the other to pattern. then shuffled the z-stacks and layers around a bit and its looking great :)

Eg for hatchin5 attached.

About the only thing I might like to do is to gradient the pattern on the two rectangular areas with vertical stripes. So it looks more rounded, but that would be a bonus.
Normally I'm not sure I would pattern those faces anyway.
  • 0.91
  • Ubuntu 16.04

August 25, 2018, 07:39:50 PM
Reply #23

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Very nice work - congrats!

The only question I think you asked was about some way to find/select objects with the same geometry.  If it's one of the vector shapes, rectangle, ellipse, star, spiral and maybe 3D Box, yes, as far as I know.  There might be a way to find those 3-node paths using Find dialog.  I've been able to do it in my own file, but I didn't try in your file.

In the field labelled Find, you can enter XML code.  I've done that to find everything with the same fill or stroke color (that was before Select Same was invented).  I think I might have used stroke width once, too.  I just copied the code from the XML Editor.  It's probably just a matter of finding the right Properties, copying the right bit of code, and setting up the options in the dialog correctly

I have a feeling the Find dialog can do much more than I'm aware.  I could only refer you to this tutorial for that dialog.  That feature (Find dialog) is not covered in the manual (which is outdated), but this comes from an excellent series of tutorials.  Hhmm, I don't immediately see how to make a link to the specific page.  But this is the issue of Full Circle magazine (where the series runs):  https://fullcirclemagazine.org/issue-122/  Open the PDF, and the table of contents is on the 2nd page (after the cover).  Then just click on the Inkscape article.

Actually it might help you to read the whole tutorial!  It covers both ways of finding objects that I've mentioned (Select Same and the Find dialog) and probably with much more detail.  But it also covers another way, which I haven't learned how to use yet - Selection Sets.  I don't know if it would help with those 3-node paths or not.

In any case, I was a little confused why you were using a text editor to find those 3-node paths.  To me, it would be faster to just delete them one by one, than dig into the code.  (Ungrouping should have taken care of the groups.  But maybe you forgot?) 

But I am shocked that they all had the same values for the d attribute!  I always thought those numbers were coordinates.  But they must be something else.

In eg for hatching5.svg, I notice one anomaly which is caused by an open path (well, 2).  If you zoom in, you can see in some places on the right side, in the largest object, the pattern seems to have a white line going across it (top to bottom), and in other places, where the white area seems to have a black line going through it (or dashed black line, seemingly).  But it's all caused by the path being open in 2 places. 

I'll challenge you to find where the nodes are not connected.  You can follow the line.  It doesn't exactly lead directly to it.  But you can follow the angle of the anomalous line, and find the right nodes.  If you need help, I'll tell you where.  But I think you can find them  ;)

Also, both the top object with the pattern fill, and the bottom one with white fill, have this same problem.

Not a problem....I don't think.  But I'm just curious why you have some groups of 1.

I just noticed the object on the very bottom, a rectangle, most of which is hidden under the white fill.  Are you happy with that arrangement?  Or would you rather not have it overlapped, and instead have objects of those specific shapes, the parts that are showing?  It would not be very hard to do that, if you like.

Oh, and also, you could edit the patterns to be white with black stripes, and not have to have a whole white object underneath.  If that would be helpful.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

August 25, 2018, 10:21:07 PM
Reply #24

MongrelShark

  • Jr. Member

  • Offline
  • ***

  • 17
Yep I know about the 2 points nodes not joined. Spent ages trying to join them unsuccessfully. Although just went back and got them :). Not sure why top one didn't work before, But had to do bottom one all the way to the end. I had been trying to join it to a node not at the end of the other line. Which seems Like an obvious mistake.

Not sure about groups. But I guess I could group same or similar elements for easy organization? Like white background and stripy fill as a group. May also be useful to group actual parts and put in individual layers. Might make things easy for exploded views etc.

Would be nice to not need white backgrounds for stripes also.

With the rectangle on the bottom. Do you meant the bottom layer? That one is just there for the little corners and edges that show, but if I could make it also visible through the circular holes that would be cool. would save me a few extra elements.

Finally, with the two matching rectangles. Would be super awesome if I could make the pattern tighter near edges and more spaced in middle, with a gradual change. So it actually looks like the internal cylinder view that it is.
  • 0.91
  • Ubuntu 16.04