Schematic Composer :: Is it possible to force users to use a particulargrid

Discussion in 'Cadence' started by Suresh Jeevanandam, Dec 15, 2005.

  1. Hi,
    I want to set a min grid for a design library and force the users to
    use this as the min grid.

    However, I could not find a direct solution. But, I did this by writing
    a small grid checker program and call that every time user does check
    and save -- by registering my callback with schRegPostCheckTrigger().

    Can anybody suggest a better way of doing this, if any.

    regards,
    Suresh
     
    Suresh Jeevanandam, Dec 15, 2005
    #1
  2. Suresh Jeevanandam

    svenn.are Guest

    We have some converted designs that use a finer grid than the standard
    Cadence setting. The CAD group offered a bindkey to switch between the
    finer grid and standard grid so that the motivation to stay in
    "standard" grid is larger.

    I am amazed at the level of accetance some designers have towards
    sloppines in the way they use the tool vs. their pedantic opinions
    towards use of transistors in designs.

    But "forcing" such a guy to do anything is counterproductive. Offer a
    macro to make it easier to clean up the mess.

    Just my opinion.
     
    svenn.are, Dec 15, 2005
    #2
  3. Just putting this line in the design library's libInit.il file solves
    the problem.

    schSetEnv("schSnapSpacing" 0.0625)

    (But still user can open the options form and modify it.)

    regards,
    Suresh
     
    Suresh Jeevanandam, Dec 15, 2005
    #3
  4. This is the code you are looking for to disalbe
    editing in the grid and snap setting fields in the options form.


    unless( boundp( 'schDisplayOptionsForm )
    schCreateDisplayOptionsForm( )
    hiInstantiateForm( schDisplayOptionsForm )
    ) ;; unless
    hiSetFieldEditable( schDisplayOptionsForm->gridSpacing nil )
    hiSetFieldEditable( schDisplayOptionsForm->gridMultiple nil )
    hiSetFieldEditable( schDisplayOptionsForm->snapSpacing nil )


    Bernd
     
    Bernd Fischer, Dec 15, 2005
    #4
  5. Thank you all for the help.
    regards,
    Suresh
     
    Suresh Jeevanandam, Dec 19, 2005
    #5
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.