Home > Community > Forums > PCB SKILL > Layer above & below

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: *

 Layer above & below 

Last post Tue, Nov 5 2013 12:56 AM by eDave. 1 replies.
Started by WalterX 01 Nov 2013 10:11 AM. Topic has 1 replies and 2660 views
Page 1 of 1 (2 items)
Sort Posts:
  • Fri, Nov 1 2013 10:11 AM

    • WalterX
    • Not Ranked
    • Joined on Thu, Oct 31 2013
    • Posts 5
    • Points 200
    Layer above & below Reply

     Using Skill: Having a DBID of a cline seg - how can I turn on the layer above and the layer below this seg?

    • Post Points: 20
  • Tue, Nov 5 2013 12:56 AM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: Layer above & below Reply
    Try:

    defun( MakeVisibleAdjacentLayers (clineDBID)
     let((subclass, etchSubclasses, clineIndex)
    subclass = cadr(parseString(clineDBID ->layer, "/"))
    etchSubclasses = axlSubclasses("ETCH")
    clineIndex = listnindex(etchSubclasses, subclass)
    unless(subclass == axlConductorTopLayer(); Turn on the layer above
    adjacentClass = nth(clineIndex - 1, etchSubclasses)
    axlVisibleLayer(strcat("ETCH/", adjacentClass), t)
    axlVisibleLayer(strcat("PIN/", adjacentClass), t)
    axlVisibleLayer(strcat("VIA CLASS/", adjacentClass), t)
    )
    unless(subclass == axlConductorBottomLayer(); Turn on the layer below
    adjacentClass = nth(clineIndex + 1, etchSubclasses)
    axlVisibleLayer(strcat("ETCH/", adjacentClass), t)
    axlVisibleLayer(strcat("PIN/", adjacentClass), t)
    axlVisibleLayer(strcat("VIA CLASS/", adjacentClass), t)
    )
    axlVisibleUpdate(t)
    ))
    Dave Elder, Tait Communications
    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by WalterX at 01 Nov 2013 10:11 AM. Topic has 1 replies.