Skip to main content

Speos NX library 2025 R1

FolderBuilder Class Reference

Last update: 17.07.2025

Represents a Folder Builder. More...

Inheritance diagram for FolderBuilder:
FeatureBuilder_object

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' Commit (self)
 Commits any edits that have been applied to the builder.
 
'None' ShowResult (self)
 Updates the feature to reflect the result of an edit to the feature for all builders that support showing results.
 

Static Public Attributes

str Category = property(fset=__SetCategory)
 Gets or sets the category type of the 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.
 

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]featurethe 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]featurethe feature object to add.
[in]aftera 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]featurethe 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]featurethe feature object.

Member Data Documentation

◆ Category

str Category = property(fset=__SetCategory)
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.


The documentation for this class was generated from the following file:
  • SpeosNX.py

Connect with Ansys