@marcin_bargiel ,
Try below iLogic code to change the dimensions of sketch.
d = InputBox("Enter d0", "Sketch dimensions", "4 in")
d1 = InputBox("Enter d1", "Sketch dimensions", "5 in")
d2 = InputBox("Enter d2", "Sketch dimensions", "35 deg")
Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
oSheet = oDoc.ActiveSheet
Dim oSketch As DrawingSketch
oSketch = oSheet.Sketches.Item(1)
Dim oConstraint As DimensionConstraint
For Each oConstraint In oSketch.DimensionConstraints
If oConstraint.Parameter.Name = "d0" Then
oConstraint.Parameter.Expression = d
Else If oConstraint.Parameter.Name = "d1" Then
oConstraint.Parameter.Expression = d1
Else If oConstraint.Parameter.Name = "d2" Then
oConstraint.Parameter.Expression = d2
End If
Next
Call oSketch.Solve
Thanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network