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.
Autocad C3D 2019 SP3, 2020 & 2021
Intel I9 9900K with frontal watercooler alphacool eisbaer 360 (original fans mounted in pull)- 3 fans Corsair 120 ML PRO in push.
MOBO Gygabyte Z390 Aorus Master- Corsair RGB Vengeance 64GB RAM (4x16) CL16
Nvidia Quadro RTX 4000
Samsung 970 EVO PLUS 1TB (unit C). Samsung 970 PRO 512GB (for data)
Power Supply: Corsair TX850M PLUS
Descubre mi programa VisorNET para Civil 3D:
https://apps.autodesk.com/CIV3D/es/Detail/Index?id=appstore.exchange.autodesk.com%3avisornet_windows32and64%3aes