소스 정보
- 저장소
- hebackus/c3d-api-plugin
- 최근 소스 활동
- 2026년 4월 9일 01:44
- 감지된 SKILL.md 언어
- 영어
- 스타
- 3
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/hebackus/c3d-api-plugin --skill c3d-mass-haul명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | c3d-mass-haul |
| description | Mass haul diagrams, free haul, overhaul, borrow/waste, balance lines |
Use this skill when working with mass haul diagrams, earthwork balance lines, free haul and overhaul distances, or borrow/waste site management.
Mass haul diagrams visualize cumulative earthwork volumes along an alignment, showing where material must be moved from cut zones to fill zones. The diagram plots cumulative volume (y-axis) against station (x-axis), producing a curve whose slope indicates cut (rising) or fill (falling) regions.
Key relationships:
Mass haul diagrams are primarily created through the Mass Haul Diagram wizard (command CreateMassHaulDiagram). The managed .NET API does not provide a MassHaulDiagram.Create() method. The API surface for reading existing mass haul data is also limited compared to other Civil 3D objects. Many operations require the wizard UI or report generation commands.
Note: The
MassHaulViewandMassHaulDiagramclasses may have limited property exposure depending on your Civil 3D version. Verify available members against the Object Browser for your target version.
Mass haul views are graphical entities in model space. Find them by iterating the block table record:
using (Transaction ts = db.TransactionManager.StartTransaction())
{
BlockTableRecord btr = (BlockTableRecord)ts.GetObject(
SymbolUtilityServices.GetBlockModelSpaceId(db), OpenMode.ForRead);
foreach (ObjectId id in btr)
{
Entity ent = (Entity)ts.GetObject(id, OpenMode.ForRead);
if (ent is MassHaulView mhView)
{
ed.WriteMessage($"\nMass Haul View: {mhView.Name}");
}
}
ts.Commit();
}
Creation is wizard-driven only:
// Trigger the built-in mass haul creation wizard
Application.DocumentManager.MdiActiveDocument.SendStringToExecute(
"CreateMassHaulDiagram ", true, false, false);
The wizard requires:
There is no silent/automated creation path through the managed .NET API.
Balance lines on a mass haul diagram indicate stations where cumulative cut equals cumulative fill. They define segments where material can be balanced internally:
Overhaul is computed from the mass haul diagram:
When a project cannot balance cut and fill internally:
These are configured in the mass haul wizard with station location, capacity, and description. The .NET API does not expose creation or modification of borrow/waste sites.
The mass haul curve plots cumulative volume vs. station:
Material lists define the cut and fill surfaces and are essential inputs to mass haul computation.
A material list references:
using (Transaction ts = db.TransactionManager.StartTransaction())
{
SampleLineGroup slg = (SampleLineGroup)ts.GetObject(
sampleLineGroupId, OpenMode.ForRead);
// Access material lists through the sample line group
// See c3d-quantity-takeoff skill for detailed material list access
ed.WriteMessage($"\nSample line group: {slg.Name}");
ts.Commit();
}
Swell and shrinkage factors directly impact the mass haul curve:
Adjusted Cut Volume = Raw Cut Volume x Swell Factor
Adjusted Fill Volume = Raw Fill Volume x Shrinkage Factor
These factors are set in the material list definition. The c3d-quantity-takeoff skill documents FillFactor as a multiplier.
using (Transaction ts = db.TransactionManager.StartTransaction())
{
SampleLineGroup slg = (SampleLineGroup)ts.GetObject(
sampleLineGroupId, OpenMode.ForRead);
ObjectIdCollection sampleLineIds = slg.GetSampleLineIds();
foreach (ObjectId slId in sampleLineIds)
{
SampleLine sl = (SampleLine)ts.GetObject(slId, OpenMode.ForRead);
ed.WriteMessage($"\nStation: {sl.Station:F2}");
// Volume data is computed via quantity takeoff at each station
// The mass haul diagram aggregates these into a cumulative curve
}
ts.Commit();
}
For detailed per-station volume data, use built-in reporting:
Application.DocumentManager.MdiActiveDocument.SendStringToExecute(
"GenerateQuantitiesReport ", true, false, false);
CreateMassHaulDiagram wizard command.MassHaulView is the graphical container in the drawing. The MassHaulDiagram is the data object. A view can display multiple diagrams.GenerateQuantitiesReport or XML reports rather than extracting through the object model.c3d-surfaces — existing ground and design surfaces for volume computationc3d-profiles — profiles that define cut/fill relationships along alignmentsc3d-corridors — corridors that generate the earthwork volumes feeding mass haulc3d-sample-lines — sample line groups that provide cross-section stationsc3d-quantity-takeoff — quantity takeoff for material volumes and material listsc3d-root-objects — CivilDocument access and transaction patterns