Table of Contents

Property OnlyNames

Namespace
GeometryHelper.IfcConvert.Core
Assembly
GeometryHelper.IfcConvert.dll

OnlyNames

Gets the set of product names or wildcard patterns to convert exclusively. When it holds a pattern, a product whose name matches none of them comes back empty, as a skipped one does. Empty, the default, converts every product. AddOnlyNames(params string[]) adds names trimmed and without blanks.

Matching works as for SkipNames: case-insensitive, with the '*' wildcard ("B*" matches "BEAM" and "Bolt assembly"). A product with no name matches only "*". SkipNames still applies, so a name matching both is skipped.

The name is checked before any geometry is built, so products left out cost next to nothing. Reading every product of a 115 MB Tekla steel model took about 17 minutes, 96 % of it on 5,512 bolts; keeping only the main members ("BEAM", "GIRDER", "PRD_COLUMN", "COLUMN") took 3.5 s.

Like SkipNames, it also applies to the parts an assembly aggregates (IncludeAggregatedParts): list the names of the parts wanted as well as the assembly's. It never applies to the openings that cut a product (ApplyVoids).

public HashSet<string> OnlyNames { get; }

Property Value

HashSet<string>