1
$\begingroup$

I am currently working on a CDF in which users can change parameters of a 3D surface with Manipulate[]. Once the user is satisfied with the choice of parameters, I would like to offer an option to export and download the surface in the .stl format (for 3D printing). In a regular Mathematica notebook I can do this with the Export[] command, but I am not sure how to achieve this from within a CDF web player simulation? Is there a way to prompt a file download after, say, a Manipulate[]-created button has been pressed?

$\endgroup$
2
  • $\begingroup$ You can use APIFunction to deploy an API that takes a set of parameters and generates the corresponding .stl file. You can link to it in your CDF with Hyperlink. $\endgroup$
    – C. E.
    Mar 31, 2016 at 20:12
  • $\begingroup$ If anybody has already ever exported something from a CDF (without the clipboard), it would be even a interesting answer. $\endgroup$
    – andre314
    Apr 1, 2016 at 19:07

1 Answer 1

1
$\begingroup$

I think the only way to get such information out of a CDF document is to use the CopyToClipboard function on a list and then paste into a text file (followed by maybe a bit of editing or post-processing). And I certainly hope this approach isn't taken away. I'd have to totally give up on CDF's if that were to happen.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.