Question

Importing Multiple (Simultaneously) DXF Files (to Smallworld) and need to have an attribute named by each source DXF

  • 6 February 2018
  • 4 replies
  • 4 views

Badge

Hello,

I am importing multiple DXF files into Smallworld from DXF files created from an old Trimble unit.

The DXF files will always have a unique name but can be brought in as a single reader. Id like to know if there is a way to get a remarks field to fill by the unique DXF file for each of the points.

If I make the field populate by the $(SourceDataset_ACAD) parameter it brings in whole directory path which is not needed.

Anyone have any suggestions?

Thanks in advance.

Savas


4 replies

Badge

Hi @sav426

you can use fme_basename attribute value.

Badge

Hi Lena I dont see that in the list, can i just add $(FME_BASENAME) ?

Thanks

Badge

Hi Lena I dont see that in the list, can i just add $(FME_BASENAME) ?

Thanks

You can either expose this attribute through source feature type Properties > Format Attributes or use AttributeExposer transformer. fme_basename is one of the FME generic format attributes, it is added to all features read by Readers, however, it is usually not exposed by default.

 

Besides, if necessary you could read all your source dxf-files with a single Reader: features will get fme_basename values from their original file-names.

 

 

Badge

THANK YOU!! I forgot about attribute exposer! thanks!!

Reply