Skip to main content
Solved

AutoCAD to GDB conversion Shape Length Attribute Lost

  • November 29, 2018
  • 5 replies
  • 36 views

Forum|alt.badge.img

Hi, Im trying to Convert a DFX file to a GDB. The CAD file is a repesntation of a Piping System. The conversion runs successfully but pipes that run vertically (along x axis) loose their shape length.

For the Reader in the format attribute tab: autocad_color, autocad_entity, autocad_layer, fme_attrib_info{}.field_value are checked.

I'm using FME Desktop 2014, AutoCAD 2013, ArcGIS/ArcScene 10.1

The DFX is 2007 Format

 

Best answer by lars_de_vries

FileGDB doesn't know its way with vertical lines. The SHAPE_Lentgh attributen is calculated in 2D. Thuis vertical lines won't receive a balie.

As @fkemminje proposes, you van use a LengthCalculator transformer to calculate the 3D length in a separate attribute. However you will need to adjust the transformer settings, because by default it will do a 2D calculation.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

f.kemminje
Contributor
Forum|alt.badge.img+11
  • Contributor
  • November 29, 2018

add length_calculator transformer and save length as an attribute, then you will get it for entire fme session


lars_de_vries
Forum|alt.badge.img+10
  • Best Answer
  • November 29, 2018

FileGDB doesn't know its way with vertical lines. The SHAPE_Lentgh attributen is calculated in 2D. Thuis vertical lines won't receive a balie.

As @fkemminje proposes, you van use a LengthCalculator transformer to calculate the 3D length in a separate attribute. However you will need to adjust the transformer settings, because by default it will do a 2D calculation.


Forum|alt.badge.img
  • Author
  • November 29, 2018

I tried a run with a length_calculator add and still didn't work. I even tried to run a conversion with the only transformers being a length_calculator and it still gave me 0's for pipes that run vertically, pipes that run horizontally come through fine. Attached is a screenshot of my work space without a length calculator. It my be doing something wrong when I add the Length Calculator. I am new to FME. Also note in the Parameters annotation box Z has been off set for each drawing. I dont know if this could be a problem. Workspace.PNG


lars_de_vries
Forum|alt.badge.img+10

I tried a run with a length_calculator add and still didn't work. I even tried to run a conversion with the only transformers being a length_calculator and it still gave me 0's for pipes that run vertically, pipes that run horizontally come through fine. Attached is a screenshot of my work space without a length calculator. It my be doing something wrong when I add the Length Calculator. I am new to FME. Also note in the Parameters annotation box Z has been off set for each drawing. I dont know if this could be a problem. Workspace.PNG

I don't see a LengthCalculator in the screendump. If it doesn't work, I would first check whether your lines are truly 3d.

Also you'll need to remember that the SHAPE_Length attribute won't change andere that you'll need a second attribute tot store the 3D length in.

Otherwise I would suggest tot share a sample of your dataset.


Forum|alt.badge.img
  • Author
  • November 30, 2018

FileGDB doesn't know its way with vertical lines. The SHAPE_Lentgh attributen is calculated in 2D. Thuis vertical lines won't receive a balie.

As @fkemminje proposes, you van use a LengthCalculator transformer to calculate the 3D length in a separate attribute. However you will need to adjust the transformer settings, because by default it will do a 2D calculation.

After looking at the help window for length_calculator, it says change Length Dimension to 3. This solved it. Thanks for pointing me in the right direction @lars_de_vries