UPI Macro to Convert Boxes to Polygon
UPI Macro to Convert Boxes to Polygon
by 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();
}
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();
}
VcQgLSYmKLSqErYmzI
by 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
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests
- Board index
- The team • Delete all board cookies • Delete style cookies • All times are UTC - 8 hours [ DST ]