Hi @A.K.CORTEL. Here is something that should work for that.
Dim oPDoc As PartDocument = ThisDoc.Document
Dim oPDef As PartComponentDefinition = oPDoc.ComponentDefinition
Dim oSketch As PlanarSketch = oPDef.Sketches.Item("CONICAL")
Dim oDims As DimensionConstraints = oSketch.DimensionConstraints
Dim oHeightDim As DimensionConstraint
Dim oAngleDim As DimensionConstraint
For Each oDim As DimensionConstraint In oDims
If oDim.Parameter.Name = "d84" Then
oHeightDim = oDim
ElseIf oDim.Parameter.Name = "CA" Then
oAngleDim = oDim
End If
Next
If oHeightDim.Driven Then
oAngleDim.Driven = True
oHeightDim.Driven = False
Else
oHeightDim.Driven = True
oAngleDim.Driven = False
End If
If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS) 👍.
Wesley Crihfield

(Not an Autodesk Employee)