FileSelection Class¶
-
class
NXOpen.BlockStyler.
FileSelection
¶ Bases:
NXOpen.BlockStyler.UIBlock
Represents File Selection With Browse block
New in version NX8.5.0.
Properties¶
Property | Description |
---|---|
Enable | Returns or sets the Enable. |
Expanded | Returns or sets the Expanded |
Filter | Returns or sets the Filter Format of the filter string, for a group of related filter extensions will be Group 1(*. |
Group | Returns or sets the Group |
Label | Returns or sets the Label |
Name | Returns the name of the block or BlockID |
Path | Returns or sets the Path |
RetainStringValue | Returns or sets the RetainStringValue |
Show | Returns or sets the Visibility of block. |
Tag | Returns the Tag for this object. |
Type | Returns the type of block |
Methods¶
Method | Description |
---|---|
Focus | Focuses on the block. |
GetProperties | Returns the properties of the block |
Property Detail¶
Filter¶
-
FileSelection.
Filter
¶ Returns or sets the Filter Format of the filter string, for a group of related filter extensions will be “Group 1(*.
xxx;*.yyy;*.zzz),Group 2(.aaa;.bbb)” e.g.”EPLAN files(.emp;.ema;*.ems),Simulation Files(.sim;.fem)”. For the individual filter extensions “.xxx,.yyy,.zzz” e.g. “.prt,.fem,.sim” will appear as “prt File (.prt)”,”sim File (.sim)” and “fem File (*.fem)” respectively in the “Files of type” of file open dialog.
-------------------------------------
Getter Method
Signature
Filter
Returns: Return type: str New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Filter
Parameters: filterString (str) – New in version NX8.5.0.
License requirements: None.
Path¶
-
FileSelection.
Path
¶ Returns or sets the Path
-------------------------------------
Getter Method
Signature
Path
Returns: Return type: str New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Path
Parameters: path (str) – New in version NX8.5.0.
License requirements: None.
RetainStringValue¶
-
FileSelection.
RetainStringValue
¶ Returns or sets the RetainStringValue
-------------------------------------
Getter Method
Signature
RetainStringValue
Returns: Return type: bool New in version NX11.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
RetainStringValue
Parameters: retainStringValue (bool) – New in version NX11.0.0.
License requirements: None.