Complete the code to create a new assembly in SolidWorks.
AssemblyDoc = swApp.[1]("Assembly")
Use NewDocument to create a new assembly document in SolidWorks.
Complete the code to add a component to the assembly.
AssemblyDoc.[1]("C:\\Parts\\Part1.sldprt")
The correct method to add a component is AddComponent.
Fix the error in the code to mate two components correctly.
AssemblyDoc.MateComponents(comp1, comp2, [1])Use MateType.CONCENTRIC to mate cylindrical faces concentrically.
Fill both blanks to define a flexible subassembly and suppress a component.
AssemblyDoc.[1]("Subassembly1", True) AssemblyDoc.Components["Component1"].[2]()
Use SetSubassemblyFlexibility to make a subassembly flexible and SuppressComponent to suppress a component.
Fill all three blanks to update the assembly, rebuild, and save it.
AssemblyDoc.[1]() AssemblyDoc.[2]() AssemblyDoc.[3]("C:\\Assemblies\\Assembly1.sldasm")
First, Update the assembly, then Rebuild it, and finally SaveAs to save the file.
