L_VecGetLayoutCount

Summary

Gets number of layouts from a specific file. Currently only DXF files support layouts.

Syntax

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecGetLayoutCount(pszFile, pnLayouts)

Parameters

L_TCHAR pszFile

Character string that contains the name of the file to load.

L_INT *pnLayouts

Pointer to L_INT to be updated with number of layouts.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example Gets number of layouts from a specific file. Currently only DXF files support layouts

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; 
} 

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.