basically what i want to do is turn this
into something more like this
or this
to this
For example the Flanges don't require all the hidden lines from the bolting holes unless front on. or a nozzle doesn't need to show it a hidden line of its bore. Is their a good way to enumerate and find the lines i don't want so i can just select them all and switch off their visibility.
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.DrawingCurves (a property of the view that can work like a Function, if model object specified)
DrawingCurve.ModelGeometry (returns generic Object, because it could be many different types of objects)
DrawingCurveSegment.HiddenLine
Wesley Crihfield
(Not an Autodesk Employee)
ah yeah i was kinda just looking for something more on the conceptual level on how i may find the correct drawing curves, like would it be easier to use the ref key manger, attributes or some form of simplification? or if their was some other fancy way to do it?
I know how i would write it, once the draw curve(collection of curves) are obtained. im not to worried about the business/model specific logic but if getting those draw curves is fairly complex I think ill push it back as its more of a want than a need
Can't find what you're looking for? Ask the community or share your knowledge.