Skip to main content
Solved

Using DateTimeStamper with FeatureWriter


larue
Contributor
Forum|alt.badge.img+8
  • Contributor

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​ 

 

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

4 replies

nielsgerrits
VIP
Forum|alt.badge.img+55

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+8
  • Author
  • Contributor
  • December 31, 2023
nielsgerrits wrote:

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+8
  • 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+55
larue wrote:

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!


Reply


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