Hallo,
das Document-Object bietet dazu eine Eigenschaft
o Property CurrentFilter( ) As CATBSTR
Returns or sets the current visualization filter. CurrentFilter uses the filter name and not its definition. The "All visible" filter means that all layers are visible. For all filters, remind that the current layer is always visible.
Example:
This example makes the filter named "Filter001" as the current visualization filter for the Doc document.
Doc.CurrentFilter = "Filter001"
Des weiteren gibt es eine Methode (auch unter dem Document-Object) um einen neuen Filter zu generieren:
Sub CreateFilter( CATBSTR iFilterName,
CATBSTR iFilterDefinition)
Creates a new visualization filter from a name and a definition. Fails if there is already a filter named iFilterName.
Parameters:
iFilterName
The filter name.
iFilterDefinition
The filter definition
Example:
This example creates the filter named "Filter001" and with "layer= 2 & layer= 1" definition for the Doc document.
Doc.CreateFilter ("Filter001", "layer= 2 & layer= 1")
------------------
MFG Daniel
Systeminformation | Inoffizielle CATIA Hilfeseite | CATIA FAQ | Suche | TraceParts (Normteile...) | 3D Content Central (noch mehr Normteile...)
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP