Instead of drawing a line, take the PointsArray und the PutTrace command =>
Document.PutTrace(ByVal nLayer As Long , ByVal pNet As IMGCPCBNet , ByVal dWidth As Double , ByVal nPnts As Long , pSafeArrayOfPoints As Variant , [ByVal pComponent As IMGCPCBComponent] , [ByVal eFixType As EPcbAnchorType = epcbAnchorNone] , [ByVal eUnit As EPcbUnit = epcbUnitCurrent]) As IMGCPCBTrace
Hi,
yes.
Instead of drawing a line, take the PointsArray und the PutTrace command =>
Document.PutTrace(ByVal nLayer As Long ,
ByVal pNet As IMGCPCBNet ,
ByVal dWidth As Double ,
ByVal nPnts As Long , pSafeArrayOfPoints As Variant ,
[ByVal pComponent As IMGCPCBComponent] ,
[ByVal eFixType As EPcbAnchorType = epcbAnchorNone] ,
[ByVal eUnit As EPcbUnit = epcbUnitCurrent]) As IMGCPCBTrace
With that command you have the paramater pNet
Best wishes,
Florian