FolderBuilder Class Reference
Last update: 16.07.2025Represents a Folder Builder. More...

Public Member Functions | |
| 'None' | Remove (self, *args) |
| Removes the specified feature object from the folder. | |
| 'bool' | Add (self, feature) |
| Adds the specified feature object into the folder. | |
| 'bool' | Insert (self, feature, after=None) |
| Inserts the specified feature object into the folder after another specified feature. | |
| 'bool' | IsCompatible (self, feature) |
| Checks if the specified feature object is compatible with this folder. | |
Public Member Functions inherited from FeatureBuilder | |
| 'None' | ShowResult (self) |
| Updates the feature to reflect the result of an edit to the feature for all builders that support showing results. | |
Public Member Functions inherited from Builder | |
| 'None' | Commit (self) |
| Commits any edits that have been applied to the builder. | |
Static Public Attributes | |
| str | Category = property(fset=__SetCategory) |
| Gets or sets the category type of the folder. | |
| str | Features = property(fget=__GetFeatures, fset=__SetFeatures) |
| Gets or sets features belonging to this folder. | |
Static Public Attributes inherited from FeatureBuilder | |
| str | Feature = property(fget=__GetFeature) |
| Returns the feature being edited, or the created feature if the builder is being used in creation mode. | |
| str | FullName = property(fget=__GetFullName) |
| Gets the full name of the feature being edited. | |
| str | Name = property(fget=__GetName, fset=__SetName) |
| Gets or sets the name of the feature being edited. | |
| str | NameWithContext = property(fget=__GetNameWithContext) |
| Gets the name with context of the feature being edited. | |
| str | Status = property(fget=__GetStatus) |
| Returns the status of the feature being edited. | |
Properties | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
Properties inherited from FeatureBuilder | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
Properties inherited from Builder | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
Detailed Description
Represents a Folder Builder.
The Folder Builder creates or edits Folder features.
To create a new instance of this class, use FeatureCollection.CreateFolderBuilder.
Member Function Documentation
◆ Add()
| 'bool' Add | ( | self, | |
| feature ) |
Adds the specified feature object into the folder.
- Parameters
-
[in] feature the feature object.
- Returns
- True if successfully added into the folder; Otherwise, returns False.
◆ Insert()
| 'bool' Insert | ( | self, | |
| feature, | |||
| after = None ) |
Inserts the specified feature object into the folder after another specified feature.
- Parameters
-
[in] feature the feature object to add. [in] after a feature object after which the feature object should be insert.
- Returns
- True if successfully inserted into the folder; Otherwise, returns False.
◆ IsCompatible()
| 'bool' IsCompatible | ( | self, | |
| feature ) |
Checks if the specified feature object is compatible with this folder.
- Parameters
-
[in] feature the feature object.
- Returns
- True if the specified feature object is compatible with this folder; Otherwise, returns False.
◆ Remove()
| 'None' Remove | ( | self, | |
| * | args ) |
Removes the specified feature object from the folder.
The specified feature object must be a member of the folder to be removed from it.
- Parameters
-
[in] feature the feature object.
Member Data Documentation
◆ Category
|
static |
Gets or sets the category type of the folder.
The values are:
0 - None.
1 - Properties.
2 - Sources.
3 - Sensors.
4 - Simulations.
Value type: Integer.
The default value is None (0). A category type other than None (0) must be defined.
◆ Features
|
static |
Gets or sets features belonging to this folder.
The Features property takes and returns a list of feature objects.
Value type: List of Feature objects.
The default value is an empty list.
The documentation for this class was generated from the following file:
- SpeosNX_2412.py
Public Member Functions inherited from