I have a drawing (.dwg) file. It is having so many polygons created by polyline. I want to fill up those polygons by a color. How can I do the same in AutoCAD?
After that How can I generate .svg from .dwg?
Sorry for late response,
I am not getting required result using hatch tool.
Actually I have so many polygons in a drawing (.dwg) file. Using hatch file, I am able to select only one ploygon at a time. I need a script which can hatched all objects at a time.
Can we apply hatch tool on all layers simultaneously?
No, HATCH command requires some sort of selection of objects or spaces: you can explore using QSELECT or FILTER or SELECTSIMILAR commands to create such selections based on whatever criteria they all share in common.
AFAIK you can select more than one at the same time, you just need to be aware of your hatch "island detection" settings of these objects overlap. Also look up and set HPSEPARATE variable to what you need.