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
argsvdTableDependeciesArgsA 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
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.