Table of Contents

Method GetUsedTables

Namespace
VectorDraw.Professional.vdObjects
Assembly
VectorDraw.Professional.dll

GetUsedTables(vdTableDependeciesArgs)

Fills the passed vdTableDependeciesArgs args with all the table (vdLayer, vdBlock, vdDimstyle, vdLineType, vdTextstyle, vdImageDef, vdHatchPattern etc) that have references at least to one object .

public void GetUsedTables(vdTableDependeciesArgs args)

Parameters

args vdTableDependeciesArgs

A vdTableDependeciesArgs that contains all table type collections.

Examples

Get all the table object that have references and can not be deleted.

 vdDocument doc = vdFramedControl.BaseControl.ActiveDocument;
 vdTableDependeciesArgs args = new vdTableDependeciesArgs(null, vdTableDependeciesArgs.TableTypes.All);
 GetUsedTables(args);
//args.Layers , args.Blocks ,args.DimStyles ,args.LineTypes ,args.TextStyles ,args.ImageDefs ,args.HatchPatterns collections contains all table objects that have references and can not be deleted.

Remarks

The default table object are also included in the args parameter vdLayers.IsDefault(vdPrimary) , vdBlocks.IsDefault(vdPrimary) , vdDimstyles.IsDefault(vdPrimary) , vdLineTypes.IsDefault(vdPrimary) , vdMultilineStyles.IsDefault(vdPrimary) , vdTextstyles.IsDefault(vdPrimary) , vdHatchPatterns.IsDefault(vdPrimary)

GetUsedTables(vdLayers, vdBlocks, vdDimstyles, vdLineTypes, vdTextstyles, vdImages, vdHatchPatterns)

Fills the passed parameters collections with the used items of the document of each type.

public void GetUsedTables(vdLayers layers, vdBlocks blocks, vdDimstyles dimstyles, vdLineTypes linetypes, vdTextstyles textstyles, vdImages images, vdHatchPatterns hatchpatterns)

Parameters

layers vdLayers

A vdLayers collection to be filled or null if layers are not needed to be checked.

blocks vdBlocks

A vdBlocks collection to be filled or null if blocks are not needed to be checked.

dimstyles vdDimstyles

A vdDimstyles collection to be filled or null if dimstyles are not needed to be checked.

linetypes vdLineTypes

A vdLineTypes collection to be filled or null if linetypes are not needed to be checked.

textstyles vdTextstyles

A vdTextstyles collection to be filled or null if textstyles are not needed to be checked.

images vdImages

A vdImages collection to be filled or null if Image definitions are not needed to be checked.

hatchpatterns vdHatchPatterns

A vdHatchPatterns collection to be filled or null if hatch patterns are not needed to be checked.