I am trying to write a small program, but i am not understanding why the Solid cannot be subtracted in this case (a dgn file is attached)
Subtract_Problem.zip
The final product is to be like this so inside the Dgn file it should be the Solid Angle subtract the solid regtangular box.
clever_anthony said:I am not understanding why the Solid cannot be subtracted in this case
Your DGN has a model that contains two solids. It's not obvious what you want to subtract to create the object in your screenshot above. Can you produce what you want using MicroStation tools?
Regards, Jon Summers LA Solutions
Jon Summers said:It's not obvious what you want to subtract to create the object in your screenshot above.
Those two solids are generate by VBA based on contour lines (unit: meters) and different directions, perhaps I should provide you some photos....
Jon Summers said:Can you produce what you want using MicroStation tools?
No, but after saving it as DWG, AxxxCAD can substract it...... Nowadays the MicroStation can substract one solid into discontinuous form, I have no idea.
clever_anthony said:Nowadays the MicroStation can substract one solid into discontinuous form, I have no idea
I think you should post that question (with your photos and DGN example) to the MicroStation Forum. If MicroStation tools can't perform the operation, there's no way that VBA will be able to do so.
clever_anthony said:No, but after saving it as DWG, AxxxCAD can substract it......
If the desired DGN file cannot be created with current information/data, but a DWG file can - can you zip and provide the correct output in DWG format to see how MicroStation may be able to generate the desired output?
Thank you,Bob
Robert Hook said:can you zip and provide the correct output in DWG format
SaveAsDWG.zip
(I know that the output is strange, but axxxcad somehow made it without error)
Robert Hook said:If the desired DGN file cannot be created with current information
Note that the OP posted to the MicroStation Forum and Brien Bastings kindly analysed his solids and provides an answer about the geometry.
clever_anthony said:(I know that the output is strange, but axxxcad somehow made it without error)
In solid modeling, strange is bad...and the Parasolid body checker agrees ("modeler debug body check") as this is invalid topology.
--- BODY CHECK FOR ELEMENT ID (2591) [1] ---
Checking BodyCheck Failed - 1 Faults Found0. Self-intersecting Face, 3246, 0, Location : -0.116404 , -0.221247 , 0.335037
Looks like ACAD doesn't enable face consistency checks for its boolean operations, tsk tsk.
This solid is just going to cause issues trying to perform additional operations on it.
-B