Text position of linear drawing dimension

Text position of linear drawing dimension

m_baczewski
Advocate Advocate
267 Views
2 Replies
Message 1 of 3

Text position of linear drawing dimension

m_baczewski
Advocate
Advocate

Hi, after changing the position of the linear dimension text, the dimension lines become dashed. How can I make them solid again? I wrote a short code for this and it looks like the one below:

 

Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument

Dim oSheet As Sheet
oSheet = oDoc.ActiveSheet

Dim oTG As TransientGeometry = ThisApplication.TransientGeometry

Dim point As Point2d
Dim point1 As Point2d

Dim oDimensions As DrawingDimensions
oDimensions = oSheet.DrawingDimensions

Dim oDimension As LinearGeneralDimension
oDimension = oDimensions.Item(12)

point = oTG.CreatePoint2d(25.71,14.2)


oDimension.Text.Origin = point

 

 

Image before the changes:

2023-07-26_14h48_59.png

Image after the changes:

2023-07-26_14h49_12.png

 

 

 

 

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

dalton98
Collaborator
Collaborator
oDimension.Style.LineType = LineTypeEnum.kContinuousLineType
0 Likes
Message 3 of 3

Michael.Navara
Advisor
Advisor

I tested your code and I can't confirm this behavior. Everything works as expected.

The issue is not in code.

0 Likes