@RoyWickrama_RWEI,
Hoping that below iLogic code would help to edit user parameter of selected dimension.
Sub Main()
Dim oSelectedDim As DimensionConstraint
oSelectedDim = ThisApplication.Commandmanager.Pick(SelectionFilterEnum.kSketchDimConstraintFilter,"Select a dimension to change dimension")
If oSelectedDim.Parameter.DrivenBy.Count > 0 Then
Dim oUserParam As UserParameter
oUserParam = oSelectedDim.Parameter.DrivenBy.Item(1)
oUserParam.Expression = InputBox("Editing user parameter '" & oUserParam.Name & "'", "Edit user parameter", "10")
Else
MsgBox ("Selected dimension is not contianing any user parameter")
End If
iLogicVb.UpdateWhenDone = True
End Sub
Please feel free to contact if there is any queries.
If solves problem, click on "Accept as solution" / give a "Like".
Thanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network