iLogic Change Arrow Size in Drawing

iLogic Change Arrow Size in Drawing

Anonymous
Not applicable
642 Views
3 Replies
Message 1 of 4

iLogic Change Arrow Size in Drawing

Anonymous
Not applicable

Hello
Anyone have the code, logic, resize arrowheads? Now there is a font that adjusts the font size but the arrow size doesn't change accordingly. this is the code i have

 

'set active document as drawing document
Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument

'get the active dim style
Dim oDStyle As DimensionStyle
oDStyle = oDoc.StylesManager.ActiveStandardStyle. _
ActiveObjectDefaults.LinearDimensionStyle

'get current font size
Dim sFontSize As String
sFontSize = oDStyle.TextStyle.FontSize

'get user input
oInput = InputBox("Active Dimesnion Style = " &  oDStyle.Name _
& vbLf & vbLf &  "Enter a new font size in mm." , "Text height", _
Round(sFontSize / 0.1,3))

'set font size for dim style
oDStyle.TextStyle.FontSize = oInput * 0.1

 

pangslafz_0-1636536519347.png

 

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

theo.bot
Collaborator
Collaborator
Accepted solution

The ArrowheadHeigth and ArrowheadSize are properties of the Dimension Style. So in your rule you could add the following. Be aware of the Unit type that you enter, in this case it's the default unit (cm):

 

oDStyle.ArrowheadSize = 0.5
oDStyle.ArrowheadHeight = 1

 

Message 3 of 4

Anonymous
Not applicable

 

thanks it works

 

 

0 Likes
Message 4 of 4

marko.uzarevicFWG4G
Participant
Participant
Hello Anonymous 386, by me this not work. Can you send me the whole code please? Thank you
 
 
0 Likes