I am trying to make and position dimensions on a drawing using a macro. I can successfully create dimensions, and I found a method .moveValue that will move the dimension, but I can't figure out how to use it correctly.
From the help document:
MyDimension.MoveValue(X, Y, SubPart, DimAngleBehavior)
Here is what I am currently trying:
Dim pinDimElements(1)
Dim pinDim As Object
pinDimElements(1) = Array(drwPin) 'drwPin is a circle I created earlier in the code.
Dim selpoints(3)
selpoints(3) = Array(0, 0, 0, 0)
Set pinDim = oActiveView.Dimensions.Add(9, pinDimElements(1), selpoints(3), 4)
Dim test As Object
Set test = pinDim.moveValue(0.5 * 25.4, 0.5 * 25.4, 5, 0)
This code actually does move the dimension where I want it, but I get the error: "Object required"
Are there any examples macros for manipulating dimensions? I am not finding very much with Google.
From the help document:
MyDimension.MoveValue(X, Y, SubPart, DimAngleBehavior)
Here is what I am currently trying:
Dim pinDimElements(1)
Dim pinDim As Object
pinDimElements(1) = Array(drwPin) 'drwPin is a circle I created earlier in the code.
Dim selpoints(3)
selpoints(3) = Array(0, 0, 0, 0)
Set pinDim = oActiveView.Dimensions.Add(9, pinDimElements(1), selpoints(3), 4)
Dim test As Object
Set test = pinDim.moveValue(0.5 * 25.4, 0.5 * 25.4, 5, 0)
This code actually does move the dimension where I want it, but I get the error: "Object required"
Are there any examples macros for manipulating dimensions? I am not finding very much with Google.