Convert 3D drawing to 2D drawing In Autocad Using C# -
i have convert 3d drawing 2d drawing. have create tool automate this.
i don't know how start , can materials.
please give idea create tool.
i using autocad2007 , have create tool in c#.
autocad express tools has method called "flatten" supposed handle this. has used knows doesn't job done.
this feasible, , can use in-process autocad libraries natively in c# walk through entities. (acmdg.dll, acdbmdg.dll)
i approach entity type. each entity handles z-axis differently in autocad, i'd group them buckets beforehand , deal them in batches. lines easy, can change z-axis on start , end points 0, , polylines have elevation if remember correctly. 3d polylines need each vertex walked through , set individually. circles can have center point set directly z = 0... see i'm getting at. go through autocad documentation , strategy every entity type you'll encounter.
this tricky things blocks, because you'll have block definition deal too. natively 3d entities surfaces, faces , extrusions tougher still. you'll have decide can tossed out, , can recreate primitives.
if simple task, autodesk may have pushed out half-decent. think within reach if willing approach problem strategy.
Comments
Post a Comment