04-30-2018
12:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-30-2018
12:12 AM
Hoping that below iLogic code would help to edit user parameter.
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
Thanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network
