Home > Community > Forums > Custom IC Design > Exporting images for CDF forms to generate cellview documentation

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Exporting images for CDF forms to generate cellview documentation 

Last post Thu, Jun 20 2013 8:09 AM by Herge. 8 replies.
Started by Herge 18 Jun 2013 12:37 PM. Topic has 8 replies and 1218 views
Page 1 of 1 (9 items)
Sort Posts:
  • Tue, Jun 18 2013 12:37 PM

    • Herge
    • Top 500 Contributor
    • Joined on Fri, May 8 2009
    • Oudenaarde, Belgium
    • Posts 17
    • Points 235
    Exporting images for CDF forms to generate cellview documentation Reply

    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 ? 

     

    Filed under: , , ,
    • Post Points: 20
  • Tue, Jun 18 2013 12:47 PM

    • theopaone
    • Top 75 Contributor
    • Joined on Tue, Feb 12 2013
    • Cedar Park, TX
    • Posts 80
    • Points 1,190
    Re: Exporting images for CDF forms to generate cellview documentation Reply

     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.

    Ted

    • Post Points: 20
  • Wed, Jun 19 2013 12:05 AM

    • Herge
    • Top 500 Contributor
    • Joined on Fri, May 8 2009
    • Oudenaarde, Belgium
    • Posts 17
    • Points 235
    Re: Exporting images for CDF forms to generate cellview documentation Reply

    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. 

    • Post Points: 20
  • Wed, Jun 19 2013 12:38 AM

    Re: Exporting images for CDF forms to generate cellview documentation Reply

    This works:

    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.

    Regards,

    Andrew.

    • Post Points: 35
  • Wed, Jun 19 2013 9:03 AM

    • theopaone
    • Top 75 Contributor
    • Joined on Tue, Feb 12 2013
    • Cedar Park, TX
    • Posts 80
    • Points 1,190
    Re: Exporting images for CDF forms to generate cellview documentation Reply

     Thank you Andrew

    I didn't know that they had updated the CDF form. That is great news.

    Ted

    • Post Points: 5
  • Wed, Jun 19 2013 9:24 AM

    • Herge
    • Top 500 Contributor
    • Joined on Fri, May 8 2009
    • Oudenaarde, Belgium
    • Posts 17
    • Points 235
    Re: Exporting images for CDF forms to generate cellview documentation Reply
    OK, Andrew, very nice. Thank you. The next question is how to fire the CDF form programmatically. I had no time to look yet, I expect their will be a GUI function allowing to popup the CDF form for a selected instance in an open cellview. Is that so ? Any suggestion.
    • Post Points: 20
  • Thu, Jun 20 2013 7:56 AM

    • berndfi
    • Top 100 Contributor
    • Joined on Tue, Sep 11 2012
    • Neubiberg, Bavaria
    • Posts 67
    • Points 1,255
    Re: Exporting images for CDF forms to generate cellview documentation Reply

     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 see
    the 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.

    • Post Points: 20
  • Thu, Jun 20 2013 8:03 AM

    Re: Exporting images for CDF forms to generate cellview documentation Reply

    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.

    Regards,

    Andrew.

    • Post Points: 20
  • Thu, Jun 20 2013 8:09 AM

    • Herge
    • Top 500 Contributor
    • Joined on Fri, May 8 2009
    • Oudenaarde, Belgium
    • Posts 17
    • Points 235
    Re: Exporting images for CDF forms to generate cellview documentation Reply

    Andrew, Bernd,

     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. 

    • Post Points: 5
Page 1 of 1 (9 items)
Sort Posts:
Started by Herge at 18 Jun 2013 12:37 PM. Topic has 8 replies.