• 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. How can drop an auto via?

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 143
  • Views 18783
  • 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

How can drop an auto via?

ssram
ssram over 9 years ago

There is an existing option in layout to drop automatic via, but this isnt completely automatic, i need to access it through the Creat Via form like "Create->Via->Auto->Hide". But how can i avoid accessing this form itself? I just want to press a key that calls the function to create the auto via and then just by clicking on the metals in layout, it should just drop the via.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Make your bind key have these three space-separated commands:

    leSetEnv("viaMode" "Auto") hiEnqueueCmd("hiToggleEnterForm()") leHiCreateVia()

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ssram
    ssram over 9 years ago
    Thanks Andrew! This works good.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ssram
    ssram over 9 years ago

    I was trying to add the bindkey as:

    hiSetBindKey("Layout" "<Key>KP_Enter" "leSetEnv("viaMode" "Auto") hiEnqueueCmd("hiToggleEnterForm()") leHiCreateVia()")

    But this seems to be not working for me! But if i execute just the line that you have sent in CIW, it works. Is there something that i'm missing?

    Thanks

    Sooraj

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 9 years ago

    Hi Sooraj,

    You will need to escape the double quotes within the callback string, e.g.

    
    hiSetBindKey("Layout" "KP_Enter" "leSetEnv(\"viaMode\" \"Auto\") hiEnqueueCmd(\"hiToggleEnterForm()\") leHiCreateVia()")
    

    Best regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ssram
    ssram over 9 years ago

    Oops! My bad... Thanks Lawrence, this works!

    I cant be this silly :-(

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • lrlsk
    lrlsk over 9 years ago

    Hi Lawrence,  

    what if I wanted to change also other default environment values in the form e.g. I want to select with drawn box instead of single select point?  Can I have two leSetEnv commands inside of the hiSetBindkey?  

    Best Regards,

    lrlsk

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Hi lrlsk,

    Yes, you can have more than one leSetEnv() calls. Which options are you talking about - you can already draw the area with the middle mouse button using the bind key you have above (with Lawrence's corrections) (at least in IC616 ISR14). Not sure which version you're talking about either.

    So please be specific about what you want...

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • lrlsk
    lrlsk over 9 years ago

    Hi Andrew,

    Thanks for the quick reply and sorry that I forgot to mention I am using IC6.16 -64b version.  I tried the middle click and it works perfect. the only problem is I have a roller type middle mouse button so it rolls if I use it as push button.  I am talking about the option when you are already in via mode "auto"  there is sub option to choose between "by Single Point"  or "by Drawn Area".   By default it is on by Single Point  so I would like to shift it to "by Drawn Area" so I can still use my LMB to draw the selection box (That's how I believe it would behave but I'm not sure though)

    But this is sub option inside of another option so it might not be directly accessible via leSetEnv function.

    BR  ~lawrence

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Lawrence

    leSetEnv("viaMode" "Auto") leSetEnv("viaAutoQueryBy" "Drawn Area") leSetEnv("viaSelectAreaType" "selectRectArea") hiEnqueueCmd("hiToggleEnterForm()") leHiCreateVia()

    or if you want polygon area selection:

    leSetEnv("viaMode" "Auto") leSetEnv("viaAutoQueryBy" "Drawn Area") leSetEnv("viaSelectAreaType" "selectPolygonArea") hiEnqueueCmd("hiToggleEnterForm()") leHiCreateVia()

    Note that there's a bit of a problem where the F3 options form doesn't update to reflect the env var settings, but it does appear to work. Note also that these choices don't show up on the form by default either - you have to be using the "early access" option to get them (not going to mention that here, because that's something we generally speak to specific customers about).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • lrlsk
    lrlsk over 9 years ago

    Hi Andrew,

    Thanks.  this works perfect to me.

    Have a nice weekend.

    BR  lawrence

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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