NXOpen .NET Reference  12.0.0
Public Types | List of all members
NXOpen.AttributePropertiesBuilder Class Reference

Represents an NXOpen.AttributePropertiesBuilder . More...

Inheritance diagram for NXOpen.AttributePropertiesBuilder:
NXOpen.AttributePropertiesBaseBuilder NXOpen.Builder NXOpen.GeometricUtilities.IComponentBuilder NXOpen.PDM.PartOperationAttributePropertiesBuilder NXOpen.PDM.PartOperationValidationPropertiesBuilder

Public Types

enum  OperationType {
  None = -1, Create, Revise, SaveAs,
  Save, Delete
}
 It is used to determine the behaviors of attributes that has been mapped from TC, such as Hidden, Required, CopyFromOriginal, etc. More...
 
- Public Types inherited from NXOpen.AttributePropertiesBaseBuilder
enum  ObjectOptions {
  Object, Feature, Occurrence, ComponentInstance,
  ReferenceSet, ObjectInComponentPart, ComponentAsPartAttribute, Empty
}
 Specifies which object will be used when applying attributes. More...
 
enum  DataTypeOptions {
  Null, Boolean, Integer, Number,
  String, Date
}
 Specifies the data type of the attribute, this cannot be changed once the attribute has been created More...
 
enum  BooleanValueOptions { False, True }
 The value choices for an attribute of type Boolean More...
 

Additional Inherited Members

- Public Member Functions inherited from NXOpen.AttributePropertiesBaseBuilder
unsafe void Delete (NXOpen.NXObject @object)
 Delete the attribute from the given object. More...
 
unsafe void DeleteArray (NXOpen.NXObject @object)
 Delete the attribute array from the given object. More...
 
unsafe bool CreateAttribute ()
 Create the attribute from the data set in the builder. More...
 
unsafe bool ApplyUnits ()
 Apply the units currently set on the builder to any objects that have a value set for the current attribute. More...
 
unsafe void SetAttributeObjects (NXOpen.NXObject[] objects)
 Sets the array of objects that have this attribute More...
 
- Properties inherited from NXOpen.AttributePropertiesBaseBuilder
unsafe int ArrayIndex [get, set]
 Returns or sets the array index. More...
 
unsafe
NXOpen.AttributePropertiesBaseBuilder.BooleanValueOptions 
BooleanValue [get, set]
 Returns or sets the boolean value. More...
 
unsafe string Category [get, set]
 Returns or sets the category. More...
 
unsafe
NXOpen.AttributePropertiesBaseBuilder.DataTypeOptions 
DataType [get, set]
 Returns or sets the data type, which determines the type of attribute to be created. More...
 
unsafe NXOpen.DateBuilder DateValue [get]
 Returns the date value. More...
 
unsafe NXOpen.Expression Expression [get, set]
 Returns or sets the expression referenced from this attribute. More...
 
unsafe int IntegerValue [get, set]
 Returns or sets the integer value. More...
 
unsafe bool IsArray [get, set]
 Returns or sets the 'is array' flag is set for attributes that have more than one value. More...
 
unsafe bool IsReferenceType [get, set]
 Returns or sets the 'is reference type' flag is set for attributes that are linked to system expressions. More...
 
unsafe bool LockOnSave [get, set]
 Returns or sets the 'LockOnSave' flag is set for attributes that will be locked once the part is saved (and reloaded) More...
 
unsafe double NumberValue [get, set]
 Returns or sets the number value. More...
 
unsafe
NXOpen.AttributePropertiesBaseBuilder.ObjectOptions 
ObjectPicker [get, set]
 Returns or sets the object picker. More...
 
unsafe NXOpen.SelectNXObjectList SelectedObjects [get]
 Returns the selected object(s) list. More...
 
unsafe string StringValue [get, set]
 Returns or sets the string value. More...
 
unsafe string Title [get, set]
 Returns or sets the attribute title. More...
 
unsafe string Units [get, set]
 Returns or sets the units associated with an attribute of type Number. More...
 
unsafe string ValueAlias [get, set]
 Returns or sets the value alias. More...
 

Detailed Description

Represents an NXOpen.AttributePropertiesBuilder .

Input to this class can be PSM facet objects.

To create a new instance of this class, use NXOpen.AttributeManager.CreateAttributePropertiesBuilder

Default values.

Property Value

BooleanValue

False

DataType

String

IntegerValue

0

NumberValue

0

ObjectPicker (deprecated)

Object

Created in NX8.0.0

Member Enumeration Documentation

It is used to determine the behaviors of attributes that has been mapped from TC, such as Hidden, Required, CopyFromOriginal, etc.

Mapped attributes can be from Hardwired Attributes, Create Descriptor, Revise Descriptor or attribute mapping file. Proper operation type should be set when applicable, otherwise the system may not behave correctly. For example, if you ask if an attribute is required or not with OpType "None", it will always say No. But the same attribute may be required for "Create", or "Save As" or "Revise", etc. So Attribute templates from Teamcenter are able to force different behaviors on attributes based on whether they are being shown in item creation, edit or saveAs.

Enumerator
None 

None.

This should be chosen if attribute is not required for the operation.

Create 

Create.

This should be chosen if attribute is required for create operation.

Revise 

Revise.

This should be chosen if attribute is required for revise operation.

SaveAs 

SaveAs.

This should be chosen if attribute is required for Save As operation.

Save 

Save.

This should be chosen if attribute is required for save operation.

Delete 

Delete.

This should be chosen if attribute is required for delete operation.


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.