Control "Change Arrowhead" on Drawing View

Control "Change Arrowhead" on Drawing View

ngdnam88
Advocate Advocate
247 Views
1 Reply
Message 1 of 2

Control "Change Arrowhead" on Drawing View

ngdnam88
Advocate
Advocate

Dears,

I'm trying controlling "Arrowhead" on drawing view like this. Is it possible to do it?

I wanna do it in case: If value dim = a and drawing view is 1:10 then change arrowhead to...

Please help me. Thanks!

ngnam1988_0-1718783351050.png

 

0 Likes
248 Views
1 Reply
Reply (1)
Message 2 of 2

TomaszDabrowski
Autodesk
Autodesk

You can try to adjust the following rule to your needs. 

In line 3, set the desired value conditions (I set it to values less than 100).

In line 4, set the view scale (I set it to 1:10).

Also - consider checking the dimension type (should it work for all dimension types, or just for linear?)

Dim oDoc As DrawingDocument = ThisDoc.Document
For Each dimension As DrawingDimension In oDoc.ActiveSheet.DrawingDimensions
	If dimension.ModelValue <10 Then 'divide value by 10
		If dimension.IntentOne.Geometry.parent.scale = 0.1 Then
			dimension.FirstArrowheadType = ArrowheadTypeEnum.kCircleArrowheadType
			dimension.SecondArrowheadType = ArrowheadTypeEnum.kCircleArrowheadType
		End If
	End If
Next

 

Tomasz Dąbrowski
Technical Support Specialist
Customer Technical Success