Skip to main content
Question

CAD TO GIS


Forum|alt.badge.img

i'm trying to translate a CAD Model into a GIS database, and i want to copy the autocad_color, autocad_resolve_linetype and autocad_lineweight. For the last one i can't copy the filed attributes. I only get -1 (by layer) or -3)by default) and i need 25, like it is in the cad file. I tried to expose autocad_layer_lineweight but with no succes. Anyone have any ideea on how to fix this?

14 replies

Forum|alt.badge.img
  • Author
  • March 8, 2017
"i can't copy the fields attributes"

redgeographics
Celebrity
Forum|alt.badge.img+50

What does the FME Data Inspector show for those attributes? Could it be that the linewidth is actually set to 25 by layer in the template and all the features then use the bylayer option?


Forum|alt.badge.img
  • Author
  • March 8, 2017

Is -1 and line type is by the layer. Thing is that FME dosent read the cad files with all its fileds and attributes, like is displayed in Arcmap.


jneujens
Forum|alt.badge.img
  • March 8, 2017
alexandrus wrote:

Is -1 and line type is by the layer. Thing is that FME dosent read the cad files with all its fileds and attributes, like is displayed in Arcmap.

 

So to be sure, you have exposed all three attributes and even in data inspector, the exposed values are different from what you see in autocad? But in ArMap is correct again?

Forum|alt.badge.img
  • Author
  • March 8, 2017
jneujens wrote:

 

So to be sure, you have exposed all three attributes and even in data inspector, the exposed values are different from what you see in autocad? But in ArMap is correct again?
So, i've exposed all the attributes and in the data inspector, the values for autoca_lineweight is -1 or -3 depending of the layer. In Arcmap, after the translation it has the same values, -1,-3. All i need is to copy the same values as in the original cad file (25 for the LineWt) . As i said, the reader dosent read the same columns with the same data as in the original cad file. I need this three layers (color, weight and type) to display the same symbology for a line like in the original drawing in Autocad. If you know any other solution on how to do it, i will much appreciated.

 

 


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • March 8, 2017

Which version of FME are you using? Have you tried setting the Store Layer Properties on Features parameter to yes?


Forum|alt.badge.img
  • Author
  • March 9, 2017
itay wrote:

Which version of FME are you using? Have you tried setting the Store Layer Properties on Features parameter to yes?

FME version is 20016.0.1.2 and yes, that option was turn to yes , but still with no success .

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • March 9, 2017
alexandrus wrote:
FME version is 20016.0.1.2 and yes, that option was turn to yes , but still with no success .
I see, them maybe your best option is to open a support case for this issue at https://www.safe.com/support/

 

 


jneujens
Forum|alt.badge.img
  • March 9, 2017

As itay suggests, try the 'store layer properties on features parameter' if you have not done this yet.

 

 

Otherwise there is always another workaround. Although it is not that pretty, you could set the attribute value manually to 25.


Forum|alt.badge.img
  • Author
  • March 9, 2017

As i said , it was turned to yes, so if is not working to copy the attributes automatically is pointless to put the values manually since one CAD layer can have different line weights in the same column. I still dont understand why FME dosent read within the CAD file all the columns. When inspecting the file is missing most of its attributes.


jneujens
Forum|alt.badge.img
  • March 9, 2017
alexandrus wrote:

As i said , it was turned to yes, so if is not working to copy the attributes automatically is pointless to put the values manually since one CAD layer can have different line weights in the same column. I still dont understand why FME dosent read within the CAD file all the columns. When inspecting the file is missing most of its attributes.

And you cannot even expose autocad_layer_lineweight? Or there is simply no data in this column?

Forum|alt.badge.img
  • Author
  • March 9, 2017

In the inspector, in the column autocad_layer_lineweight the value is -1 or -3 dependig of the layer. So exposing the attributes, copy and translate everything in a gdb. , the value will be -1 or -3. Opening the original cad file in ArcMap in the column LineWt the value is 25. I don't understand why the FME reads -1 instead of the actual value.


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • March 9, 2017
alexandrus wrote:

In the inspector, in the column autocad_layer_lineweight the value is -1 or -3 dependig of the layer. So exposing the attributes, copy and translate everything in a gdb. , the value will be -1 or -3. Opening the original cad file in ArcMap in the column LineWt the value is 25. I don't understand why the FME reads -1 instead of the actual value.

Can you open the cad file in a CAD application and see other values? according to the docs the -1 value is the value given by layer.

 

 

 


Forum|alt.badge.img
  • Author
  • March 9, 2017

In AutoCAD the value is given by the layer, so that's why is -1. Stranhe thing is that in ArcMap The values is different


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings