- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I'm quite new to .NET programming in AutoCAD and most of the API is foreign to me. I want to be able to uniquely identify each face of a 3d solid object regardless of the solid's position or rotation and have the ability to change the faces' color, material, offset, etc.
At the moment i am able to loop through the solid's components using Brep and add all of the faces' SubentityIds to a list.
The problems i'm facing are:
After a boolean operation all of the SubentityIds are reordered and my list of ids is useless. I tried another approach to recognize the solid's faces. Changing the color/material of a face and checking for the face's color during the Brep loop sort of works, until i change the solid's color/material and all the information is lost.
Is there a way to get a unique id for each face, or add some xdata or something similar to the face in order to recognize it?
Either my approach is totally wrong, or my lack of knoledge is the problem. I would be very grateful if the .NET experts can lend me a hand.
Thank you in advance.
Solved! Go to Solution.