Hello everyone,
I'm currently working on a project where I need to programmatically identify and extract information about holes placed within a slab in AutoCAD Architecture drawings using the .NET API.
Specifically, I need to:
Sample Drawing:
Inner rectangle is hole for that slab.
Could someone please provide guidance or code snippets on how to achieve this using the AutoCAD .NET API? Any insights, resources, or sample code would be greatly appreciated.
Thank you in advance for your help!
Solved! Go to Solution.
Solved by Gepaha. Go to Solution.
I could be wrong but I don't think there is an exposed method to obtain the holes in the slab directly.
Perhaps this link is a starting point.
https://www.theswamp.org/index.php?topic=41272.msg478708;topicseen#msg478708
I think it is possible to obtain the area of the holes through "SlabLoop". If id = 1 then it is the slab itself if id > 1 then it is the holes. The area of the slab itself is positive and the area of the holes is negative.
The edges of the holes can be obtained using "SlabLoop.Edges".
I don't know what the purpose of this is, but don't forget that the slab can be made up of several bodies and that in addition to the holes there can be modifiers (mass element) and interference such as columns, etc.
So slab has the option to choose the bodies through "GetComponentBodies".
Can't find what you're looking for? Ask the community or share your knowledge.