passing selected objects to a function called by bindkey

Discussion in 'Cadence' started by SS, Dec 9, 2005.

  1. SS

    SS Guest

    Hi All,
    I want to set a bindkey to call 2 functions. I am setting
    the bindkey as shown below

    hiSetBindKey("Layout" "None<Btn2Down>EF" "mouseAddPt()
    snapEdge(geGetSelSet(getCurrentWindow())")

    I am selecting 2 objects, the first object is selected with left mouse
    key. The second object is selected with middle mouse key. I want to
    pass the selected objects in the current window to the function
    snapEdge(). however only the first object selected gets passed not the
    second object. I can see both the objects getting selected in the
    window.

    I guess this is because mouseAddPt() and snapEdge() get called
    concurrently.

    Is there a way to get around this problem?

    thanks,
    Sriram
     
    SS, Dec 9, 2005
    #1
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.