For cellviews there exists a function "hiExportImage" which allows to generate an image file for a given cellview, opened in a (eventually hidden) window -- at least this is what I've understood. This should allow me to generate illustrations for all cells in a library automatically. Nice.
My question is about CDF forms : How could I automatically export images for CDF forms ? There is a "hiWindowSaveImage" function which can take handles to different types of objects including windows and forms. So the problem would boil down to getting the handle to the CDF form of interest. And here I am stuck -- I don't see how to programmatically get a handle to the CDF form associated to a particular cell.
Any suggestions ?
I use a snapshot tool like XV or one built into Gnome. I don't think the CDF editor has a window ID so I can't find it in a SKILL function.
Yes, that is the method I would like to avoid. My forms have "modes" (depending on some key parameters, the display of other parameters are activated or disactivated) and I'd like to automate the printing of snapshots for all these.
hiWindowSaveImage(?target hiGetCurrentForm() ?path "export.png" )
It won't work for the layout edit properties form (in IC615 and before, but it would for IC616 onwards) - because it's a Motif rather than "hi" (implemented in Qt) form - in IC616 that changes though.
So you should be able to do it this way.
Thank you Andrew
I didn't know that they had updated the CDF form. That is great news.