InterpartExpressionsBuilderNamingRules Enumeration

NXOpen.InterpartExpressionsBuilder.NamingRules is an alias for NXOpen.InterpartExpressionsBuilderNamingRules

class NXOpen.InterpartExpressionsBuilderNamingRules

Bases: object

This defines the naming rule used for the name of the expression created in the current work part. For example, if expression “x” is selected from source part “A” then you will get these expressions below created in the current work part for the following naming rules:

yx=”A”::x for AddPrifix with BaseString “y” xy=”A”::x for AddSuffix with BaseString “y” zz=”A”::x for Replace with BaseString “x” and ReplaceString “zz” y0=”A”::x for RenameWithIndex with BaseString “y”

Empty strings are also supported for the BaseString and ReplaceString.

Errors will be issued whenever a generated left hand side expression name has incorrect syntax, already exists in the current work part or the source expression is from the current work part.

Enum Members

Enum Member Enum Member Description
AddPrefix
AddSuffix
Replace
RenameWithIndex
ValueOf()

Returns enum member equivalent to the value passed. Useful for bit operations of enum members.

Signature ValueOf(value)

Parameters:value – Any integer value or bit operation result of enum members:type value: int:returns: Enum member equivalent to the value passed.
Return type:Enum Member type.

New in version NX9.0.1.

License requirements: None.