ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
TSTony Szuta23/03/2009
Hello,

I am in need of a quick and dirty macro to select all dimensions on a drawing and center them. How would I go about traversing through and selecting all of the dimensions? I believe that the following line should center the dimension. I just don't know how to get all of the dimensions. Please keep in mind that the dimensions are on the drawing, not in a sketch or in the model.

swModel.EditDimensionProperties2 0, 0, 0, "", "", 1, 9, 2, 1, 12, 12, "", "", 1, "", "", 1

Thank you in advance for your help.