Skip to main content
Solved

Using DateTimeStamper with FeatureWriter

  • December 31, 2023
  • 4 replies
  • 64 views

larue
Contributor
Forum|alt.badge.img+11

Is there any easy way to add a date stamp to output file names when using the FeatureWriter? I am outputting Excel files that have multiple tabs with multiple separate inputs, from multiple data sources. The only way I could figure out how to do this without the FeatureWriter splitting up the different feature types into separate files is to add the DateTimeStamper to each data source, make sure it is kept all through the Workspace, and then take off the _timestamp attribute from each Feature Type in the Attribute list on the FeatureWriter. What a pain! Surely there is a better way? I tried to create a User Parameter, but it did not work. Any hints on this?

 

Thanks,

 

-L

Best answer by larue

Found it!

 Very slick, I had never used a script as User Parameter before. Thanks and Happy New Year @nielsgerrits​ !

 -@larue​ 

 

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.

4 replies

nielsgerrits
VIP
Forum|alt.badge.img+61

I use a python scripted parameter to do this. On mobile right now so no samples, but I have answered this question before on the forum.


larue
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • December 31, 2023

I use a python scripted parameter to do this. On mobile right now so no samples, but I have answered this question before on the forum.

Ok, I'll check the forums...again. Do recall what the post was?

Thanks,

-L


larue
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • Best Answer
  • December 31, 2023

Found it!

 Very slick, I had never used a script as User Parameter before. Thanks and Happy New Year @nielsgerrits​ !

 -@larue​ 

 


nielsgerrits
VIP
Forum|alt.badge.img+61

Found it!

 Very slick, I had never used a script as User Parameter before. Thanks and Happy New Year @nielsgerrits​ !

 -@larue​ 

 

Cheers and happy newyear!