NX Open C++ Reference Guide
Public Member Functions | List of all members
NXOpen::CAE::FunctionBuilder Class Reference

This builder class is used to create or edit NXOpen::CAE::Function objects. More...

Inheritance diagram for NXOpen::CAE::FunctionBuilder:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public Member Functions

std::vector< NXStringGetDefinitions ()
 Returns definition strings of a math function. More...
 
void GetMathPlotData (int *dataCount, double *xMinimum, double *xIncrement)
 Returns plot data setting of a math function. More...
 
std::vector
< NXOpen::CAE::Function * > 
GetReferencedObjects ()
 Returns referenced objects of a math function. More...
 
void GetTableData (int *recordIndex, NXString *recordName, NXString *recordTimestamp, NXOpen::CAE::Function::InterpolationMethod *interpolateMethod)
 Returns data of a table function. More...
 
void GetTypes (NXOpen::CAE::Function::Type *functionType, NXOpen::CAE::XyFunctionMacroType *macroType, NXOpen::CAE::XyFunctionGeneralType *generalType)
 Returns types of a function
Created in NX5.0.0. More...
 
void GetUnits (NXOpen::CAE::XyFunctionUnit *xUnit, NXOpen::CAE::XyFunctionUnit *yUnit, NXOpen::CAE::XyFunctionUnit *frfUnit)
 Returns units of a function
Created in NX5.0.0. More...
 
double InitialEstimateValue ()
 Returns the initial value for function
Created in NX12.0.0. More...
 
NXString Name ()
 Returns the function name. More...
 
void SetDefinitions (std::vector< NXString > &definitions)
 Sets definition strings of a math function. More...
 
void SetInitialEstimateValue (double val)
 Sets the initial value for function
Created in NX12.0.0. More...
 
void SetMathPlotData (int dataCount, double xMinimum, double xIncrement)
 Sets plot data setting for a math function. More...
 
void SetName (const NXString &name)
 Sets the function name. More...
 
void SetName (const char *name)
 Sets the function name. More...
 
void SetReferencedObjects (const std::vector< NXOpen::CAE::Function * > &objects)
 Sets referenced objects of a math function. More...
 
void SetTableData (int recordIndex, const NXString &recordName, const NXString &recordTimestamp, NXOpen::CAE::Function::InterpolationMethod interpolateMethod)
 Sets data for a table function. More...
 
void SetTableData (int recordIndex, const char *recordName, const char *recordTimestamp, NXOpen::CAE::Function::InterpolationMethod interpolateMethod)
 Sets data for a table function. More...
 
void SetTypes (NXOpen::CAE::Function::Type functionType, NXOpen::CAE::XyFunctionMacroType macroType, NXOpen::CAE::XyFunctionGeneralType generalType)
 Sets types of a function
Created in NX5.0.0. More...
 
void SetUnits (NXOpen::CAE::XyFunctionUnit xUnit, NXOpen::CAE::XyFunctionUnit yUnit, NXOpen::CAE::XyFunctionUnit frfUnit)
 Sets units of a function
Created in NX5.0.0. More...
 
- Public Member Functions inherited from NXOpen::Builder
NXOpen::NXObjectCommit ()
 Commits any edits that have been applied to the builder. More...
 
void Destroy ()
 Deletes the builder, and cleans up any objects created by the builder. More...
 
std::vector< NXOpen::NXObject * > GetCommittedObjects ()
 For builders that create more than one object, this method returns the objects that are created by commit. More...
 
NXOpen::NXObjectGetObject ()
 Returns the object currently being edited by this builder. More...
 
void ShowResults ()
 Updates the model to reflect the result of an edit to the model for all builders that support showing results. 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...
 

Detailed Description

This builder class is used to create or edit NXOpen::CAE::Function objects.

All: CAE::FunctionBuilder::SetName , CAE::FunctionBuilder::SetTypes , CAE::FunctionBuilder::SetUnits ;

formula: CAE::FunctionBuilder::SetDefinitions , CAE::FunctionBuilder::SetReferencedObjects , CAE::FunctionBuilder::SetMathPlotData ;

table function: CAE::FunctionBuilder::SetTableData .
To create a new instance of this class, use NXOpen::CAE::FunctionCollection::CreateFunctionBuilder

Created in NX5.0.0.

Member Function Documentation

std::vector<NXString> NXOpen::CAE::FunctionBuilder::GetDefinitions ( )

Returns definition strings of a math function.

Only used when function type is NXOpen::CAE::Function::TypeMath

Returns

Created in NX5.0.0.

License requirements : None
void NXOpen::CAE::FunctionBuilder::GetMathPlotData ( int *  dataCount,
double *  xMinimum,
double *  xIncrement 
)

Returns plot data setting of a math function.

Only used when function type is NXOpen::CAE::Function::TypeMath
Created in NX5.0.0.

License requirements : None

Parameters
dataCountdata count
xMinimumx minimum
xIncrementx increment
std::vector<NXOpen::CAE::Function *> NXOpen::CAE::FunctionBuilder::GetReferencedObjects ( )

Returns referenced objects of a math function.

Only used when function type is NXOpen::CAE::Function::TypeMath

Returns

Created in NX5.0.0.

License requirements : None
void NXOpen::CAE::FunctionBuilder::GetTableData ( int *  recordIndex,
NXString recordName,
NXString recordTimestamp,
NXOpen::CAE::Function::InterpolationMethod interpolateMethod 
)

