• 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. Allegro X PCB Editor
  3. Create VIA bei Mouse Click

Stats

  • Replies 8
  • Subscribers 159
  • Views 15009
  • Members are here 0
More Content

Create VIA bei Mouse Click

JuriV
JuriV over 4 years ago

Hello every body,

I am new in the Skill and I want to create a function, which place a VIA by Mouse Click.

For example the SKILL axlDBCreateVia("VIA_0P3", 3:3), creats a via at the x=3 and y=4.

Is it possible to replase 3:3 by Mouse Click?

I tried with axlSingleSelectPoint(), but this functions returnes x y, but not x:y

Thanks

  • Sign in to reply
  • Cancel
Parents
  • DavidJHutchins
    DavidJHutchins over 4 years ago

    I just tried the following in Allegro:

    skill '(axlDBCreateVia "V_C20P10_PLUG" (axlEnterPoint) nil nil nil nil)'

    which resulted in:

    (dbid:000000D853C49350 nil)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • JuriV
    JuriV over 4 years ago in reply to DavidJHutchins

    That nice. Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • JuriV
    JuriV over 4 years ago in reply to JuriV

    Hi DavidJHutchins,

    I am completlx new in SKILL.

    The SKILL expression axlDBCreateVia "VIA_0P5",10:6 place a Via to coordinates x=10 ans y =6

    In your example the Via will be placed by Mouse click, thats nice. Could you explain the construction:

    axlDBCreateVia "V_C20P10_PLUG" (axlEnterPoint) nil nil nil nil

    what is a meaning of the round brackets hier: (axlEnterPoint)?

    What is a meaning of nil nil nil nil?

    I have try with axlDBCreateVia "VIA_0P5" axlEnterPoint only. That works too.

    Many thanks for the help

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • JuriV
    JuriV over 4 years ago in reply to JuriV

    Another possibility is to create a function like this:

    procedure( add_via()

    List=axlEnterPoint()
    xValue=car(List)
    yValue=nth(1 List)
    axlDBCreateVia("VIA_0P5",xValue:yValue)
    )

    But I want expand it. The VIA shoud be be creates and hang on the cursor, but not placed. By Mouse click VIA shoud be placed.

    I am not sure how its works. Any Ideas?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • JuriV
    JuriV over 4 years ago in reply to JuriV

    Another possibility is to create a function like this:

    procedure( add_via()

    List=axlEnterPoint()
    xValue=car(List)
    yValue=nth(1 List)
    axlDBCreateVia("VIA_0P5",xValue:yValue)
    )

    But I want expand it. The VIA shoud be be creates and hang on the cursor, but not placed. By Mouse click VIA shoud be placed.

    I am not sure how its works. Any Ideas?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
Cadence Guidelines

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