I need i peace of VBA code, that grabs the value from "D6@Sketch1", so that I can make calculations in the macro.
Basically i would like
Dim dblValue as Double to be equal to D6@Sketch1"
See this thread:
how do I get a solidworks sketch dimensional value
The returned value is in system units, so you might need to convert it:
dblValue = vDimVal(0) / 0.0254
Thanks alot! it worked.
Though for some reason there is a space before and after the value. Can you tell me why that is?
Post the line where you're getting the value.
Retrieving data ...