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.
In reply to theopaone:
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.
In reply to Herge:
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.
In reply to Andrew Beckett:
Thank you Andrew
I didn't know that they had updated the CDF form. That is great news.
You could either do this with"leHiEditProp()" on the layout side"schHiObjectProperty()" or on the schematic side.The point is that you have to have the instace for which you want to seethe properties selected.Another option would possilby be to use"leHiCreateInst()", "schHiCreateInst()", but then you have to populate the library, cell and view information to the form somehow.
In reply to berndfi:
I was going to answer similarly - although I wasn't sure what you meant by "CDF form" - none of the above are actually the "CDF form" - the closest would be Tools->CDF->Edit CDF in the CIW.
But I was guessing that you might have meant the edit properties form. But even then I was not sure whether you meant schematic or layout. And if Layout, it won't work (I think) until IC616.
I meant the object properties form in the schematic window ("the thing the user interacts with when inserting or modifying an instance"). From what I've understood, the outlooks are good then : fair chance that I can get it to do what I want. I'll try out next week. Thanks.