• 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 to get points from pathSeg ?

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 144
  • Views 15588
  • 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 to get points from pathSeg ?

skillProgram14
skillProgram14 over 11 years ago

Hi,

I made simple script which put automaticaly ruller on all selected pathes.

But if the path is created as pathSeg I have a problem to get the points.

There are just beginPt and endPt for each segment. :( 

Is there anybody who can help me with it ?

The script should do same as for pathes:

(if you select couple of pathes and call script....it puts ruller on each of selected pathes)

procedure( Ruler_on_Path()
prog((winId cvId selObj)
winId = hiGetCurrentWindow()
cvId = getEditRep(winId)
selObj = geGetSelSet(cvId)
if(selObj then
        foreach(shape selObj
                case( shape~>objType                  
                ("path"
                points = shape~>path
                leCreateRuler(cvId points)
                )
                );case
                );foreach
                );if
    );prog
);procedure

 

Thanks for any advice.

Robert

 

 

  • Cancel
Parents
  • skillProgram14
    skillProgram14 over 11 years ago

     Hi Li, 

     Thx for you replay.I have tired similar thing before but there are some issues:

    1. How to get all routing objects .... you are right if you draw U shape you have 3 route objects

    so if you call  css()~>route~>??

    you get objects (db:0x1997d2d0 db:0x1997d2cf db:0x1997d2ce)

    unfortunately it works just sometimes.

    Tried to copy this U shape and do css()~>route~>??

    you will only get one objects (db:0x1997d2cd) even you selected all route object ....

    Strange ? yes it is :(

    2. issue is, if I make a loop for route object and get all segmets points

    I will have a problem with the order, it depands how you selected the path,

    First segment you touch, it's go first, so its hard to take this points 

    for ruller.

    3. Issue is that ,if you have more than one selected path in your layout it will take

    all selected segment pathes. Here I can see solution to make first a group - list

    for each path  ....each list will include objects only from path ... but it will work

    only if 1. is solved :(

     

    SOLUTION: Best solution would be if I can virtualy merge the pathSeg to path

    like Im doing now if I realy need it, but it;s very stupid solution, because you need to

    have your layout in edit mode and you are changing original .... :( and also if you use

    DesSync it's check out cell. 

    cvId = getEditRep(winId)
            selObj = geGetSelSet(cvId)
            if(selObj then
            foreach(shape selObj
                    case( shape~>objType

                                           ("pathSeg"
                                           leHiMerge()
                                           ))))

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • skillProgram14
    skillProgram14 over 11 years ago

     Hi Li, 

     Thx for you replay.I have tired similar thing before but there are some issues:

    1. How to get all routing objects .... you are right if you draw U shape you have 3 route objects

    so if you call  css()~>route~>??

    you get objects (db:0x1997d2d0 db:0x1997d2cf db:0x1997d2ce)

    unfortunately it works just sometimes.

    Tried to copy this U shape and do css()~>route~>??

    you will only get one objects (db:0x1997d2cd) even you selected all route object ....

    Strange ? yes it is :(

    2. issue is, if I make a loop for route object and get all segmets points

    I will have a problem with the order, it depands how you selected the path,

    First segment you touch, it's go first, so its hard to take this points 

    for ruller.

    3. Issue is that ,if you have more than one selected path in your layout it will take

    all selected segment pathes. Here I can see solution to make first a group - list

    for each path  ....each list will include objects only from path ... but it will work

    only if 1. is solved :(

     

    SOLUTION: Best solution would be if I can virtualy merge the pathSeg to path

    like Im doing now if I realy need it, but it;s very stupid solution, because you need to

    have your layout in edit mode and you are changing original .... :( and also if you use

    DesSync it's check out cell. 

    cvId = getEditRep(winId)
            selObj = geGetSelSet(cvId)
            if(selObj then
            foreach(shape selObj
                    case( shape~>objType

                                           ("pathSeg"
                                           leHiMerge()
                                           ))))

    • 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