Table of Contents

Method GetUnUsedTables

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

GetUnUsedTables(vdTableDependeciesArgs)

Fills the passed vdTableDependeciesArgs args with all the table (vdLayer, vdBlock, vdDimstyle, vdLineType, vdTextstyle, vdImageDef, vdHatchPattern etc) that have no references.

public void GetUnUsedTables(vdTableDependeciesArgs tableArgs)

Parameters

tableArgs vdTableDependeciesArgs

A vdTableDependeciesArgs that contains all table type collections.

Examples

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

 vdDocument doc = vdFramedControl.BaseControl.ActiveDocument;
 vdTableDependeciesArgs args = new vdTableDependeciesArgs(null, vdTableDependeciesArgs.TableTypes.All);
 GetUnUsedTables(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 be deleted.

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

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

public void GetUnUsedTables(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.