Skip to content

Commit

Permalink
adds basecurves for parcel segments (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
clairekuang authored Oct 23, 2024
1 parent 29cf132 commit 797a2b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ IConverterSettingsStore<Civil3dConversionSettings> converterSettings

case CDB.FeatureLine:
case CDB.Parcel:
case CDB.ParcelSegment:
return new() { _curveConverter.Convert(entity.BaseCurve) };

// for any entities where basecurve prop doesn't make sense
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public Base Convert(CDB.Entity target)
private List<Base>? GetSiteChildren(CDB.Site site)
{
List<Base> parcels = new();

using (var tr = _settingsStore.Current.Document.Database.TransactionManager.StartTransaction())
{
foreach (ADB.ObjectId parcelId in site.GetParcelIds())
Expand All @@ -115,6 +114,7 @@ public Base Convert(CDB.Entity target)

tr.Commit();
}

return parcels.Count > 0 ? parcels : null;
}

Expand Down

0 comments on commit 797a2b7

Please sign in to comment.