L_LVKRN_API L_INT L_VecGetLayoutCount(pszFile, pnLayouts)
Gets number of layouts from a specific file. Currently only DXF files support layouts.
Character string that contains the name of the file to load.
Pointer to L_INT to be updated with number of layouts.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Required DLLs and Libraries
This example Gets number of layouts from a specific file. Currently only DXF files support layouts
L_LTVKRNTEX_API L_INT VecGetLayoutCountExample(L_VOID)
{
L_INT nRet; /* Return value. */
L_INT nLayouts; /* Number of layouts */
/* Get number of layouts in a vector image. */
nRet = L_VecGetLayoutCount(MAKE_IMAGE_PATH(TEXT("FILE1.DXF")), &nLayouts );
if( nRet != SUCCESS )
/* There was an error loading the vector image. */
MessageBox( NULL, TEXT("Could not load file!"), TEXT("Error"), 0 );
return nRet;
}