Fill Path

Post questions on how to use or achieve an effect in Inkscape.
jdelgado
Posts: 8
Joined: Mon Mar 24, 2008 2:05 pm

Fill Path

Postby jdelgado » Sat Mar 29, 2008 3:31 am

Hi,
I converted a dwg file to SVG so I can use it in inkscape but inkscape could not open the file I had to end the task after 28 min because it never finish opening I downloaded GLIPSGraffiti another open source vector editor and I was able to open the file with no problem I deleted what I did not want and open it on Inkscape with no problem. The dxf are just lines and that I am trying to use union so I can make them a "close" path on the shapes that they represent. During the process of Union I had to use the Stroke to Path to make the union work. Any how after I join all the lines to make a close path which represent a shape how can I fill the object without creating a new path. I hope that it makes sense what I am saying.

PS

When I used the Fill tool to set the color it creates a new path with the color it doesn't fill the path it self. I also select the path and set the fill color but nothing I can change the Stoke color but not the fill it stills shows transparent.

Thanks

Julio Delgado

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Fill Path

Postby sas » Sun Mar 30, 2008 7:05 pm

jdelgado wrote:how can I fill the object without creating a new path.

You can't. At least, not if I understand what you're trying to do. But what's wrong with creating a new path?

When I used the Fill tool to set the color it creates a new path with the color it doesn't fill the path it self.

Yes, that's how the Bucket Fill is meant to work.

I also select the path and set the fill color but nothing I can change the Stoke color but not the fill it stills shows transparent.

Have you made sure that the alpha is set to 255?

It would be easier for people to help you if you could post the SVG file.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Fill Path

Postby microUgly » Mon Mar 31, 2008 10:20 am

jdelgado wrote:I converted a dwg file to SVG so I can use it in inkscape but inkscape could not open the file I had to end the task after 28 min because it never finish opening

I can't find it now, but I was sure that someone reported this on this forum before and the problem was due to inefficient code that has since been optimised in 0.46. But like I said, I can't find where I read this, so don't quote me.

jdelgado
Posts: 8
Joined: Mon Mar 24, 2008 2:05 pm

Re: Fill Path

Postby jdelgado » Mon Mar 31, 2008 12:29 pm

Hi Guys

Attached is the SVG file I am working with http://www.jdfas.com/images/model.svg

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Fill Path

Postby microUgly » Mon Mar 31, 2008 1:29 pm

That URL doesn't seem to work - is it a new domain?

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Fill Path

Postby sas » Mon Mar 31, 2008 8:30 pm

microUgly wrote:
jdelgado wrote:I converted a dwg file to SVG so I can use it in inkscape but inkscape could not open the file I had to end the task after 28 min because it never finish opening

I can't find it now, but I was sure that someone reported this on this forum before and the problem was due to inefficient code that has since been optimised in 0.46.

It was reported for DXF rather than DWG, but I think they may use the same import script. I don't think the speed-up is in 0.46, as it was too late. But it's in the SVN trunk, and can be downloaded from there (dxf_outlines.py). But this new dxf_outlines.py won't work with 0.45.


404

jdelgado
Posts: 8
Joined: Mon Mar 24, 2008 2:05 pm

Re: Fill Path

Postby jdelgado » Tue Apr 01, 2008 10:55 am

microUgly wrote:That URL doesn't seem to work - is it a new domain?


Yes it is a new domain I contact my provider and they are going to add support to svg extension to my domain. Will see if that is the issue, I tested on my test server and it works for me without making any changes to the MIME extensions. I will check later and update the link when it gets resolved. Thanks again for you guys for taken the time to help me.

Thanks

Julio D

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Fill Path

Postby microUgly » Tue Apr 01, 2008 11:26 am

Are you sure you've uploaded the file?

Currently I get a blank page, and the source of the page has the following code:

Code: Select all

<.html"postlink" href="http://www.jdfas.com/images/">http://www.jdfas.com/images/ I see only two files in that folder - neither are called model.svg.

jdelgado
Posts: 8
Joined: Mon Mar 24, 2008 2:05 pm

Re: Fill Path

Postby jdelgado » Wed Apr 02, 2008 7:30 am

Updated link for the modelhttp://www.jdfas.com/model.aspx

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Fill Path

Postby microUgly » Wed Apr 02, 2008 10:42 am

Ok, unfortunately there is no easy way to colour this. Even :tool_paintbucket: is going to have limited success purely because it paints on a rasterised view of the picture, rather than looking at the vectors - which means it's not accurate. And because the entire drawing is made up of individual lines (as opposed to solid objects) you would just about have to redraw the entire picture to be able to use the Fill property. What makes the process worse is that that in some places, what looks like one line is actually multiple shorter lines that overlap.

One thing you can do to make colouring easier is to select the entire drawing and increase the stroke thickness. With a thicker stroke you'll have more success with :tool_paintbucket:. :tool_paintbucket: will also work better if you zoom in. Remember to hold Shift to add to the previously painted area.

jdelgado
Posts: 8
Joined: Mon Mar 24, 2008 2:05 pm

Re: Fill Path

Postby jdelgado » Wed Apr 02, 2008 12:53 pm

Thanks,

What I did was use stroke to path then selected the lines and created a path. It turn out like this http://www.jdfas.com/images/steamspray.svg but I don't like it. I need to learn more about gradient and shadows to see if I can enhanced the image. Again I am really happy on how powerfull the software is. Again thanks for taken time to look at what I am doing and give me ideas and suggestions.

Thanks
Julio D

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Fill Path

Postby microUgly » Wed Apr 02, 2008 2:26 pm

jdelgado wrote:What I did was use stroke to path then selected the lines and created a path.

Can you explain that in more detail? I get converting all the strokes the paths, but selecting the lines then "created a path" looses me. It obviously worked very well so I just wanted to get an understanding of how you did it.

As for the colouring, my only tip is to use consistent gradients on your pipes - define one and reuse it everywhere, then if you need to change it you only need to change it once. Remember, flanges are cylinders also, so use the gradient in the same direction as you would for a pipe. The elbow will be the challenging one - you'll need to use a radial gradient for that.

jdelgado
Posts: 8
Joined: Mon Mar 24, 2008 2:05 pm

Re: Fill Path

Postby jdelgado » Thu Apr 03, 2008 9:59 am

microUgly wrote:
jdelgado wrote:What I did was use stroke to path then selected the lines and created a path.

Can you explain that in more detail? I get converting all the strokes the paths, but selecting the lines then "created a path" looses me. It obviously worked very well so I just wanted to get an understanding of how you did it.

As for the colouring, my only tip is to use consistent gradients on your pipes - define one and reuse it everywhere, then if you need to change it you only need to change it once. Remember, flanges are cylinders also, so use the gradient in the same direction as you would for a pipe. The elbow will be the challenging one - you'll need to use a radial gradient for that.


Sorry I should have said union instead of "created a path" Thanks for the tip on the gradients.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Fill Path

Postby microUgly » Thu Apr 03, 2008 1:43 pm

After you do a union, you're still left with just an outline (an outline where the stroke is an object). It seems to me you must have done something else to get the strokes back to strokes and have a object you can apply the fill to.

Did you use "break apart"? Just playing with it I found it worked well to create a shape you can fill from an object that is just an outline.


Return to “Help with using Inkscape”