Skip to main content
Question

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


Forum|alt.badge.img

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

Forum|alt.badge.img
  • February 6, 2018

Hi @sav426

you can use fme_basename attribute value.


Forum|alt.badge.img
  • Author
  • February 6, 2018

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

Thanks


Forum|alt.badge.img
  • February 6, 2018
sav426 wrote:

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.

 

 


Forum|alt.badge.img
  • Author
  • February 6, 2018

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


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