UtilityEx.GetEntitiesStats (IList<Entity>, LayerKeyedCollection, BlockKeyedCollection, MaterialKeyedCollection, TextStyleKeyedCollection, LineTypeKeyedCollection, HatchPatternKeyedCollection, Boolean, Boolean, Boolean) Method

Get the statistics for a collection of entities.
Public Shared Function GetEntitiesStats( _ 
ByVal entityList As IList(Of Entity), _ 
ByVal layers As LayerKeyedCollection, _ 
ByVal blocks As BlockKeyedCollection, _ 
ByVal materials As MaterialKeyedCollection, _ 
ByVal textStyles As TextStyleKeyedCollection, _ 
ByVal lineTypes As LineTypeKeyedCollection, _ 
ByVal hatchPatterns As HatchPatternKeyedCollection, _ 
ByVal showTotals As Boolean, _ 
Optional ByVal showBlocksDetails As Boolean = false, _ 
Optional ByVal showCollectionsItems As Boolean = false _ 
) As String
This language is not supported or no code example is available.
public static string GetEntitiesStats( 
IList<Entity> entityList
LayerKeyedCollection layers
BlockKeyedCollection blocks
MaterialKeyedCollection materials
TextStyleKeyedCollection textStyles
LineTypeKeyedCollection lineTypes
HatchPatternKeyedCollection hatchPatterns
bool showTotals
bool showBlocksDetails = false, 
bool showCollectionsItems = false 
)
This language is not supported or no code example is available.

Parameters

entityList
IList<Entity>

The collection of entities

layers
LayerKeyedCollection

The layers to process. It can be null if showCollectionsItems is false.>

blocks
BlockKeyedCollection

The blocks to process. It can be null if showTotals is false.>

materials
MaterialKeyedCollection

The materials to process. It can be null if showCollectionsItems is false.>

textStyles
TextStyleKeyedCollection

The textStyles to process. It can be null if showCollectionsItems is false.>

lineTypes
LineTypeKeyedCollection

The lineTypes to process. It can be null if showCollectionsItems is false.>

hatchPatterns
HatchPatternKeyedCollection

The hatchPatterns to process. It can be null if showCollectionsItems is false.>

showTotals
bool

When true it shows also the total's count, otherwise no.

showBlocksDetails
bool

When true it shows also the detail of the entities contained into each block.

showCollectionsItems
bool

When true it shows also the list of the master collections items.

Return Value

string

The string with the count of each entity's type.

Remarks
 
The entities inside the blocks are processed only for the counting of vertices and triangles.

.NET Framework

Supported in: 4.8

In this article

Definition