• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. pass argument to enterPoints procedure

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 15945
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

pass argument to enterPoints procedure

mantang
mantang over 5 years ago

Hi

How do I pass extra arguments "theForm" and "instances" of CCSbtnFld1CB to addPointProc and doneProc ?  (w done pts) or (w plist) are default argument. The example in SKILL manual does not show the solution.

inst_sel = hiCreateButton(
      ?name concat('inst_sel i)
    ; ?buttonText "Select instances from the schematic"
    ?buttonText "Select"

  ; ?callback "CCSbtnFld1CB(hiGetCurrentForm())"
  ; ?callback list("CCSbtnFld1CB(hiGetCurrentForm() i)")

    ?callback list(
         sprintf(nil
         "CCSbtnFld1CB(hiGetCurrentForm() 'instances%d)"
          i
          )
       )
)

procedure(CCSbtnFld1CB(theForm instances)
   let( ()

     enterPoints(
     ?prompts list("Click to select instances in the cellview. Press Esc key when done with selections")
    ?addPointProc "CCSAddPtCB"
    ?doneProc "CCSPointsDone"
     );enterPoints
);let
);procedure

procedure( CCSPointsDone( w done pts)
unless( done
   get(ExampleForm instances)->value = buildString(
      setof(obj geGetSelSet()  
      and(obj~>objType=="inst"
      obj~>purpose!="pin"))~>name)
);unless
t
);procedure

procedure( CCSAddPtCB( w ptlist )

geSelectPoint(w car(last(ptlist)))
);procedure

Thanks,

ManChak

  • Cancel
Parents
  • mbracht
    mbracht over 5 years ago

    Hi Mantang,

    The answer is simple - you can't. Those callbacks defined in enterPoints(..) are always called with exactly those three respectively two arguments. That's why yo get an error when you don't implement them expecting just these arguments. So to get at the current form you'll have to issue hiGetCurrentForm(..) and geGetWindowCellView()~>instances and assign the return values to local variables.

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • mbracht
    mbracht over 5 years ago

    Hi Mantang,

    The answer is simple - you can't. Those callbacks defined in enterPoints(..) are always called with exactly those three respectively two arguments. That's why yo get an error when you don't implement them expecting just these arguments. So to get at the current form you'll have to issue hiGetCurrentForm(..) and geGetWindowCellView()~>instances and assign the return values to local variables.

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information