Hi Itay
1. Yes. Do a seed file in AutoCAD and link it as a template in FME. In the seed file you can in a easy way (if you are an AutoCAD person, like me) define the layers, colours, linestyles, linewidths and so on.
2. Yes. You can control the linetype and linewidth for an feature and/or for an entiry AutoCAD layer. So if the lines and areas use another layer then point they can have different styles controlled by the seed file. Or you can put them on the same layer and don't use "ByLayer" as deafault when setting linestyle and linewith of the lines and areas.
3. Have you tried the DWGStyler transformer? Otherwise look at the attributes autocad_color and autocad_original_color, autocad_linetype and autocad_resolved_linetype. Also remember that AutoCAD has its own color index:
http://sub-atomic.com/~moses/acadcolors.html
Hi Gabriel,
I can only use the DWGStyler for points (blocks) since the block symbology is defined in the seed file (and nothing else).
The colors and line weight are corretly set in the output dwg via the autocad attributes in the ws, but the line type is not.
I have tried writing the dwg with and without the seed file, but no matter what I try the line type is always continous.
I know that this is the default in the writer, but since the color and line weigth are correctly set by the autocad attributes, I imagine that the line type can also be set that way.
Unfortunatly that is not the case, any ideas?
Itay
Hi,
To answer my own question
after some research the conclusion is that a seed file /template is necessary for the line type to be set by FME.
(please, prove me wrong....)
Itay
I think you are correct. The seed file is the most efficient way to go. Is there a reason you don't want to use a seed file for the lines?
Hi I am trying to convert shapefiles to DXF.
I have a CAD template file (.DWT) which contain definitions for linetypes.
However I need to specify a linetype based on an attribute.
I am using the DWGStyler in FME. Is there any way to set a particular linetype for each attibute value.
Using 2015.1, on the DWGStyler parameters, check the Line box to enable the linetype options. Is that what you are looking for? Values are ByBlock, ByLayer, Center, Continuous, Dashed, etc. To separate values, I use the AttributeFilter transfomer and then assign a separate DWGStyler for each attibute value output port om the AttributeFilter transformer. I'm also doing something similar and I'm figuring out a lot of things I need to do to create CAD from GIS. Hope that helps.
Gabriel/Itay, what happens in the DWGStyler if I have both a template file and I configured the settings for Areas, Lines, Text and Blocks? Which configuration prevails the block or the DWGStyler parameters?
When does it make sense to create a layer? When do I make it a block?