Community
Hi.
With Civil 3D we can add a new breakline if it is an entity ARC.
However, I´m trying to do the same with API and doesn´t work.
if (ents.Count > 0) //si la capa tiene entidades. { switch (TipoLineaRotura) { case 2: oSurface.BreaklinesDefinition.AddNonDestructiveBreaklines(ents, distanciaFlecha_F2); break; case 1: oSurface.BreaklinesDefinition.AddProximityBreaklines(ents, distanciaFlecha_F2); break; case 0: default: oSurface.BreaklinesDefinition.AddStandardBreaklines(ents, distanciaFlecha_F2, distancia_F2, distancia_F1, functions.funciones_genéricas.centesimal_radian(angulo_F1)); break; } SurfaceDefinitionBreaklines brkdefs = oSurface.BreaklinesDefinition; SurfaceOperationAddBreakline brklines = brkdefs[i]; brklines.Description = listaCapas[i].Name; }
I can create breaklines for POLYLINES,LINES,LWPOLYLINES,SPLINE,AECC_SVFIGURE,AECC_PARCEL_SEGMENT and no problem if the type is (standard,proximity or non destructive).
neither there is a problem with polylines which include segment curves.
I can not add a ARC entity because debugger stop there:
oSurface.BreaklinesDefinition.AddStandardBreaklines(ents, distanciaFlecha_F2, distancia_F2, distancia_F1, functions.funciones_genéricas.centesimal_radian(angulo_F1));
Y have also checked with: (with implementation factor values)
oSurface.BreaklinesDefinition.AddStandardBreaklines(ents, 1, 0.5, 0, 0);
This trouble is only for ARC entities.
Thank you.