-
FlexPro
- Zoom sur FlexPro
- Fonctionnalités & Options
- Domaines d’application
- Tous les avantages
- Nouveau dans FlexPro 2021
- Testez FlexPro gratuitement
- FlexPro View OEM Freeware
- Conseils d’achat
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produits
- News
- Support
- Société
- Emplois
- Contact
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
Automated export from formula to CSV file
- This topic has 2 replies, 2 voices, and was last updated 12 years, 5 months ago by norbert.bakkers@lr.org.
-
AuthorPosts
-
June 19, 2012 at 2:36 pm #12767norbert.bakkers@lr.orgParticipant
I’ve written a FlexPro function (in FlexPro script) with a number of arrays defined within the function e.g:
myTime = 0. # NumTimeSteps
myResult1 = 0. # NumTimeSteps
myResult2 = 0. # NumTimeSteps
myResult3 = 0. # NumTimeSteps
myResult4 = 0. # NumTimeSteps
myResult5 = 0. # NumTimeStepsThen I populate them with data.
I would then like to export the resulting arrays into CSV files from within the formula. The formula will be called multiple times, so I would like the process to be as automated as possible.
What would be the best way to go about this?
June 19, 2012 at 2:36 pm #8433norbert.bakkers@lr.orgParticipantI’ve written a FlexPro function (in FlexPro script) with a number of arrays defined within the function e.g:
myTime = 0. # NumTimeSteps
myResult1 = 0. # NumTimeSteps
myResult2 = 0. # NumTimeSteps
myResult3 = 0. # NumTimeSteps
myResult4 = 0. # NumTimeSteps
myResult5 = 0. # NumTimeStepsThen I populate them with data.
I would then like to export the resulting arrays into CSV files from within the formula. The formula will be called multiple times, so I would like the process to be as automated as possible.
What would be the best way to go about this?
June 25, 2012 at 12:42 pm #9242Bernhard KantzParticipantIf you want to automate the export you have to write a VBA macro.
Example:
…
Dim oFml As Formula
Set oFml = ThisDatabase.RootFolder.Object(“Formula”, fpObjectTypeFormula)
oFml.Export fpExportFormatCSV, “…Path…”
… -
AuthorPosts
- You must be logged in to reply to this topic.