Add Radius Dimension iLogic

Add Radius Dimension iLogic

Anonymous
Not applicable
526 Views
1 Reply
Message 1 of 2

Add Radius Dimension iLogic

Anonymous
Not applicable

Hello everybody,

I am trying to add a Radius dimension with tolerance to a specific curve on a drawing.

Can anyone advise how I can select/get the curve as a GeometryIntent in order to add the dimension ?

oSheet.DrawingDimensions.GeneralDimensions.AddRadius(Point2d, My Curve as GeometryIntent)

 can I select the geometry by adding workpoints in the 3D model ? (center + 2 points) ? or is there a way to attribute a name to the curve in the 3D model and then import it to the drawing ?

Thanks in advance,

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

Anonymous
Not applicable

I found the solution by searching for drawing arcs that have the centerpoit equal to centerpoint of corresponding radius.

Dim oCurves As DrawingCurvesEnumerator = oView.DrawingCurves

For Each oC As DrawingCurve In oCurves
	
	If oC.CurveType = CurveTypeEnum.kCircularArcCurve Then
		If oC.CenterPoint.IsEqualTo(oCenter) Then
			
			Dim oInt As GeometryIntent = oSheet.CreateGeometryIntent(oC)
			oDim11 = oSheet.DrawingDimensions.GeneralDimensions.AddRadius(oPt_txt, oInt,,,,oNewStyle)
			
			
			Exit For
		End If	
	End If
Next

 

 

0 Likes