Ordinate dimensions references WCS instead of UCS when adding ordinate dimensions using VBA

Ordinate dimensions references WCS instead of UCS when adding ordinate dimensions using VBA

prakashshahA5HG8
Explorer Explorer
509 Views
2 Replies
Message 1 of 3

Ordinate dimensions references WCS instead of UCS when adding ordinate dimensions using VBA

prakashshahA5HG8
Explorer
Explorer

Although I have new UCS created and activated, when I add an ordinate dimension using VBA it references WCS instead of the UCS. But, When I add the ordinate dimension manually it works well. How can we fix this? I have attached an image below.

0 Likes
Accepted solutions (1)
510 Views
2 Replies
Replies (2)
Message 2 of 3

Ed__Jobe
Mentor
Mentor
Accepted solution

All the AddEntity methods work with the WCS. At that time, the Measurement property is set to the value of the defining point, which is in wcs units. The dim object knows what coordinate system it was created in and if you move the origin, the Measurement property is changed, but in the units of the coordinate system in which it was created. I don't see a way to alter this in the ActiveX api.

 

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 3

Ed__Jobe
Mentor
Mentor

Here's how you can do it in C#.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes