Home > Community > Forums > PCB Design > SKILL script to create symbol origin marker

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 SKILL script to create symbol origin marker 

Last post Sun, Dec 22 2013 11:04 AM by eDave. 6 replies.
Started by chads108 01 Nov 2013 11:53 AM. Topic has 6 replies and 2936 views
Page 1 of 1 (7 items)
Sort Posts:
  • Fri, Nov 1 2013 11:53 AM

    • chads108
    • Top 25 Contributor
    • Joined on Thu, Mar 29 2012
    • Plano, TX
    • Posts 199
    • Points 3,490
    SKILL script to create symbol origin marker Reply

     Anybody have a SKILL script that will make a small circle with crosshairs, at the symbol origin on PACKAGE GEOMETRY/BODY_CENTER, that will run from inside the symbol editor?

    • Post Points: 20
  • Sun, Nov 3 2013 7:31 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 750
    • Points 16,220
    Re: SKILL script to create symbol origin marker Reply

    You can use axlDBCreateCircle and axlDBCreateLine. eg:

    defun( MyCreateOriginTarget (radius)

    axlDBCreateCircle(list(0:0, radius), 0.0, "PACKAGE GEOMETRY/BODY_CENTER")

    axlDBCreateLine(list(0:-radius, 0:radius), 0.0, "PACKAGE GEOMETRY/BODY_CENTER")

    axlDBCreateLine(list(-radius:0, radius:0), 0.0, "PACKAGE GEOMETRY/BODY_CENTER")

    )

     

    Dave Elder, Tait Communications
    • Post Points: 35
  • Fri, Nov 15 2013 11:20 AM

    • chads108
    • Top 25 Contributor
    • Joined on Thu, Mar 29 2012
    • Plano, TX
    • Posts 199
    • Points 3,490
    Re: SKILL script to create symbol origin marker Reply

    What changes if I want to add width to the circle and line that get drawn?

    • Post Points: 20
  • Fri, Nov 15 2013 11:33 AM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 750
    • Points 16,220
    Re: SKILL script to create symbol origin marker Answer Reply

    defun( MyCreateOriginTarget (radius, @optional (lineWidth 0.0))

    axlDBCreateCircle(list(0:0, radius), lineWidth, "PACKAGE GEOMETRY/BODY_CENTER")

    axlDBCreateLine(list(0:-radius, 0:radius), lineWidth, "PACKAGE GEOMETRY/BODY_CENTER")

    axlDBCreateLine(list(-radius:0, radius:0), lineWidth, "PACKAGE GEOMETRY/BODY_CENTER")

    )

    Dave Elder, Tait Communications
    • Post Points: 20
  • Fri, Nov 15 2013 11:42 AM

    • chads108
    • Top 25 Contributor
    • Joined on Thu, Mar 29 2012
    • Plano, TX
    • Posts 199
    • Points 3,490
    Re: SKILL script to create symbol origin marker Reply

     Thanks Dave.  I figured it out about 5 minutes after I posted.  Should have looked at the SKILL reference manual first.

    • Post Points: 5
  • Fri, Dec 20 2013 1:53 PM

    • Les Wong
    • Not Ranked
    • Joined on Thu, May 20 2010
    • Sunnyvale, CA
    • Posts 16
    • Points 275
    Re: SKILL script to create symbol origin marker Reply

     Dave

    Is there still a skill library we can download skill code people have written ?

     

    Thanks,

    Les

    • Post Points: 20
  • Sun, Dec 22 2013 11:04 AM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 750
    • Points 16,220
    Re: SKILL script to create symbol origin marker Reply

    Support Home Resources SKILL Information Allegro SKILL Code Library

    I'm not sure who maintains this.

    Dave Elder, Tait Communications
    • Post Points: 5
Page 1 of 1 (7 items)
Sort Posts:
Started by chads108 at 01 Nov 2013 11:53 AM. Topic has 6 replies.