• 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. Adjust rubberbandding path

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 144
  • Views 14155
  • 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

Adjust rubberbandding path

RVERP
RVERP over 12 years ago

Hi,

I have created several skill procedures that draw cutom paths.  The problem is that I don't see a preview while drawing the path, only a rubberbanding path with always has a with of 1.

Idealy, I would see a preview while adding points to the path (like in the Create Path and create Multipart path functions).

I hear you think, why don't you just make a multipart path template, but I want to use an options form to set different parrameters instead of having a huge list with template flavors.

 

Thx

Rik

  • Cancel
Parents
  • lrlsk
    lrlsk over 12 years ago

    Hi Rik,

     I think Derek is right. if you are using enterPath then you should be able to update the rubberband preview as you like. below is an example

    procedure( createBuschangeStat()
     changeEnterFun(
         'enterPath ?prompts list("Enter Points","Enter next Point")
                ?form BusForm
         ?points prevPoints
         ?addPointProc "ListPrevPts"
         ?delPointProc "ListPrevPts"
               ?doneProc "DlgLayCreateBus"
         ?pathWidth BusForm~>busWidth~>value
         ?cmdName "bbbb"
                      )
        t
        )

     this is just the callback procedure in a createBus skill. the rubberband width is defined by the ?pathWidth which is kept updated everytime a user changes one of the input (for example width of wire or spacing between wires of a bus channel).

    The cmdName "bbbb" I have used to avoid nesting of enterfunction, in-case user hits the assigned bindkey several times.

     I hope this helps.

    BR ~lrlsk

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • lrlsk
    lrlsk over 12 years ago

    Hi Rik,

     I think Derek is right. if you are using enterPath then you should be able to update the rubberband preview as you like. below is an example

    procedure( createBuschangeStat()
     changeEnterFun(
         'enterPath ?prompts list("Enter Points","Enter next Point")
                ?form BusForm
         ?points prevPoints
         ?addPointProc "ListPrevPts"
         ?delPointProc "ListPrevPts"
               ?doneProc "DlgLayCreateBus"
         ?pathWidth BusForm~>busWidth~>value
         ?cmdName "bbbb"
                      )
        t
        )

     this is just the callback procedure in a createBus skill. the rubberband width is defined by the ?pathWidth which is kept updated everytime a user changes one of the input (for example width of wire or spacing between wires of a bus channel).

    The cmdName "bbbb" I have used to avoid nesting of enterfunction, in-case user hits the assigned bindkey several times.

     I hope this helps.

    BR ~lrlsk

     

    • 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