SKILL Qn: How to get the user select only a particular obj type

Discussion in 'Cadence' started by Suresh Jeevanandam, Sep 27, 2005.

  1. Hi everyone,
    In SKILL, I want to tell the user "Select the net" and wait for the
    user to click on a net ( wire ). I have implemented this by,

    schSelectPoint(cw enterPoint(?prompts '("Click on the net")) nil nil 0)

    However, It would like to force the tool to select only the wire and
    not any other object type if there are something nearby.
    Any idea how this could be accomplished?

    Thanks in advance,

    regards,
    Suresh J
     
    Suresh Jeevanandam, Sep 27, 2005
    #1
  2. Maybe this will do the job > BFselectNet( )


    procedure( BFhilightSelNet( w done pts )
    when( done
    geDeselectAll( )
    geDeleteAllProbe( )
    geAddNetProbe(
    hiGetCurrentWindow( )
    list( "y0" "drawing" )
    car( pts )
    )
    )
    )

    procedure( BFselectNet( )
    enterPoint( ?prompts
    list( "Click on a net")
    ?doneProc "BFhilightSelNet"
    )
    )

    Bernd
     
    Bernd Fischer, Sep 28, 2005
    #2
  3. I forgot this is already implemented in the schematic composer
    "Design -> Probe -> Add Net ..."
    So if you don't want to use the SKILL way of doing it somehow
    embedded in other SKILL just use the schematic menu option!

    Bernd
     
    Bernd Fischer, Sep 28, 2005
    #3
  4. Suresh Jeevanandam

    satya Guest

    If you want to select the net to show in a form you could use
    (asiSelectNet 'fieldName ?prompt "Select Net")
     
    satya, Sep 28, 2005
    #4
  5. Thanks satya this is what I wanted.

    regards,
     
    Suresh Jeevanandam, Oct 3, 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.