Hi @davidt162003. What you want to do does sound like it might be possible to achieve by code. However, there is no simple, short, or easy way to do it by code. It will most likely require a very long and complex code that would be very custom to your unique needs, because only you know the design of the models involved, and only you know exactly which geometry you want to control the visibility of. A good place for you to start would be to search within this forum for topics involving changing colors, layers, or visibility of drawing view geometry, based on something model related, and review the code examples shown for those solutions, because they will be very similar. There are likely not a lot of folks who are eager to get involved because they know that it would require investing a lot of time into a project that likely only one person would ever find helpful. So, it would be best if you attempted to develop some of this code project yourself, then if you run into areas of the code that you are having problems with, you will likely find a lot more folks wanting to help with those smaller scale problems.
The tools you would most likely need to include:
DrawingView
DrawingView.DrawingCurves (a property of the view that can work like a Function, if model object specified)
DrawingCurvesEnumerator
DrawingCurve
DrawingCurve.EdgeType
DrawingCurve.LineType
DrawingCurve.ModelGeometry (returns generic Object, because it could be many different types of objects)
DrawingCurve.Segments
DrawingCurveSegments
DrawingCurveSegment
DrawingCurveSegment.HiddenLine
DrawingCurveSegment.Layer
DrawingCurveSegment.Visible
Wesley Crihfield

(Not an Autodesk Employee)