Returns data of a table function.

Only used when function type is NXOpen::CAE::Function::TypeTable
Created in NX5.0.0.

License requirements : None

Parameters
recordIndexBegins with one
recordNamerecord name
recordTimestampA time string indicating the last creating or editing time of an afu record
interpolateMethodinterpolate method
void NXOpen::CAE::FunctionBuilder::GetTypes ( NXOpen::CAE::Function::Type functionType,
NXOpen::CAE::XyFunctionMacroType macroType,
NXOpen::CAE::XyFunctionGeneralType generalType 
)

Returns types of a function
Created in NX5.0.0.



License requirements : None

Parameters
functionTypeMath function or Table function
macroTypeFor Motion Simulation or Advanced Simulation or General Purpose
generalTypeData type of function
void NXOpen::CAE::FunctionBuilder::GetUnits ( NXOpen::CAE::XyFunctionUnit xUnit,
NXOpen::CAE::XyFunctionUnit yUnit,
NXOpen::CAE::XyFunctionUnit frfUnit 
)

Returns units of a function
Created in NX5.0.0.



License requirements : None

Parameters
xUnitx unit
yUnity unit
frfUnitfrf unit
double NXOpen::CAE::FunctionBuilder::InitialEstimateValue ( )

Returns the initial value for function
Created in NX12.0.0.



License requirements : None

NXString NXOpen::CAE::FunctionBuilder::Name ( )

Returns the function name.

For math function, the name is function name. For table function, the name is the AFU file name with directory
Created in NX5.0.0.

License requirements : None

void NXOpen::CAE::FunctionBuilder::SetDefinitions ( std::vector< NXString > &  definitions)

Sets definition strings of a math function.

Only used when function type is NXOpen::CAE::Function::TypeMath
Created in NX5.0.0.

License requirements : None

Parameters
definitionsdefinitions
void NXOpen::CAE::FunctionBuilder::SetInitialEstimateValue ( double  val)

Sets the initial value for function
Created in NX12.0.0.



License requirements : None

Parameters
valval
void NXOpen::CAE::FunctionBuilder::SetMathPlotData ( int  dataCount,
double  xMinimum,
double  xIncrement 
)

Sets plot data setting for a math function.

Only used when function type is NXOpen::CAE::Function::TypeMath
Created in NX5.0.0.

License requirements : None

Parameters
dataCountdata count
xMinimumx minimum
xIncrementx increment
void NXOpen::CAE::FunctionBuilder::SetName ( const NXString name)

Sets the function name.

For math function, the name is function name. For table function, the name is the AFU file name with directory
Created in NX5.0.0.

License requirements : None

Parameters
namename
void NXOpen::CAE::FunctionBuilder::SetName ( const char *  name)

Sets the function name.

For math function, the name is function name. For table function, the name is the AFU file name with directory
Created in NX5.0.0.

License requirements : None

Parameters
namename
void NXOpen::CAE::FunctionBuilder::SetReferencedObjects ( const std::vector< NXOpen::CAE::Function * > &  objects)

Sets referenced objects of a math function.

Only used when function type is NXOpen::CAE::Function::TypeMath
Created in NX5.0.0.

License requirements : None

Parameters
objectsobjects
void NXOpen::CAE::FunctionBuilder::SetTableData ( int  recordIndex,
const NXString recordName,
const NXString recordTimestamp,
NXOpen::CAE::Function::InterpolationMethod  interpolateMethod 
)

Sets data for a table function.

Only used when function type is NXOpen::CAE::Function::TypeTable
Created in NX5.0.0.

License requirements : None

Parameters
recordIndexBegins with one
recordNamerecord name
recordTimestampA time string indicating the creating or editing time of an afu record. The string could be returned by CAE::AfuManager::CreateRecord or CAE::AfuManager::EditRecord or CAE::AfuManager::GetAfuData
interpolateMethodinterpolate method
void NXOpen::CAE::FunctionBuilder::SetTableData ( int  recordIndex,
const char *  recordName,
const char *  recordTimestamp,
NXOpen::CAE::Function::InterpolationMethod  interpolateMethod 
)

Sets data for a table function.

Only used when function type is NXOpen::CAE::Function::TypeTable
Created in NX5.0.0.

License requirements : None

Parameters
recordIndexBegins with one
recordNamerecord name
recordTimestampA time string indicating the creating or editing time of an afu record. The string could be returned by CAE::AfuManager::CreateRecord or CAE::AfuManager::EditRecord or CAE::AfuManager::GetAfuData
interpolateMethodinterpolate method
void NXOpen::CAE::FunctionBuilder::SetTypes ( NXOpen::CAE::Function::Type  functionType,
NXOpen::CAE::XyFunctionMacroType  macroType,
NXOpen::CAE::XyFunctionGeneralType  generalType 
)
void NXOpen::CAE::FunctionBuilder::SetUnits ( NXOpen::CAE::XyFunctionUnit  xUnit,
NXOpen::CAE::XyFunctionUnit  yUnit,
NXOpen::CAE::XyFunctionUnit  frfUnit 
)

Sets units of a function
Created in NX5.0.0.



License requirements : None

Parameters
xUnitx unit
yUnity unit
frfUnitfrf unit

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