SetCADBorderType

  Functions >

SetCADBorderType

Previous pageReturn to chapter overviewNext page

The SetCADBorderType function sets type of the drawing border: global points or ratio.

 

Syntax:

 

int SetCADBorderType(

  HANDLE hObject,

  int BType

);

 

 

Parameters:

 

hObject

Identifies the CADImage object handle

BType

Specifies the border type.

 

 

Return Value:

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastErrorCAD.

 

Note:

If BType is equal to 0, then the border type is Global.

If BType is equal to 1, then the border type is Ratio.

If the border type is Global, the second parameter of SetCADBorderSize must contain an integer value. It defines the border width in global units.

If the border type is Ratio, the second parameter of SetCADBorderSize must contain a double value less than 1. It defines the border width in percents respectively to the drawing size.

 

 

See Also

CADCreate  | GetCADBorderType


© 2003-2021 CADSoftTools

Go to CAD DLL