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,
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)