• 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. Change path width with bindkey

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 145
  • Views 16070
  • 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

Change path width with bindkey

jwpm
jwpm over 10 years ago

Hello,

i want to change the width of a path while creating the path object with a bindkey.

i found a solution doing this job:

hiSetBindKey("Layout" "Alt<Btn4Down>" "hiToggleEnterForm() le0WireForm->wireWidth->value=le0WireForm->wireWidth->value+0.01 hiiToggleEnterForm(le0WireForm) ")

but i'm not happy with this solution because it opens every time the property editor. Do you know a skill function, which sets a property of the object directly when creating/drawing it?

Thank you for your help.

  • Cancel
Parents
  • psill000
    psill000 over 10 years ago

    Try this method:

    procedure(pathWid(widBool)

    grid = techGetMfgGridResolution(techGetTechFile(geGetEditCellView()))

    wid = obj~>width

    foreach(obj geGetSelSet()

    when(member(obj~>objType '("path" pathSeg")

    if(widBool then

    obj~>width = wid+2*grid

    else   obj~>width = max(2*grid wid-2*grid))

    )

    )

    sorry of there is some syntax error
    just wrote it quick

    another method  you might want to try than stepping by grid is to step by width

    define width (0.010 0.020 0.030 0.040)

    if 0.010 step to 0.020 and 0.020 to 0.030 etc...


    Paul

    If you need the script written better let me know

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • psill000
    psill000 over 10 years ago

    Try this method:

    procedure(pathWid(widBool)

    grid = techGetMfgGridResolution(techGetTechFile(geGetEditCellView()))

    wid = obj~>width

    foreach(obj geGetSelSet()

    when(member(obj~>objType '("path" pathSeg")

    if(widBool then

    obj~>width = wid+2*grid

    else   obj~>width = max(2*grid wid-2*grid))

    )

    )

    sorry of there is some syntax error
    just wrote it quick

    another method  you might want to try than stepping by grid is to step by width

    define width (0.010 0.020 0.030 0.040)

    if 0.010 step to 0.020 and 0.020 to 0.030 etc...


    Paul

    If you need the script written better let me know

    • 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