public interface NXObject extends TaggedObject, INXObject
Modifier and Type | Interface and Description |
---|---|
static class |
NXObject.AttributeInformation
Contains attribute information.
|
static class |
NXObject.AttributeType
Specifies attribute type.
|
static class |
NXObject.ComputationalTime
Holds the computational time value of a time attribute.
|
static class |
NXObject.DateAndTimeFormat
Specifies the format of the date and time attribute.
|
static class |
NXObject.NextUserAttributeData
This class holds the data returned from
getNextUserAttribute(nxopen.AttributeIterator) |
Modifier and Type | Method and Description |
---|---|
AttributeIterator |
createAttributeIterator()
Create an attribute iterator
License requirements: None. |
void |
deleteAllAttributesByType(NXObject.AttributeType type)
Deprecated.
Deprecated in NX8.0.0. Use
deleteUserAttributes(nxopen.AttributeIterator, nxopen.Update.Option) instead.
|
void |
deleteAllAttributesByType(NXObject.AttributeType type,
Update.Option option)
Deprecated.
Deprecated in NX8.0.0. Use
deleteUserAttributes(nxopen.AttributeIterator, nxopen.Update.Option) instead.
|
void |
deleteAttributeByTypeAndTitle(NXObject.AttributeType type,
String title)
Deprecated.
Deprecated in NX8.0.0. Use
deleteUserAttribute(nxopen.NXObject.AttributeType, java.lang.String, boolean, nxopen.Update.Option) instead.
|
void |
deleteAttributeByTypeAndTitle(NXObject.AttributeType type,
String title,
Update.Option option)
Deprecated.
Deprecated in NX8.0.0. Use
deleteUserAttribute(nxopen.NXObject.AttributeType, java.lang.String, boolean, nxopen.Update.Option) instead.
|
void |
deleteUserAttribute(NXObject.AttributeType type,
String title,
boolean deleteEntireArray,
Update.Option option)
Deletes the first attribute encountered with the given Type, Title.
|
void |
deleteUserAttributes(AttributeIterator iterator,
Update.Option option)
Deletes the attributes on the object, if any, that satisfy the given iterator
License requirements: None. |
void |
deleteUserAttributes(NXObject.AttributeType type,
Update.Option option)
Deletes the attributes encountered with the given Type with option to update or not.
|
NXObject.AttributeInformation[] |
getAttributeTitlesByType(NXObject.AttributeType type)
Deprecated.
Deprecated in NX8.0.0. Use
getUserAttributes(nxopen.AttributeIterator) instead.
|
boolean |
getBooleanUserAttribute(String title,
int index)
Gets a boolean attribute by Title and array Index.
|
NXObject.ComputationalTime |
getComputationalTimeUserAttribute(String title,
int index)
Gets a time attribute by Title and array Index.
|
int |
getIntegerAttribute(String title)
Deprecated.
Deprecated in NX8.0.0. Use
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int) instead.
|
int |
getIntegerUserAttribute(String title,
int index)
Gets an integer attribute by Title and array Index.
|
NXObject.NextUserAttributeData |
getNextUserAttribute(AttributeIterator iterator)
Gets the next attribute encountered on the object, if any, that satisfies the given iterator.
|
String |
getPdmReferenceAttributeValue(String attributeTitle)
Gets the value of PDM Reference attribute for given object.
|
double |
getRealAttribute(String title)
Deprecated.
Deprecated in NX8.0.0. Use
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int) instead.
|
double |
getRealUserAttribute(String title,
int index)
Gets a real attribute by Title and array Index.
|
String |
getReferenceAttribute(String title)
Deprecated.
Deprecated in NX8.0.0. Use
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int) instead.
|
String |
getStringAttribute(String title)
Deprecated.
Deprecated in NX8.0.0. Use
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int) instead.
|
String |
getStringUserAttribute(String title,
int index)
Gets a string attribute by Title and array Index.
|
String |
getTimeAttribute(NXObject.DateAndTimeFormat format,
String title)
Deprecated.
Deprecated in NX8.0.0. Use
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int) instead.
|
String |
getTimeUserAttribute(String title,
int index)
Gets a time attribute by Title and array Index.
|
NXObject.AttributeInformation[] |
getUserAttribute(String title,
boolean includeUnset,
boolean addStringValues,
NXObject.AttributeType type)
Deprecated.
Deprecated in NX11.0.0. Use
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int) instead.
|
NXObject.AttributeInformation |
getUserAttribute(String title,
NXObject.AttributeType type,
int index)
Gets the first attribute encountered on the object, if any, with a given Title, Type and array Index.
|
String |
getUserAttributeAsString(String title,
NXObject.AttributeType type,
int index)
Gets the first attribute encountered on the object, if any, with a given title, type and array index.
|
int |
getUserAttributeCount(AttributeIterator iterator)
Gets the count of set attributes on the object, if any, that satisfy the given iterator.
|
int |
getUserAttributeCount(AttributeIterator iterator,
boolean countArrayAsOneAttribute)
Gets the count of set attributes on the object, if any, that satisfy the given iterator.
|
int |
getUserAttributeCount(NXObject.AttributeType type)
Gets the count of set attributes on the object, if any, of the given type.
|
int |
getUserAttributeCount(NXObject.AttributeType type,
boolean includeUnset,
boolean countArrayAsOneAttribute)
Gets the count of attributes on the object, if any, of the given type.
|
boolean |
getUserAttributeLock(String title,
NXObject.AttributeType type)
Determine the lock of the given attribute.
|
NXObject.AttributeInformation[] |
getUserAttributes()
Gets all the attributes that have been set on the given object.
|
NXObject.AttributeInformation[] |
getUserAttributes(AttributeIterator iterator)
Gets all the attributes that have been set on the given object, if any, that satisfy the given iterator.
|
NXObject.AttributeInformation[] |
getUserAttributes(boolean includeUnset)
Gets all the attributes of the given object.
|
NXObject.AttributeInformation[] |
getUserAttributes(boolean includeUnset,
boolean addStringValues)
Deprecated.
Deprecated in NX11.0.0. Use
getUserAttributes(nxopen.AttributeIterator) instead.
|
String[] |
getUserAttributesAsStrings()
Deprecated.
Deprecated in NX8.5.0. Use
getUserAttributes(nxopen.AttributeIterator) instead.
|
int |
getUserAttributeSize(String title,
NXObject.AttributeType type)
Gets the size of the first attribute encountered on the object, if any, with a given Title and Type.
|
NXObject[] |
getUserAttributeSourceObjects()
Returns an array of objects from which this object presents attributes.
|
boolean |
hasUserAttribute(AttributeIterator iterator)
Determines if an attribute exists on the object, that satisfies the given iterator
License requirements: None. |
boolean |
hasUserAttribute(String title,
NXObject.AttributeType type,
int index)
Determines if an attribute with the given Title, Type and array Index is present on the object
Unset attributes will not be detected by this function, as its purpose is to test for the actual presence of the attribute on the object.
|
void |
setAttribute(String title)
Deprecated.
Deprecated in NX8.0.0. Use
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option) instead.
|
void |
setAttribute(String title,
double value)
Deprecated.
Deprecated in NX8.0.0. Use
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option) instead.
|
void |
setAttribute(String title,
double value,
Update.Option option)
Deprecated.
Deprecated in NX8.0.0. Use
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option) instead.
|
void |
setAttribute(String title,
int value)
Deprecated.
Deprecated in NX8.0.0. Use
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option) instead.
|
void |
setAttribute(String title,
int value,
Update.Option option)
Deprecated.
Deprecated in NX8.0.0. Use
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option) instead.
|
void |
setAttribute(String title,
String value)
Deprecated.
Deprecated in NX8.0.0. Use
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option) instead.
|
void |
setAttribute(String title,
String value,
Update.Option option)
Deprecated.
Deprecated in NX8.0.0. Use
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option) instead.
|
void |
setAttribute(String title,
Update.Option option)
Deprecated.
Deprecated in NX8.0.0. Use
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option) instead.
|
void |
setBooleanUserAttribute(String title,
int index,
boolean value,
Update.Option option)
Creates or modifies a boolean attribute with the option to update or not.
|
void |
setPdmReferenceAttribute(String attributeTitle,
String attributeValue)
Sets the value of PDM Reference attribute on the object.
|
void |
setReferenceAttribute(String title,
String value)
Deprecated.
Deprecated in NX8.0.0. Use
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option) instead.
|
void |
setReferenceAttribute(String title,
String value,
Update.Option option)
Deprecated.
Deprecated in NX8.0.0. Use
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option) instead.
|
void |
setTimeAttribute(String title,
String value)
Deprecated.
Deprecated in NX8.0.0. Use
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option) instead.
|
void |
setTimeAttribute(String title,
String value,
Update.Option option)
Deprecated.
Deprecated in NX8.0.0. Use
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option) instead.
|
void |
setTimeUserAttribute(String title,
int index,
NXObject.ComputationalTime value,
Update.Option option)
Creates or modifies a time attribute with the option to update or not.
|
void |
setTimeUserAttribute(String title,
int index,
String value,
Update.Option option)
Creates or modifies a time attribute with the option to update or not.
|
void |
setUserAttribute(NXObject.AttributeInformation info,
Update.Option option)
Creates or modifies an attribute with the option to update or not.
|
void |
setUserAttribute(String title,
int index,
double value,
Update.Option option)
Creates or modifies a real attribute with the option to update or not.
|
void |
setUserAttribute(String title,
int index,
int value,
Update.Option option)
Creates or modifies an integer attribute with the option to update or not.
|
void |
setUserAttribute(String title,
int index,
String value,
Update.Option option)
Creates or modifies a string attribute with the option to update or not.
|
void |
setUserAttribute(String title,
int index,
Update.Option option)
Creates or modifies a null attribute with the option to update or not.
|
void |
setUserAttributeLock(String title,
NXObject.AttributeType type,
boolean lock)
Lock or unlock the given attribute.
|
printTestData, printTestData, tag, tagValue
findObject, isOccurrence, journalIdentifier, name, owningComponent, owningPart, print, prototype, setName
void setUserAttribute(NXObject.AttributeInformation info, Update.Option option) throws NXException, RemoteException
NXObject.AttributeType.REFERENCE
.
Instead, set the type to NXObject.AttributeType.STRING
and specify a ReferenceValue.
NOTE: To set an NXObject.AttributeType.TIME
attribute, either a formatted string or a computational value may be used.
If both are set (the string is not null and the computational value is not (0,0)), then the computational value will take precedence.
The time value in either case is in the current time zone of the machine running the program.
The following data members of the Info structure are ignored by this method:
Alias
Inherited
Required
Unset
Locked
OwnedBySystem
PdmBased
The following data members of an attribute cannot be edited once the attribute is set:
Type
Title
TitleAlias
Array
ArrayElementIndex
The dimensionality of the Unit specification (cannot change from mm to microA, but from mm to cm is fine)
The following data of an attribute can be set if and only if the attribute is not associated with a template. It cannot be modified once set.
Array
Category
Transient
NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object.
If it is, the changes will be overridden when the part is updated.
NOTE: The valid range for attributes of type date is from 01-Jan-1970 to 31-Dec-2105
info
- option
- NXException
RemoteException
void setUserAttribute(String title, int index, int value, Update.Option option) throws NXException, RemoteException
title
- index
- value
- option
- NXException
RemoteException
void setUserAttribute(String title, int index, double value, Update.Option option) throws NXException, RemoteException
title
- index
- value
- option
- NXException
RemoteException
void setUserAttribute(String title, int index, String value, Update.Option option) throws NXException, RemoteException
title
- index
- value
- option
- NXException
RemoteException
void setUserAttribute(String title, int index, Update.Option option) throws NXException, RemoteException
title
- index
- option
- NXException
RemoteException
void setTimeUserAttribute(String title, int index, String value, Update.Option option) throws NXException, RemoteException
title
- index
- value
- The current date and time is used if the value is null.
See NXObject.DateAndTimeFormat
for valid formats.option
- NXException
RemoteException
void setTimeUserAttribute(String title, int index, NXObject.ComputationalTime value, Update.Option option) throws NXException, RemoteException
title
- index
- value
- The current date and time is used if the value is (0,0).option
- NXException
RemoteException
void setBooleanUserAttribute(String title, int index, boolean value, Update.Option option) throws NXException, RemoteException
title
- index
- value
- option
- NXException
RemoteException
AttributeIterator createAttributeIterator() throws NXException, RemoteException
NXException
RemoteException
boolean hasUserAttribute(AttributeIterator iterator) throws NXException, RemoteException
iterator
- AttributeIterator
NXException
RemoteException
boolean hasUserAttribute(String title, NXObject.AttributeType type, int index) throws NXException, RemoteException
NXObject.AttributeType.REFERENCE
.
Instead, use NXObject.AttributeType.STRING
.
title
- type
- index
- NXException
RemoteException
int getUserAttributeCount(AttributeIterator iterator) throws NXException, RemoteException
iterator
- AttributeIterator
NXException
RemoteException
int getUserAttributeCount(AttributeIterator iterator, boolean countArrayAsOneAttribute) throws NXException, RemoteException
iterator
- AttributeIterator
countArrayAsOneAttribute
- NXException
RemoteException
int getUserAttributeCount(NXObject.AttributeType type) throws NXException, RemoteException
type
- NXException
RemoteException
int getUserAttributeCount(NXObject.AttributeType type, boolean includeUnset, boolean countArrayAsOneAttribute) throws NXException, RemoteException
NXObject.AttributeType.REFERENCE
.
Instead, use NXObject.AttributeType.STRING
.
type
- includeUnset
- countArrayAsOneAttribute
- NXException
RemoteException
int getUserAttributeSize(String title, NXObject.AttributeType type) throws NXException, RemoteException
NXObject.AttributeType.REFERENCE
.
Instead, use NXObject.AttributeType.STRING
.
title
- type
- NXException
RemoteException
NXObject.NextUserAttributeData getNextUserAttribute(AttributeIterator iterator) throws NXException, RemoteException
iterator
- AttributeIterator
NXException
RemoteException
NXObject.AttributeInformation getUserAttribute(String title, NXObject.AttributeType type, int index) throws NXException, RemoteException
getUserAttributes(nxopen.AttributeIterator)
.
The date format set by the Customer Defaults is used for attributes of type time.
NOTE: This method does not support the use of NXObject.AttributeType.REFERENCE
.
Instead, use NXObject.AttributeType.STRING
.
For reference type string attributes, both the ReferenceValue and the calculated StringValue are returned.
title
- type
- index
- NXException
RemoteException
boolean getBooleanUserAttribute(String title, int index) throws NXException, RemoteException
getUserAttributes(nxopen.AttributeIterator)
.
title
- index
- NXException
RemoteException
int getIntegerUserAttribute(String title, int index) throws NXException, RemoteException
getUserAttributes(nxopen.AttributeIterator)
.
title
- index
- NXException
RemoteException
double getRealUserAttribute(String title, int index) throws NXException, RemoteException
getUserAttributes(nxopen.AttributeIterator)
.
title
- index
- NXException
RemoteException
String getStringUserAttribute(String title, int index) throws NXException, RemoteException
getUserAttributes(nxopen.AttributeIterator)
.
title
- index
- NXException
RemoteException
String getTimeUserAttribute(String title, int index) throws NXException, RemoteException
getUserAttributes(nxopen.AttributeIterator)
.
NOTE: The returned string must be deleted by the caller
title
- index
- NXException
RemoteException
NXObject.ComputationalTime getComputationalTimeUserAttribute(String title, int index) throws NXException, RemoteException
getUserAttributes(nxopen.AttributeIterator)
.
title
- index
- NXException
RemoteException
NXObject.AttributeInformation[] getUserAttributes(AttributeIterator iterator) throws NXException, RemoteException
NXObject.AttributeType.STRING
,
and both the ReferenceValue and the calculated StringValue are returned.
iterator
- AttributeIterator
NXException
RemoteException
NXObject.AttributeInformation[] getUserAttributes() throws NXException, RemoteException
NXObject.AttributeType.STRING
,
and both the ReferenceValue and the calculated StringValue are returned.
NXException
RemoteException
NXObject.AttributeInformation[] getUserAttributes(boolean includeUnset) throws NXException, RemoteException
NXObject.AttributeType.STRING
,
and both the ReferenceValue and the calculated StringValue are returned.
includeUnset
- NXException
RemoteException
String getUserAttributeAsString(String title, NXObject.AttributeType type, int index) throws NXException, RemoteException
getUserAttributes(nxopen.AttributeIterator)
.
The date format set by the Customer Defaults is used for attributes of type time.
NOTE: This method does not support the use of NXObject.AttributeType.REFERENCE
.
Instead, use NXObject.AttributeType.STRING
.
For reference type string attributes, the calculated StringValue is returned.
title
- type
- index
- NXException
RemoteException
void deleteUserAttributes(AttributeIterator iterator, Update.Option option) throws NXException, RemoteException
iterator
- AttributeIterator
option
- NXException
RemoteException
void deleteUserAttribute(NXObject.AttributeType type, String title, boolean deleteEntireArray, Update.Option option) throws NXException, RemoteException
NXObject.AttributeType.REFERENCE
.
type
- title
- deleteEntireArray
- option
- NXException
RemoteException
void deleteUserAttributes(NXObject.AttributeType type, Update.Option option) throws NXException, RemoteException
NXObject.AttributeType.REFERENCE
.
type
- option
- NXException
RemoteException
void setUserAttributeLock(String title, NXObject.AttributeType type, boolean lock) throws NXException, RemoteException
title
- type
- lock
- NXException
RemoteException
boolean getUserAttributeLock(String title, NXObject.AttributeType type) throws NXException, RemoteException
title
- type
- NXException
RemoteException
NXObject[] getUserAttributeSourceObjects() throws NXException, RemoteException
NXException
RemoteException
void setPdmReferenceAttribute(String attributeTitle, String attributeValue) throws NXException, RemoteException
attributeTitle
- attributeValue
- NXException
RemoteException
String getPdmReferenceAttributeValue(String attributeTitle) throws NXException, RemoteException
attributeTitle
- NXException
RemoteException
NXObject.AttributeInformation[] getUserAttribute(String title, boolean includeUnset, boolean addStringValues, NXObject.AttributeType type) throws NXException, RemoteException
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int)
instead.
NXObject.AttributeType.REFERENCE
.
Instead, use NXObject.AttributeType.STRING
.
For reference type string attributes, both the ReferenceValue and the calculated StringValue are returned.
title
- includeUnset
- addStringValues
- type
- NXException
RemoteException
NXObject.AttributeInformation[] getUserAttributes(boolean includeUnset, boolean addStringValues) throws NXException, RemoteException
getUserAttributes(nxopen.AttributeIterator)
instead.
NXObject.AttributeType.STRING
,
and both the ReferenceValue and the calculated StringValue are returned.
includeUnset
- addStringValues
- NXException
RemoteException
void deleteAllAttributesByType(NXObject.AttributeType type) throws NXException, RemoteException
deleteUserAttributes(nxopen.AttributeIterator, nxopen.Update.Option)
instead.
Feature
.
If a candidate attribute is an array attribute, this method will delete all the array elements.
NOTE: If the input specifies reference type, then this function will delete
string type non-array attributes that have a reference value. The reference type is used only
to single out string type non-array attributes that contain a reference value.
The use of reference type in this function is deprecated. Please use string type instead.
type
- NXException
RemoteException
void deleteAllAttributesByType(NXObject.AttributeType type, Update.Option option) throws NXException, RemoteException
deleteUserAttributes(nxopen.AttributeIterator, nxopen.Update.Option)
instead.
type
- option
- NXException
RemoteException
void setAttribute(String title, int value) throws NXException, RemoteException
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option)
instead.
Feature
.
This method does not support array attributes.
NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object.
If it is, the changes will be overridden when the part is updated.
title
- value
- NXException
RemoteException
void setAttribute(String title, int value, Update.Option option) throws NXException, RemoteException
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option)
instead.
title
- value
- option
- NXException
RemoteException
void setAttribute(String title, double value) throws NXException, RemoteException
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option)
instead.
Feature
.
This method does not support array attributes.
NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object.
If it is, the changes will be overridden when the part is updated.
title
- value
- NXException
RemoteException
void setAttribute(String title, double value, Update.Option option) throws NXException, RemoteException
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option)
instead.
title
- value
- option
- NXException
RemoteException
void setAttribute(String title, String value) throws NXException, RemoteException
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option)
instead.
Feature
.
This method does not support array attributes.
NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object.
If it is, the changes will be overridden when the part is updated.
title
- value
- NXException
RemoteException
void setAttribute(String title, String value, Update.Option option) throws NXException, RemoteException
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option)
instead.
title
- value
- option
- NXException
RemoteException
void setAttribute(String title) throws NXException, RemoteException
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option)
instead.
Feature
.
This method does not support array attributes.
NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object.
If it is, the changes will be overridden when the part is updated.
title
- NXException
RemoteException
void setAttribute(String title, Update.Option option) throws NXException, RemoteException
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option)
instead.
title
- option
- NXException
RemoteException
void setTimeAttribute(String title, String value) throws NXException, RemoteException
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option)
instead.
Feature
.
The time value is assumed to be in the current time zone of the machine running the program.
NX will store the value in UTC.
This method does not support array attributes.
NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object.
If it is, the changes will be overridden when the part is updated.
title
- value
- The current date and time is used if
the value is null. See
NXObject.DateAndTimeFormat
for valid formats.
NXException
RemoteException
void setTimeAttribute(String title, String value, Update.Option option) throws NXException, RemoteException
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option)
instead.
title
- value
- The current date and time is used if
the value is null. See
NXObject.DateAndTimeFormat
for valid formats.option
- NXException
RemoteException
int getIntegerAttribute(String title) throws NXException, RemoteException
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int)
instead.
title
- NXException
RemoteException
double getRealAttribute(String title) throws NXException, RemoteException
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int)
instead.
title
- NXException
RemoteException
String getStringAttribute(String title) throws NXException, RemoteException
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int)
instead.
title
- NXException
RemoteException
String getTimeAttribute(NXObject.DateAndTimeFormat format, String title) throws NXException, RemoteException
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int)
instead.
format
- title
- NXException
RemoteException
String getReferenceAttribute(String title) throws NXException, RemoteException
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int)
instead.
getUserAttribute(java.lang.String, nxopen.NXObject.AttributeType, int)
This method does not support array attributes.
title
- NXException
RemoteException
void deleteAttributeByTypeAndTitle(NXObject.AttributeType type, String title) throws NXException, RemoteException
deleteUserAttribute(nxopen.NXObject.AttributeType, java.lang.String, boolean, nxopen.Update.Option)
instead.
Feature
.
If a candidate attribute is an array attribute, this method will delete all the array elements.
NOTE: If the input specifies reference type, then this function will delete
string type attributes that have a reference value. The reference type is used only
to single out string type attributes that contain a reference value.
The use of reference type in this function is discouraged.
type
- title
- NXException
RemoteException
void deleteAttributeByTypeAndTitle(NXObject.AttributeType type, String title, Update.Option option) throws NXException, RemoteException
deleteUserAttribute(nxopen.NXObject.AttributeType, java.lang.String, boolean, nxopen.Update.Option)
instead.
type
- title
- option
- NXException
RemoteException
void setReferenceAttribute(String title, String value) throws NXException, RemoteException
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option)
instead.
Feature
.
NOTE: The input value must be a valid reference string.
This method does not support array attributes.
NOTE: This method should not be used to edit a read-only object such as a Mirrored PMI object.
If it is, the changes will be overridden when the part is updated.
title
- value
- NXException
RemoteException
void setReferenceAttribute(String title, String value, Update.Option option) throws NXException, RemoteException
setUserAttribute(nxopen.NXObject.AttributeInformation, nxopen.Update.Option)
instead.
title
- value
- option
- NXException
RemoteException
NXObject.AttributeInformation[] getAttributeTitlesByType(NXObject.AttributeType type) throws NXException, RemoteException
getUserAttributes(nxopen.AttributeIterator)
instead.
type
- NXException
RemoteException
String[] getUserAttributesAsStrings() throws NXException, RemoteException
getUserAttributes(nxopen.AttributeIterator)
instead.
NXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.