-
FlexPro
- At a Glance
- Features & Options
- Applications
- All Advantages
- What’s New in FlexPro 2021
- Try FlexPro For Free
- FlexPro View OEM Freeware
- Buying Guide
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Products
- News
- Support
- Company
- Contact
- Login
- Language
- +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, 6 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.