public void didLoadPcb() { _swModel = SwApp.NewDocument(@"C:\ProgramData\SolidWorks\SolidWorks 2012\templates\gost-assy.asmdot", 0, 0, 0); SwApp.ActivateDoc2("Assembly1", false, _longstatus); _swModel = SwApp.ActiveDoc; SwAssy = (AssemblyDoc)_swModel; SwApp.OpenDoc6(@"C:\Certificate\plata.SLDPRT", 1, 0, "", _longstatus, _longwarnings); SwAssy.AddComponent(@"C:\Certificate\plata.SLDPRT", Length / 2, Height / 2, -Width / 2); }