API to set the dimension arrowhead properly in sketch

API to set the dimension arrowhead properly in sketch

Anonymous
Not applicable
555 Views
2 Replies
Message 1 of 3

API to set the dimension arrowhead properly in sketch

Anonymous
Not applicable

Hello,

 

I have created a SketchLine entity and trying to add aligned dimension by calling DimensionConstraints::AddTwoPointDistance(). It adds the dimension with inside arrowhead(Please see attached CurrentWorking.jpg), however, it would be nice if the dimension is added with outside arrowhead(Please see attached Expected.jpg).

 

Please let me know if there is any API to toggle the dimension arrowhead accordingly.

 

Thanks in advance!!!!!

0 Likes
556 Views
2 Replies
Replies (2)
Message 2 of 3

xiaodong_liang
Autodesk Support
Autodesk Support
Hi,

as far as I know, the object for dimension style of part has not been exposed. So no way to control the arrow style currently. And no API with DimensionConstraint to control the arrow, either. Even in UI, it looks no options. But at my side, when I drew a two points DimensionConstraint, the arrows are inside. The dimension value is smaller than yours. So it is strange to me why the arrow is outside at your side.
does this happen with any sketch?
0 Likes
Message 3 of 3

xiaodong_liang
Autodesk Support
Autodesk Support
I see, you seemed to attach the two pictures contrarily. you needed OUTSIDE, while Inventor draws INSIDE. So the expected picture should be OUTSIDE.
I am curious how you created the picture with the arrow OUTSIDE? 🙂
0 Likes