Code sample Home

Create a shape entity from selected entities
void DemoShape5 (HANDLE hLcWnd)
{
  HANDLE hBlock, hShape;

  // get a block, linked with CAD window
  hBlock = lcPropGetHandle( hLcWnd, LC_PROP_WND_BLOCK );
  // make a shape from selected entities
  hShape = lcBlockAddShapeSel( hBlock, true );
  // set solid filling
  lcPropPutBool( hShape, LC_PROP_ENT_SOLIDFILL, true );
  lcPropPutStr( hShape, LC_PROP_ENT_FCOLOR, L"0,255,0" );
  // disable border line
  lcPropPutInt( hShape, LC_PROP_ENT_LWIDTH, 0 );
  // redraw view
  lcWndRedraw( hLcWnd );
}
See Also:

Create shape entity from marked entities