Hi All, we are trying to create a macro that overrides a dimension in a drawing with an "=" we currently have it working with:
Sub main()
Set swApp = _
Application.SldWorks
Set Part = swApp.ActiveDoc
boolstatus = Part.EditDimensionProperties2(0, 0, 0, "", "", True, 9, 1, True, 12, 12, "=", "", False, "", "", True)
Part.ClearSelection2 True
End Sub
But this sets the prefix text to "=" and returns a false value to "ShowValue", this works but I would like to use the override value in the Dimension properties as this would be the correct way to do it. Have hunted around but can't seem to find this.
Please bear in mind that I am completely new to API.
Thanks
SolidworksApi macros