Click or drag to resize
SoPatternLoadPatterns Method (String, Int32, String, SoPatternFilterTypes)

Loads a pattern file, with optional filtering of patterns.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public static bool LoadPatterns(
	string fileName,
	int numFilters,
	string[] filterNames,
	SoPatternFilterTypes filterType
)

Parameters

fileName
Type: SystemString
numFilters
Type: SystemInt32
filterNames
Type: SystemString
filterType
Type: OIV.Inventor.NodesSoPatternFilterTypes

Return Value

Type: Boolean
Remarks

You can specify the file name with or without a full path. If you specify the file name without the path, the file will be loaded from the directory $OIVHOME/data/patterns. If the file name is not found, a default pattern will be used.

filterNames is an array of pattern names. This will be an array of patterns to include (or exclude) depending on the FilterType. The size of this array is numFilters.

See Also