Home > Community > Forums > IC Packaging and SiP Design > Merge shapes using axlShapeMerge

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

 Merge shapes using axlShapeMerge 

Last post Tue, Apr 9 2013 12:43 PM by aCraig. 1 replies.
Started by kwlee 02 Apr 2013 01:49 AM. Topic has 1 replies and 8449 views
Page 1 of 1 (2 items)
Sort Posts:
  • Tue, Apr 2 2013 1:49 AM

    • kwlee
    • Not Ranked
    • Joined on Tue, Jun 14 2011
    • Posts 2
    • Points 40
    Merge shapes using axlShapeMerge Reply

    Hi

     Please give me anyone's advice...

    1. Using below code, I expect only shapes in some layer can be picked in obj, but obj contains shapes in all layers. Is it normal??

      axlSetFindFilter(?enabled "shapes" ?onButtons "shapes")
      axlVisibleDesign(nil)
      axlVisibleLayer("some layer" t) 
      axlSingleSelectBox()
      obj=axlGetSelSet()

     2. Certain layer is filled with many of shapes, How can I merge each other.. I'd like to merge all shapes, if they are connected each other.

     - I tried below code to do.. but it took too much time and not that successful.. since when I use 'axlShapeMerge(a b nil)', members of list b should be connected to a.. unless return error and skip this function... 

     allShapes = getAllshapes(some layer)
     foreach(shape allShapes
      when(shape->bBox
       axlClearSelSet()
       axlSingleSelectBox(shape->bBox)
       slist=axlGetSelSet()
       foreach(s slist
         when(axlShapeMerge(shape s 'check) shape = axlShapeMerge(shape s 'quiet) )
        ) 
      )
     ) 

    • Post Points: 20
  • Tue, Apr 9 2013 12:43 PM

    • aCraig
    • Top 50 Contributor
    • Joined on Sat, Aug 16 2008
    • Pepperell, MA
    • Posts 129
    • Points 2,125
    Re: Merge shapes using axlShapeMerge Reply

    Try this

    shapes = axlDBGetShapes(someLayer)

    axlShapesMerge(car(shapes) cdr(shapes) t 'quiet)

    It's possible that all shapes will NOT merge. Only shapes that overlap car(shapes) will merge. So you might need to run it a couple of times which shape has the most overlapping shapes.

    Craig

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by kwlee at 02 Apr 2013 01:49 AM. Topic has 1 replies.