NX Open C++ Reference Guide
|
The builder to define room attributes
Created in NX12.0.0.
More...
Public Member Functions | |
void | InitFromObject (NXOpen::TaggedObject *objectTag) |
Initializes the builder from an object. More... | |
void | SetAttribute (int index, const NXString &attrName, const NXString &attrValue) |
Sets the specific attribute name and value given the index in the list. More... | |
void | SetAttribute (int index, const char *attrName, const char *attrValue) |
Sets the specific attribute name and value given the index in the list. More... | |
void | SetRoomPurpose (const NXString &roomPurpose) |
Sets the room purpose. More... | |
void | SetRoomPurpose (const char *roomPurpose) |
Sets the room purpose. More... | |
void | UpdateAttributes (std::vector< NXString > &attrNames, std::vector< NXString > &attrValues) |
Updates all attributes with new name and values. More... | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. More... | |
Public Member Functions inherited from NXOpen::TaggedObject | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
The builder to define room attributes
Created in NX12.0.0.
void NXOpen::Features::ShipDesign::RoomAttributeListBuilder::InitFromObject | ( | NXOpen::TaggedObject * | objectTag | ) |
Initializes the builder from an object.
Created in NX12.0.0.
License requirements : nx_ship_gen_arrange ("Ship General Arrangement")
objectTag | Body or Component |
void NXOpen::Features::ShipDesign::RoomAttributeListBuilder::SetAttribute | ( | int | index, |
const NXString & | attrName, | ||
const NXString & | attrValue | ||
) |
Sets the specific attribute name and value given the index in the list.
Created in NX12.0.0.
License requirements : nx_ship_gen_arrange ("Ship General Arrangement")
index | index |
attrName | attrname |
attrValue | attrvalue |
void NXOpen::Features::ShipDesign::RoomAttributeListBuilder::SetAttribute | ( | int | index, |
const char * | attrName, | ||
const char * | attrValue | ||
) |
Sets the specific attribute name and value given the index in the list.
Created in NX12.0.0.
License requirements : nx_ship_gen_arrange ("Ship General Arrangement")
index | index |
attrName | attrname |
attrValue | attrvalue |
void NXOpen::Features::ShipDesign::RoomAttributeListBuilder::SetRoomPurpose | ( | const NXString & | roomPurpose | ) |
Sets the room purpose.
If room purpose changes, this will try to reconstruct the attribute list because different attributes are pre-defined for different room purposes.
Created in NX12.0.0.
License requirements : nx_ship_gen_arrange ("Ship General Arrangement")
roomPurpose | roompurpose |
void NXOpen::Features::ShipDesign::RoomAttributeListBuilder::SetRoomPurpose | ( | const char * | roomPurpose | ) |
Sets the room purpose.
If room purpose changes, this will try to reconstruct the attribute list because different attributes are pre-defined for different room purposes.
Created in NX12.0.0.
License requirements : nx_ship_gen_arrange ("Ship General Arrangement")
roomPurpose | roompurpose |
void NXOpen::Features::ShipDesign::RoomAttributeListBuilder::UpdateAttributes | ( | std::vector< NXString > & | attrNames, |
std::vector< NXString > & | attrValues | ||
) |
Updates all attributes with new name and values.
Created in NX12.0.0.
License requirements : nx_ship_gen_arrange ("Ship General Arrangement")
attrNames | attrnames |
attrValues | attrvalues |
|
virtual |
Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven't set it. This method throws a not-yet-implemented NXException for some components.
Implements NXOpen::GeometricUtilities::IComponentBuilder.