• 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. Help regarding pop-push of a LIST

Stats

  • Locked Locked
  • Replies 37
  • Subscribers 150
  • Views 28833
  • 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

Help regarding pop-push of a LIST

Neeraj Vardhan
Neeraj Vardhan over 12 years ago

Hi,

I was trying to save my path coordinates as a list. But when i was trying to print the list of points, got errors "unbound variable-plist" . the code is mentioned below.

 

procedure(nvToGetMyLocation()

let((point plist)

cvw=getCurrentWindow()

point=hiGetPoint(cvw)

plist=append(plist list(point))

print(point)

print(plist)

); let

); procedure_nvToGetMyLocation

 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Neeraj,

    Did you try the suggestion in my previous post? You don't necessarily have to add the leSetEntryLayer() in your bindkey definition - it could just be used to end and re-start the path and you can change the layer using the LSW (after you've restarted the path creation, since it only actually uses the entry layer when the path is created at the end).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago
    Hi Andrew, I haven't tried it yet. I am Out of office today. I will try it and return back if i see any problem. Regards Neeraj
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago
    Andrew, I have tried your approach. But its very slow, the enterPath function has to end and recalled for every metal change. I am using a different approach, where i first save the path points and the entryLayer between the points. This makes my life simpler while routing. Is there any possible approach, where i use the enterPath function and it saves all the points for single click of mouse. and not depending on the direction change. Regards Neeraj
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Neeraj,

    I don't see it as being slow myself, but I'm not really sure what you're doing that is different from the code I sent. Maybe you could alter the  nvCreatePathDoneProc function so that rather than recording the list passed in each time, you record the new last point and add to the previous list - that would allow you to collect colinear points. However, using backspace to remove the last point wouldn't really work then, and it would be very confusing to the user, I think, unless you actually create the paths as you go along.

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago

    Andrew,

     I am saving all the points and the valid entry layer at that point first and then modifing the paths and via's according to the direction of the path is going. Yes, the way you mentioned also works great. I am currently trying it out to make sutable to what we want here.

    I just wanted to know why cant we add a mouse click co-ordinates also to the enterPath function. Just to improve my knowlege what could be possible wrong, if we do that.

    Regards

    Neeraj

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

    Hi Neeraj,

    This is probably because in general enterPath would be used to construct a single path, and co-linear points are not allowed in OA (and not desirable in CDB).

    So we don't (as far as I know) have any option to retain the co-linear points.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago

    Thanks Andrew,

     Hope then, am left with only the option you stated. To break between every change of layer. 

    Regards

    Neeraj 

    • 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