Have a look at IDimXpertDimensionOption.DimensionPositionOption property.
Thank you for your reply.
When I set [swDimXPertDimOpt.DimensionPositionOption = 0], a normal direction dimension is created.
When [swDimXPertDimOpt.DimensionPositionOption = 1], a horizontal dimension is created. ( below X Direction )
I want to draw a Vertical Dimension. ( below Z Direction )
I set [swDimXPertDimOpt.DimensionPositionOption = 0/1/2], but vertical dimension isn't created.
Can I make vertical dimension by VBA?
You are right, it only works when the cut direction is parallel to Z axis. But if the cut direction is parallel to any other axis, then it doesn't place the dimension in right orientation. It still shows correct dimension value though.
API helps indicates to use 1 for horizontal axis and 2 for vertical axis, but seems like, it only works for X and Y axis not for Z. Not sure how to fix it. I will contact API support and see what they reply.