Setting the radius of the curve. Civil 3D API

Setting the radius of the curve. Civil 3D API

durasovartyom
Advisor Advisor
244 Views
1 Reply
Message 1 of 2

Setting the radius of the curve. Civil 3D API

durasovartyom
Advisor
Advisor

Good day!

Is it possible to set values to change the radius of the curve ?

durasovartyom_0-1779102956850.png

 

Artyom Durasov

EESignature

0 Likes
Accepted solutions (1)
245 Views
1 Reply
Reply (1)
Message 2 of 2

hippe013
Advisor
Advisor
Accepted solution

@durasovartyom 

Yes, each subentity of an alignment is an AlignmentEntity which can be cast to its appropriate type.

 

Dim radius As Double = 600.0

For Each ent As AlignmentEntity In alignment.Entities
   If ent.EntityType = AlignmentEntityType.Arc Then
      Dim alignArc As AlignmentArc = CType(ent, AlignmentArc)
      alignArc.Radius = radius
   End If
Next