Public Sub SetParameter() ' Get the Parameters object. Assumes a part or assembly document is active. Dim oParameters As Parameters Set oParameters = ThisApplication.ActiveDocument.ComponentDefinition.Parameters ' Get the parameter named "Length". Dim oLengthParam As Parameter Set oLengthParam = oParameters.Item("Length") ' Change the equation of the parameter. oLengthParam.Expression = "3.5 in" ' Update the document. ThisApplication.ActiveDocument.Update End Sub