Complete the code to apply a force in SolidWorks.
swModel.Extension.SelectByID2("Face1", "FACE", 0, 0, 0, false, 0, null, 0); swModel.AddForce([1], 0, 0);
The value 100 represents the magnitude of the force applied in Newtons.
Complete the code to apply pressure on a surface in SolidWorks.
swModel.Extension.SelectByID2("Surface1", "SURFACE", 0, 0, 0, false, 0, null, 0); swModel.AddPressure([1]);
The value 5000 represents the pressure magnitude in Pascals.
Fix the error in the code to correctly apply a force vector in SolidWorks.
swModel.Extension.SelectByID2("Face2", "FACE", 0, 0, 0, false, 0, null, 0); swModel.AddForce([1], 0, 100);
The force vector component must be numeric. Using 0 correctly sets the x-component of the force.
Fill both blanks to apply a force and pressure correctly in SolidWorks.
swModel.Extension.SelectByID2("Face3", "FACE", 0, 0, 0, false, 0, null, 0); swModel.AddForce([1], 0, 0); swModel.AddPressure([2]);
150 is the force magnitude in Newtons, and 3000 is the pressure magnitude in Pascals.
Fill all three blanks to apply a force vector and pressure in SolidWorks.
swModel.Extension.SelectByID2("Face4", "FACE", 0, 0, 0, false, 0, null, 0); swModel.AddForce([1], [2], 0); swModel.AddPressure([3]);
The force vector components are 200 (x), 0 (y), and pressure is 4000 Pascals.
