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
tableArgsvdTableDependeciesArgsA 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
layersvdLayersA vdLayers collection to be filled or null if layers are not needed to be checked.
blocksvdBlocksA vdBlocks collection to be filled or null if blocks are not needed to be checked.
dimstylesvdDimstylesA vdDimstyles collection to be filled or null if dimstyles are not needed to be checked.
linetypesvdLineTypesA vdLineTypes collection to be filled or null if linetypes are not needed to be checked.
textstylesvdTextstylesA vdTextstyles collection to be filled or null if textstyles are not needed to be checked.
imagesvdImagesA vdImages collection to be filled or null if Image definitions are not needed to be checked.
hatchpatternsvdHatchPatternsA vdHatchPatterns collection to be filled or null if hatch patterns are not needed to be checked.