• 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. DEHDL SKILL active drawing function

Stats

  • Replies 1
  • Subscribers 159
  • Views 12274
  • Members are here 0
More Content

DEHDL SKILL active drawing function

arge
arge over 14 years ago

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

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 13 years ago

    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 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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