These map directly to Inventor Parameters. Both model and user parameters can be used here.
BaseAssembly
InvObjectMixin
RULE NAME |
DESCRIPTION |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
invName |
Name of parameter. |
String |
"" |
Inventor |
Cached Required |
invUnit |
Specify unit if Inventor parameter is not Text or Boolean type. For example: |
String |
"in" |
Inventor |
Cached |
invValue |
Specify value of the parameter. |
String |
"" |
Inventor |
Cached |
invParameterOriginalName |
This is the name that you want Inventor to see. (KB doesn't allow symbols but Inventor may need to have a name with symbols). |
String |
return "" |
Inventor |
Cached |
Project Example:
In your kBridge Examples Projects folder open the project called ‘Table_KB_Inventor_Example’.
Reference Location:
"world.tableapplication1.tables.tables0.tabletopgroup.tabletop0"
Link: https://knowledgebridge.engineer/projects
In the Example below, InvParameter has been dragged into ‘TableTop0’ and InvParametersGroup was produced.
These values were added to the invParameters rule:
return | [{ParameterName: "length", ParameterOriginalName: "length",ParameterUnits: "in"}, |
{ParameterName: "width", ParameterOriginalName: "width",ParameterUnits: "in"}, |
{ParameterName: "height", ParameterOriginalName: "height", ParameterUnits: "in"}, |
{ParameterName: "KBName", ParameterOriginalName: "$InventorName*", ParameterUnits: "text"}]; |
Note: In invParameters rule, ParameterOriginalName has a value of "$InventorName*". KBridge can't have a name with symbols in it but Inventor may need to receive a name
with symbols.
The Quantity was set at ‘this.invParameters.length’ which is a value of 4.
Notice the different values given to the parameter rules in each child.
Also InvParameter has been dragged into the ‘LegPair0’. These parameter values will be gathered up and will run your model in Inventor.