• 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. Can I draw a reference line in virtuoso?

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 16427
  • 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

Can I draw a reference line in virtuoso?

richardyuan
richardyuan over 8 years ago

I mean a reference line that do not use drawing layer and do not stream out to GDS, just a line for reference.

The ruler is OK, but I don't like the numbers and segments, I just want a pure line.

Is there any skill function to do that?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    A couple of approaches. One would be to use dbCreateLine, and then create it on a layer-purpose that is not streamed out. Another one is to use:

    dbCreateMarker(geGetEditCellView() "Reference Line" "Experiment" list(0:0 10:4) nil t nil)

    and maybe:

    pteSetVisible("Markers" t "Objects")

    to ensure they're visible by default. You can then see them in the annotation browser too - I just made the message "Reference Line" and the tool "Experiment" - but you can play with that of course.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • richardyuan
    richardyuan over 8 years ago

    This is really helpful hints. Thank you, Andrew.

    And I want furthermore a ruler-like behavor for my action:

    When I click one point in the cellview, it can give a line-handler ready to move around, then when I move the mouse and click another point, the handler released and a line is draw between the two points.

    Can this be realised in skill script?

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

    How about this?

    /* CCFenterRefLine.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Dec 02, 2016 
    Modified   
    By         
    
    Example of a enter function to prompt you to enter two points,
    and then to create a marker as the result. Might want to use:
    
    pteSetVisible("Markers" t "Objects")
    
    to ensure they are visible.
    
    Call CCFenterRefLine() to prompt the user to create the marker line.
    
    ***************************************************
    
    SCCS Info: @(#) CCFenterRefLine.il 12/02/16.10:03:27 1.1
    
    */
    
    procedure(CCFenterRefLineCB(wid ok points)
        let((cv)
            when(ok && wid
                cv=geGetEditCellView(wid)
                dbCreateMarker(cv "Reference Line" "CCFenterRefLine" 
                    points nil t nil)
            )
        )
    )
    
    procedure(CCFenterRefLine()
        enterLine(
            ?prompts list("Enter first point" "Enter second point")
            ?wantPoints 2
            ?doneProc "CCFenterRefLineCB"
            ?cursor hicTCross ;hicCreateRulerEdge
        )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • richardyuan
    richardyuan over 8 years ago
    Thank you, Andrew, It works fine.
    • 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