How can you show AModeler hidden line as a dashed line

By Gopinath Taget

Basically, you’ll need to add a class that is derived from OutputPolylineCallback and override outputPolyline(). Next, instantiate a callback object in the subViewportDraw() of the custom entity class so it is called when it is HIDE, SHADE or RENDER. Since the callback will give you the hidden edges of a body, if you figure out the correct projection plane, it is just a matter of loading a dashed linetype and displaying the hidden edges in an appropriate LTSCALE.

There is also a trick to force AutoCAD to display the hidden edges. All of the above is fully demonstrated in this sample. Pay special attention to AsdkBody.cpp and .h files, and please be sure to load the sample drawing to test.


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading