It is currently Tue May 21, 2013 5:30 pm

UPI Macro to Convert Boxes to Polygon

UPI Macro to Convert Boxes to Polygon

Postby Tanner_AE » Thu Jun 14, 2012 10:54 am

This is for customers who are working with a mask shop that doesn’t support Boxes in the GDSII file.

void ConvertBoxesToPolygon(void)
{
LCell pCell = LCell_GetVisible();
LFile pFile = LCell_GetFile(pCell);
LWindow pWindow = LWindow_GetVisible();

if(Assigned(pWindow) && (LWindow_GetType(pWindow) == CELL_BROWSER))
pCell = LWindow_GetCell(pWindow);

LObject pObject = NULL;
LLayer pLayer;

for ( pLayer = LLayer_GetList(pFile); pLayer; pLayer = LLayer_GetNext(pLayer) )
{
for ( pCell = LCell_GetList(pFile); pCell; pCell = LCell_GetNext(pCell) )
{
for( pObject = LObject_GetList(pCell, pLayer); Assigned(pObject); pObject = LObject_GetNext(pObject))
{
if(LObject_GetShape(pObject) == LBox)
{
LObject_ConvertToPolygon( pCell, &pObject, 1 );
}
}
}
}
LDisplay_Refresh();
}
Tanner_AE
 
Posts: 24
Joined: Thu Jun 07, 2012 3:37 pm

VcQgLSYmKLSqErYmzI

Postby Talita » Sat Oct 06, 2012 6:03 pm

Solo a trave9s de pensar se toman las dciiseones del amor EXCELENTE..!!! Una filosofeda de vida que cueste tal vez internalizar pero una vez logrado las satisfacciones vivenciadas son incomparables
Talita
 


Return to UPI and TCL scripts

Who is online

Users browsing this forum: No registered users and 1 guest

cron

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 30 on Sat Feb 23, 2013 1:41 am

Users browsing this forum: No registered users and 1 guest

Login Form