The following functions are available for the Advanced Link tool. Click here to return to the main page.
More...
◆ AddAdvLink()
void vsp::AddAdvLink |
( |
const string & | name | ) |
|
|
extern |
Add an advanced link
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
void AddAdvLinkInput(int index, const string &parm_id, const string &var_name)
void SetAdvLinkCode(int index, const string &code)
int GetLinkIndex(const string &name)
void AddAdvLink(const string &name)
void AddAdvLinkOutput(int index, const string &parm_id, const string &var_name)
bool BuildAdvLinkScript(int index)
std::string AddGeom(const std::string &type, const std::string &parent=std::string())
std::string FindParm(const std::string &parm_container_id, const std::string &parm_name, const std::string &group_name)
std::string GetParm(const std::string &geom_id, const std::string &name, const std::string &group)
- Parameters
-
[in] | name | string Name for advanced link |
◆ AddAdvLinkInput()
void vsp::AddAdvLinkInput |
( |
int | index, |
|
|
const string & | parm_id, |
|
|
const string & | var_name ) |
|
extern |
Add an input variable to an advanced link
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
- Parameters
-
[in] | index | int Advanced link index |
[in] | parm_id | string Parameter ID for advanced link input variable |
[in] | var_name | string Name for advanced link input variable |
◆ AddAdvLinkOutput()
void vsp::AddAdvLinkOutput |
( |
int | index, |
|
|
const string & | parm_id, |
|
|
const string & | var_name ) |
|
extern |
Add an output variable to an advanced link
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
- Parameters
-
[in] | index | int Advanced link index |
[in] | parm_id | string Parameter ID for advanced link output variable |
[in] | var_name | string Name for advanced link output variable |
◆ BuildAdvLinkScript()
bool vsp::BuildAdvLinkScript |
( |
int | index | ) |
|
|
extern |
Build (ready for execution and perform syntax check) an advanced link.
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
if ( success )
{
Print( "Advanced link build successful." );
}
else
{
Print( "Advanced link build not successful." );
}
- Parameters
-
[in] | index | int Index for advanced link |
- Returns
- Flag indicating whether advanced link build was successful
◆ DelAdvLink()
void vsp::DelAdvLink |
( |
int | index | ) |
|
|
extern |
Delete an advanced link specified by index
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
for( int n = 0 ; n < int( link_array.length() ) ; n++ )
{
Print( link_array[n] );
}
std::vector< std::string > GetAdvLinkNames()
void DelAdvLink(int index)
- Parameters
-
[in] | index | Index for advanced link |
◆ DelAdvLinkInput()
void vsp::DelAdvLinkInput |
( |
int | index, |
|
|
const string & | var_name ) |
|
extern |
Delete an input variable from an advanced link
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
string y_pos =
GetParm( pod,
"Y_Rel_Location",
"XForm" );
void DelAdvLinkInput(int index, const string &var_name)
- Parameters
-
[in] | index | int Advanced link index |
[in] | var_name | string Name for advanced link input variable to delete |
◆ DelAdvLinkOutput()
void vsp::DelAdvLinkOutput |
( |
int | index, |
|
|
const string & | var_name ) |
|
extern |
Delete an output variable from an advanced link
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
string y_pos =
GetParm( pod,
"Y_Rel_Location",
"XForm" );
void DelAdvLinkOutput(int index, const string &var_name)
- Parameters
-
[in] | index | int Advanced link index |
[in] | var_name | string Name for advanced link output variable to delete |
◆ DelAllAdvLinks()
void vsp::DelAllAdvLinks |
( |
| ) |
|
|
extern |
Delete all advanced links
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
for( int n = 0 ; n < int( link_array.length() ) ; n++ )
{
Print( link_array[n] );
}
◆ GetAdvLinkCode()
std::string vsp::GetAdvLinkCode |
( |
int | index | ) |
|
|
extern |
Get the code from an advanced link
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
Print( code );
std::string GetAdvLinkCode(int index)
- Parameters
-
[in] | index | int Index for advanced link |
- Returns
- String containing advanced link code
◆ GetAdvLinkInputNames()
std::vector< std::string > vsp::GetAdvLinkInputNames |
( |
int | index | ) |
|
|
extern |
Get the name of all the inputs to a specified advanced link index
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
for( int n = 0 ; n < int( name_array.length() ) ; n++ )
{
Print( name_array[n] );
}
std::vector< std::string > GetAdvLinkInputNames(int index)
- Parameters
-
[in] | index | int Advanced link index |
- Returns
- Array of advanced link input names
◆ GetAdvLinkInputParms()
std::vector< std::string > vsp::GetAdvLinkInputParms |
( |
int | index | ) |
|
|
extern |
Get the Parm IDs of all the inputs to a specified advanced link index
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
for( int n = 0 ; n < int( parm_array.length() ) ; n++ )
{
Print( parm_array[n] );
}
std::vector< std::string > GetAdvLinkInputParms(int index)
- Parameters
-
[in] | index | int Advanced link index |
- Returns
- Array of advanced link input Parm IDs
◆ GetAdvLinkNames()
std::vector< std::string > vsp::GetAdvLinkNames |
( |
| ) |
|
|
extern |
Get an array of all advanced link names
for( int n = 0 ; n < int( link_array.length() ) ; n++ )
{
Print( link_array[n] );
}
- Returns
- Array of advanced link names
◆ GetAdvLinkOutputNames()
std::vector< std::string > vsp::GetAdvLinkOutputNames |
( |
int | index | ) |
|
|
extern |
Get the Parm IDs of all the outputs to a specified advanced link index
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
for( int n = 0 ; n < int( name_array.length() ) ; n++ )
{
Print( name_array[n] );
}
std::vector< std::string > GetAdvLinkOutputNames(int index)
- Parameters
-
[in] | index | int Advanced link index |
- Returns
- Array of advanced link output names
◆ GetAdvLinkOutputParms()
std::vector< std::string > vsp::GetAdvLinkOutputParms |
( |
int | index | ) |
|
|
extern |
Get the Parm IDs of all the outputs to a specified advanced link index
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
for( int n = 0 ; n < int( parm_array.length() ) ; n++ )
{
Print( parm_array[n] );
}
std::vector< std::string > GetAdvLinkOutputParms(int index)
- Parameters
-
[in] | index | int Advanced link index |
- Returns
- Array of advanced link output Parm IDs
◆ GetLinkIndex()
int vsp::GetLinkIndex |
( |
const string & | name | ) |
|
|
extern |
Find the index of a specific advanced link.
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
- Parameters
-
[in] | name | string Name for advanced link |
- Returns
- index for advanced link
◆ SearchReplaceAdvLinkCode()
void vsp::SearchReplaceAdvLinkCode |
( |
int | index, |
|
|
const string & | from, |
|
|
const string & | to ) |
|
extern |
Search and replace strings in the advanced link code
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
Print( code );
void SearchReplaceAdvLinkCode(int index, const string &from, const string &to)
- Parameters
-
[in] | index | int Index for advanced link |
[in] | from | string Search token |
[in] | to | string Replace token |
◆ SetAdvLinkCode()
void vsp::SetAdvLinkCode |
( |
int | index, |
|
|
const string & | code ) |
|
extern |
Get the code from an advanced link
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
- Parameters
-
[in] | index | int Index for advanced link |
[in] | code | string Code for advanced link |
◆ ValidateAdvLinkParms()
bool vsp::ValidateAdvLinkParms |
( |
int | index | ) |
|
|
extern |
Validate the input and output parameters for an advanced link
string length =
FindParm( pod,
"Length",
"Design" );
string x_pos =
GetParm( pod,
"X_Rel_Location",
"XForm" );
if ( valid )
{
Print( "Advanced link Parms are valid." );
}
else
{
Print( "Advanced link Parms are not valid." );
}
bool ValidateAdvLinkParms(int index)
- Parameters
-
[in] | index | int Index for advanced link |
- Returns
- Flag indicating whether parms are valid