Complete the code to insert a component into the assembly.
AssemblyDoc.InsertComponent([1]);The InsertComponent method requires the file path of the component to insert, such as "Part1.sldprt".
Complete the code to set the position of the inserted component.
Component.SetPosition([1]);The SetPosition method requires a vector specifying the X, Y, and Z coordinates, such as new Vector3(0, 0, 0).
Fix the error in the code to properly insert a component with a given file path.
AssemblyDoc.[1]("Part2.sldprt");
The correct method to insert a component into an assembly is InsertComponent.
Fill both blanks to insert a component and set its position.
var comp = AssemblyDoc.[1]("Part3.sldprt"); comp.[2](new Vector3(10, 5, 0));
First, InsertComponent inserts the component. Then, SetPosition sets its location.
Fill all three blanks to insert a component, set its position, and fix its orientation.
var comp = AssemblyDoc.[1]("Part4.sldprt"); comp.[2](new Vector3(0, 0, 0)); comp.[3](Quaternion.Identity);
InsertComponent inserts the part, SetPosition places it, and SetOrientation fixes its rotation.
