I'm creating a Addin in C++ for AutoCAD using Object ARX.
I want to write a program which starts AutoCAD, then I will open my .dwg file.
Then some command defined by me will access the solid in it. I want to find no of Edges, Faces, etc.
there is no questions in your post. So, I can wish you good luck :):):)
I want such code.... to access AcDbSolid... so that i can access edges, faces from this solid..
I want such code.... to access AcDbSolid... so that i can access edges, faces from this
First of all AcDbSolid and AcDb3dSolid are different classes. 3dSolid class has everything you want (needed functions)
So, what's your problem. There is a great quantity of code here. You just have to use "search". It's a forum but not a wishlist. Here you can get recomendations, but not realisation of your task without your participation.
I'll add a few words.
ObjectArx????\utils\brep\samples\ - this is what you want. or, you can just explode acdb3dsolid (output will be acdbregions and acdbsurfaces)
way of realisation depends on needed output data.