InsertComponent2_0

This command is used to insert a representation from a 2.0 component.

Note:

This command is not an oDesktop command, but it has been included here because it is tightly associated with the CreateComponent2_0 command, which is an oDesktop command.

UI Access Right click on a design in the Project Manager tree and select Insert Component 2.0
Parameters
Name Type Description

<FileName>

String

Specifies the filepath of the 2.0 component that has the desired representation

<RepresentationName> String Name of the representation to insert
<RepresentationId> Integer With this release, the only value accepted is -1.
Return Value

Boolean: True if placed; False if not placed.

 

Python Syntax  InsertComponent2_0(<FileName>, <RepresentationName>,<RepresentationId>)
Python Example

oDesign = oProject.SetActiveDesign("HFSSDesign1")

oDesign.InsertComponent2_0(

"D:/Designs/insCmdsAllDesigns.acmp2",

"Filter1",

-1)