ModelCenter/src/ModelCenter.odl (line 121)
COM Instance.
Examples:
Adding to the Model:
This example is of adding a Trade Study or Data Collector Plug-In to the Model as a Component.
Members
- addInput
- addInput2
- addMethod
- addOutput
- addOutput2
- addToModel
- addToModel2
- addToModel3
- autoRun
- clearBusyFlag
- getComponent
- getProgID
- getRegID
- prevalidateInputs
- setAuthor
- setComponentRequirements
- setDescription
- setHelpURL
- setIcon
- setKeywords
- setVersion
- updateComponent
Properties
Property prevalidateInputs
ModelCenter/src/ModelCenter.odl (line 1)
prevalidateInputs property of the Component:
Property autoRun
ModelCenter/src/ModelCenter.odl (line 1)
autoRun property:
Public functions
Function addToModel
run() method.
Return type: void
Function updateComponent
run() method.
Return type: void
Function getComponent
IAddToModel object’s IComponent object.
Returns:
IDispatch* to an IComponent object.
Return type: IDispatch *
Function getRegID
IAddToModel object for the Registry ID:
Function addInput
IAddToModel object IO structure. The IAddToModel object’s input variables are updated when the addToModel() or updateComponent() methods are called.
Parameters:
- name: The name of the pending variable.
-
type: The type of the variable. Add ”[]” to the end of the type to indicate an array.
Valid types include: - “double” - double
- “int” - integer
- “string” - string
- “bool” - boolean
- “ref” - reference
- “file” - A binary or ascii file
- “object” - object variable (The default class type “PHXNonStrictType” will be used)
- “quad” - Quad Facet Geometry, a geometry type composed of multiple quadrilaterals.
- “sor” - Surface of Revolution, a geometry type defined by a profile curve rotated about an axis.
- “nurbs” - A geometry type for NURBS.
- “bspline” - A geometry type for B-Spline curves.
- “ruled” - A geometry type for ruled surfaces.
- “skinned” - A geometry type for skinned surfaces.
- “node” - A geometry type for displaying multiple points in space.
-
value: Value of the variable. If the variable is an array, then each variable value should be separated by a semi-colon:
addInput( “myVar”, “double[]”, “0;1;2.3;4.56” )
- BSTR name
- BSTR type
- [optional] VARIANT value
Function addOutput
IAddToModel object IO structure. The IAddToModel object’s output variables are updated when the addToModel() or updateComponent() methods are called.
Parameters:
- name: The name of the pending variable.
-
type: The type of the variable. Add ”[]” to the end of the type to indicate an array.
Valid types include: - “double” - double
- “int” - integer
- “string” - string
- “bool” - boolean
- “ref” - reference
- “file” - A binary or ascii file
- “object” - object variable (The default class type “PHXNonStrictType” will be used)
- “quad” - Quad Facet Geometry, a geometry type composed of multiple quadrilaterals.
- “sor” - Surface of Revolution, a geometry type defined by a profile curve rotated about an axis.
- “nurbs” - A geometry type for NURBS.
- “bspline” - A geometry type for B-Spline curves.
- “ruled” - A geometry type for ruled surfaces.
- “skinned” - A geometry type for skinned surfaces.
- “node” - A geometry type for displaying multiple points in space.
-
value: Value of the variable. If the variable is an array, then each variable value should be separated by a semi-colon:
addInput( “myVar”, “double[]”, “0;1;2.3;4.56” )
- BSTR name
- BSTR type
- [optional] VARIANT value
Function getProgID
Function setAuthor
- author: The author of this Plug-In.
- BSTR author
Function setDescription
- description: The description for this Plug-In.
- BSTR description
Function setVersion
- version: The version information for this Plug-In.
- BSTR version
Function setHelpURL
- helpURL: The help URL for this Plug-In.
- BSTR helpURL
Function setKeywords
- keywords: The keywords for this Plug-In.
- BSTR keywords
Function clearBusyFlag
Function addToModel2
run() method.
Returns:
Whether or not the operation completed successfully.
Return type: boolean
Function setComponentRequirements
- compReq: A comma separated list of requirement specifiers for this Plug-In.
- BSTR compReq
Function setIcon
- iconFile: The file path to the icon file.
- BSTR iconFile
Function addMethod
- name: The name of the method.
- displayName: The display name of the method.
- BSTR name
- [optional] VARIANT displayName
Function addInput2
IAddToModel object IO structure. The IAddToModel object’s input variables are updated when the addToModel() or updateComponent() methods are called. This method can be used to add an “object” variable with a specified class type.
Parameters:
- name: The name of the pending variable.
-
type: The type of the variable. Add ”[]” to the end of the type to indicate an array.
Valid types include: - “double” - double
- “int” - integer
- “string” - string
- “bool” - boolean
- “ref” - reference
- “file” - A binary or ascii file
- “object” - object variable (The default class type “PHXNonStrictType” will be used if classURL is empty)
- “quad” - Quad Facet Geometry, a geometry type composed of multiple quadrilaterals.
- “sor” - Surface of Revolution, a geometry type defined by a profile curve rotated about an axis.
- “nurbs” - A geometry type for NURBS.
- “bspline” - A geometry type for B-Spline curves.
- “ruled” - A geometry type for ruled surfaces.
- “skinned” - A geometry type for skinned surfaces.
- “node” - A geometry type for displaying multiple points in space.
- classURL: Class of the object variable. If an empty string is passed, PHXNonStrictType will be used.
-
value: Value of the variable. If the variable is an array, then each variable value should be separated by a semi-colon:
addInput( “myVar”, “double[]”, “0;1;2.3;4.56” )
- BSTR name
- BSTR type
- BSTR classURL
- [optional] VARIANT value
Function addOutput2
IAddToModel object IO structure. The IAddToModel object’s output variables are updated when the addToModel() or updateComponent() methods are called.
Parameters:
- name: The name of the pending variable.
-
type: The type of the variable. Add ”[]” to the end of the type to indicate an array.
Valid types include: - “double” - double
- “int” - integer
- “string” - string
- “bool” - boolean
- “ref” - reference
- “file” - A binary or ascii file
- “object” - object variable (The default class type “PHXNonStrictType” will be used)
- “quad” - Quad Facet Geometry, a geometry type composed of multiple quadrilaterals.
- “sor” - Surface of Revolution, a geometry type defined by a profile curve rotated about an axis.
- “nurbs” - A geometry type for NURBS.
- “bspline” - A geometry type for B-Spline curves.
- “ruled” - A geometry type for ruled surfaces.
- “skinned” - A geometry type for skinned surfaces.
- “node” - A geometry type for displaying multiple points in space.
- classURL: Class of the object variable. If an empty string is passed, PHXNonStrictType will be used.
-
value: Value of the variable. If the variable is an array, then each variable value should be separated by a semi-colon:
addInput( “myVar”, “double[]”, “0;1;2.3;4.56” )
- BSTR name
- BSTR type
- BSTR classURL
- [optional] VARIANT value
Function addToModel3
run() method.
Parameters:
- suggestedName: Desired name for the component. This name will be used unless a component of that name already exists, in which case the variable name will be the desired name plus a number tagged on to the end.
- BSTR suggestedName