Skip to main content
Question

How to read the specific sheet from Excel Reader


Hi there,

 

I want to know if there is any method to read specific sheet only by using Excel Reader, e.g. I have multiple Readers in the same workspace to input various datasets, one is EXCEL, the other is IFC. If I want to read the sheet whose name is the same as my IFC Reader's source data name. Any method to achieve this? I guess fme_basename helps, but not sure how to achieve this.

 

Thanks in advance.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • June 22, 2021

If you use a FeatureReader rather than a regular reader to read the excel file, you can use the IFC source data name as a parameter in the FeatureReader


  • Author
  • June 23, 2021
ebygomm wrote:

If you use a FeatureReader rather than a regular reader to read the excel file, you can use the IFC source data name as a parameter in the FeatureReader

Hi @ebygomm​ , thanks for your reply! As I'm real newbie for this, may you please elaborate a bit more?

For example, my IFC source data name is: CE1314-ACM-C4_BD-PG_AC-AR-M3_N.ifc; while one of the worksheet name in the EXCEL is C4_BD-PG_AC-AR-M3_N. I need to extract part of IFC name which matches with the related worksheet's name. I tried "@Trim($(SourceDataset_IFC)$(SourceDataset_XLSXR))" for Feature Types to Read setting but failed.

Excel Reader setting


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