Skip to main content
Solved

AutoCAD to GDB conversion Shape Length Attribute Lost


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.

View original
Did this help you find an answer to your question?

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

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
  • 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
cryan wrote:

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
  • November 30, 2018
lars_de_vries wrote:

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


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