how to customize open configuration form?

Discussion in 'Cadence' started by Bernd Fischer, Mar 29, 2006.

  1. Hi,

    Any ideas how to customize open configuration form
    during the startup?

    I want to have the hierarchy editor and the schematic
    editor open for the config view.
    And not tick every time the radio button.

    I have not found any .cdsenv variable for doing this
    so far.

    The form variable is called 'hePromptForm' and the form fields
    are
    hePromptForm->editTopCV
    hePromptForm->editCfg

    But I haven't found out how to initialize the form during startup.

    There are some he* functions in the ddserv.cxt but even
    this does not help me out here.


    Bernd
     
    Bernd Fischer, Mar 29, 2006
    #1
  2. You can't. It's created on the fly by a function which recreates the form,
    with the previous form settings, or if it doesn't exist, has hardcoded defaults
    of "no" and "yes" for the two questions.

    Potentially you could kludge this by creating a form with the same name,
    with the two fields, initialized to the values you want, and then it will delete
    it and recreate the real one with the same values. But that's a horrible hack,
    and might break in future.

    I'll create an SR and file a PCR for this to be controlled by a cdsenv setting.

    Andrew.
     
    Andrew Beckett, Mar 31, 2006
    #2
  3. Bernd Fischer

    fogh Guest


    Hi Bern,

    I did not find any env var either. The form is initialised by
    hePromptUser . hePromptUser is normaly called by heDataTrigger so you
    would need a config view to initialise this way during startup. I would
    say, don t bother: just make a DPL with the form name, and put in the
    DPL the values you want.

    ;;dds hierarchy editor cdsinit , default the open config radio buttons.
    hePromptForm=list(()) hePromptForm->editTopCV=list(())
    hePromptForm->editCfg=list(())
    hePromptForm->editTopCV->value="yes"
    hePromptForm->editCfg->value="yes"

    That may just work... I did not try. BTW, I wonder wether you can write
    hePromptForm=hePromptForm->editTopCV=list(())
    or rather
    hePromptForm->editTopCV=hePromptForm=list(())
     
    fogh, Mar 31, 2006
    #3
  4. This won't work. I tried doing something similar, but the code does an
    hiDeleteForm on the structure, and that will fail with an error, given a DPL
    instead of a form defstruct instance..

    Andrew.
     
    Andrew Beckett, Apr 2, 2006
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.