Home > Community > Forums > PCB SKILL > DEHDL SKILL active drawing function

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

 DEHDL SKILL active drawing function 

Last post Wed, May 9 2012 4:30 PM by eDave. 1 replies.
Started by arge 15 Sep 2010 12:00 AM. Topic has 1 replies and 1880 views
Page 1 of 1 (2 items)
Sort Posts:
  • Wed, Sep 15 2010 12:00 AM

    • arge
    • Not Ranked
    • Joined on Tue, Aug 24 2010
    • Eindhoven, Netherlands
    • Posts 6
    • Points 90
    DEHDL SKILL active drawing function Reply

    Hello,

     

    In the Allegro Design Entry HDL SKILL reference guide, I can obtain the active drawing with the cnFindActiveDwg function. When I want to collect all bodies, wires, arcs, etc, I see that I only can collect these items from the active drawing.

    Is there a function in SKILL to change the active drawing, so that I can obtain these primitve objects from another drawing in my project ?

     

    Thanks in advance,

     

    arge

    • Post Points: 20
  • Wed, May 9 2012 4:30 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 717
    • Points 15,535
    Re: DEHDL SKILL active drawing function Reply

    Hi Arge,

    I think you can do this something like this (where the handle is predefined) 

     

    dwgInfo = cnGetDwgInfo(handle)

    dwgObjs = cnGetDwgs(dwgInfo)

    dwgObj = car(dwgObjs); need to have a user selection here!

    dwgName = cnGetDwgFullName(dwgObj)

    libName = cnGetDwgName(dwgObj)

    viewName = cnGetDwgView(dwgObj)

    version = cnGetDwgVersion(dwgObj)

    page = cnGetDwgPage(dwgObj)

    cncptCmd = sprintf(nil, "edit %s.%s.%d.%d", libName, viewName, version, page)

    cnSendCommand(handle cncptCmd)

     

    Dave 

     

    Dave Elder, Tait Communications
    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by arge at 15 Sep 2010 12:00 AM. Topic has 1 replies.