AnsweredAssumed Answered

How to get SolderPaste area from within padstacks in component placed in layout?

Question asked by dr.hong on Mar 4, 2015
Latest reply on Mar 26, 2015 by piotrek

Tried to get pointarray with the object "FabricationLayerGfxs(epcbFabSolderpaste, epcbSelectAll, epcbSideTop,True)"

It reads any Solderpaste drawing objects in layout that is drawn during design, ok. But It does not read the Solderpastes in the Components(which mean placed as Padstacks).

What should I add into below?

 

---------------------------------------------------------------------------------------------------------------------------------------

Dim mskeng
    Set mskeng = CreateObject("MGCPCBEngines.MaskEngine")
    Scripting.AddTypeLibrary ("MGCPCBEngines.MaskEngine")
    Scripting.AddTypeLibrary ("MGCPCB.ExpeditionPCBApplication")


Dim stenColl

    Set stenColl = pcbDoc.FabricationLayerGfxs(epcbFabSolderpaste, epcbSelectAll, epcbSideTop,True)

 

Dim stenUs, shapesCu

    Set stenUs = mskeng.Masks.Add
    Set shapesCu = stenUs.shapes

 

Dim stenobj, pnts

    For Each stenobj In stenColl
  pnts = stenobj.Geometry.PointsArray
  Call shapesCu.AddByPointsArray (1 + UBound(pnts, 2), pnts)
Next

---------------------------------------------------------------------------------------------------------------------------------------

Outcomes