Complete the code to start a draft analysis in SolidWorks.
swApp = Application.SldWorks
model = swApp.ActiveDoc
model.[1]()The method RunDraftAnalysis() starts the draft analysis tool in SolidWorks.
Complete the code to set the draft angle to 5 degrees.
draftFeature = model.FeatureByName("Draft1") draftFeature.[1] = 5
The property Angle sets the draft angle value in degrees.
Fix the error in the code to retrieve the draft direction vector.
draftFeature = model.FeatureByName("Draft1") direction = draftFeature.[1]
The draft direction is accessed as a property DraftDirection, not a method.
Fill both blanks to set the draft face and enable the draft analysis.
face = model.[1]("Face1") draftFeature.[2] = True
Use GetEntityByName to get the face object and set IsDraftEnabled to True to enable draft analysis.
Fill all three blanks to create a draft analysis report with a threshold angle.
report = model.[1](threshold=[2]) report.[3]()
Use CreateDraftReport with a threshold angle of 5 degrees, then call Generate() to produce the report.
