I used the following to create the drag element when initialising the vessel.
CreateVariableDragElement (&dg,1000.0,_V(0,0,100));
Then I used the following code in clbkPreStep to deploy the parachutes. When dg = 1.0 then the parachutes are fully deployed.
//parachutes
if (ap == 2) {...