This is possible with VB...
You might try by recording a macro then using the VBA interface to add the dialog and customize it to the way you want...
To record a macro...
Start a fresh session of SW... (or just close your file)
Click
Tools>Macro>Record
Open Your Part...
Modify the Dimensions you need to...
You Can Save the part if you want to (optional)
Then Stop the macro...
1) on the Macro toolbar that pops up when you start recording
2)
Tools>Macro>Stop...
And Save The Macro to a (*.swp) file...
Now Click
Tools>Macro>Edit...
And open the (*.swp) file you just saved...
It should look something like this...
Code:
Dim swApp As Object
Dim Part As Object
Dim boolstatus As Boolean
Dim longstatus As Long
Dim Annotation As Object
Dim Gtol As Object
Dim DatumTag As Object
Dim FeatureData As Object
Dim Feature As Object
Dim Component As Object
Sub main()
Set swApp = CreateObject("SldWorks.Application")
Set Part = swApp.ActiveDoc
swApp.ActiveDoc.ActiveView.FrameState = 1
swApp.LoadFile2 "C:\Documents and Settings\hbb3336\My Documents\Sldworks_Local\Hole Ex 1.SLDPRT", ""
Set Part = swApp.ActiveDoc
Set Part = swApp.OpenDoc4("C:\TEST 1.SLDPRT", 1, 0, "", longstatus)
swApp.ActiveDoc.ActiveView.FrameLeft = 0
swApp.ActiveDoc.ActiveView.FrameTop = 0
swApp.ActiveDoc.ActiveView.FrameState = 1
Set Part = swApp.ActivateDoc("Hole Ex 1.SLDPRT")
swApp.ActiveDoc.ActiveView.FrameState = 1
Part.SelectByID "Base-Extrude", "BODYFEATURE", 0, 0, 0
Part.ActivateSelectedFeature
Part.SelectByID "D1@Base-Extrude@Hole Ex 1.SLDPRT", "DIMENSION", 0.1207237397398, 0.02583015579621, -0.05764969775036
Part.Parameter("D1@Base-Extrude").SystemValue = 0.1778
Part.ClearSelection
Part.EditRebuild
Part.SaveAs2 "C:\TEST 2.SLDPRT", 0, False, False
Part.Save2 False
End Sub
Notes:
This Opens the document...
Set Part = swApp.OpenDoc4("C:\TEST 1.SLDPRT", 1, 0, "", longstatus)
This Selects the Feature You Selected...
Part.SelectByID "Base-Extrude", "BODYFEATURE", 0, 0, 0
This Activates the Selected Feature...
Part.ActivateSelectedFeature
This Selects the Dimension You Selected...
Part.SelectByID "D1@Base-Extrude@Hole Ex 1.SLDPRT", "DIMENSION", 0.1207237397398, 0.02583015579621, -0.05764969775036
This Sets the Value For the selected Dim...
Part.Parameter("D1@Base-Extrude"

.SystemValue = 0.1778
*NOTE* ALL VALUES IN SW VBA MUST BE METRIC and/or CONVERTED TO METRIC
This Saves the document with a New Name...
Part.SaveAs2 "C:\TEST 2.SLDPRT", 0, False, False
This Saves the document With The Current Name...
Part.Save2 False
Let Me Know if you need further Help with the VB side...
Hope This Helps, Good Luck
Thanks,
--Josh--