1 Reply Latest reply on Mar 24, 2011 11:55 PM by Satoru

    How to batch-add silk-screen?

    feng.qiu

      I need to add 480 small squares, 20 in row and 24 in column, on silk-screen layer.

      how can I batch-add the squares rather than add them one-by-one?

      Thanks a lot.

        • 1. Re: How to batch-add silk-screen?
          Satoru

          Hi

           

          It becomes such a code.

           

              stX = 0

              stY = 0

              size = 0.5

           

              For X = 0 To 20

                  For Y = 0 To 24

                      PointArr(0, 0) = stX + (size * X):  PointArr(1, 0) = stY + (size * Y):  PointArr(2, 0) = 0

                      PointArr(0, 1) = (stX + size) + (size * X):  PointArr(1, 1) = stY + (size * Y):  PointArr(2, 1) = 0

                      PointArr(0, 2) = (stX + size) + (size * X):  PointArr(1, 2) = (stY + size) + (size * Y):  PointArr(2, 2) = 0

                      PointArr(0, 3) = stX + (size * X):  PointArr(1, 3) = (stY + size) + (size * Y):  PointArr(2, 3) = 0

                      PointArr(0, 4) = stX + (size * X):  PointArr(1, 4) = stY + (size * Y):  PointArr(2, 4) = 0

           

                      Set fabGfx = pcbDoc.PutFabricationLayerGfx(epcbFabSilkscreen, epcbSideTop, 0, UBound(PointArr, 2) + 1, _

                                                                  PointArr, False, Nothing, epcbUnitCurrent)

                  Next

              Next

           

          Please run a sample script.

           

          Satoru