Hi All,
Is it possible to make a feature line relative to another featureline in Civil 3D using C#? Usually in grading we add featureline to represent Top and Bottom of kerbs. If the bottom featureline changes, we need to edit the top featureline manually. Can we make it relative instead? Possibly by automating the "AdjacentElevationByReference' feature in civil 3D? Can anyone suggest how we can do it in C#?
You can create both Featurelines using a corridor and they will be always acting like you want.
If you're looking for another way I can suggest the following cheat:
You can store to the top featureline's description the name of the bottom featureline, and the elevation or grade relationship between them. f.g. "LeftCurbBottom_ElevDiff+5", or "LeftCurbBottom_GRD-2" - the former will set an elevation difference between the top feature line and LeftCurbBottom FL of +5 units, the latter will set a -2% grade.
This can be done with a function to avoid typos.
You can then write an 'updateReferenceFeatureLines' command that when it is run it will look into every feature line in the drawing with a non empty description string, parse it, and will change it's elevations based on the elevations of the featureline in the description.
It's not a fully automatic approach but it's a start.
For an auto-update look into dynamic linking:
https://forums.autodesk.com/t5/civil-3d-customization/dynamic-linking-of-objects/td-p/10110726
Can't find what you're looking for? Ask the community or share your knowledge.