DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

DesignCAD 3D Max 2019: Solid Define fails after Solid Explode

Started by A.Jones, January 31, 2020, 02:11:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

A.Jones

Solid Define fails after Solid Explode

In the attached test case, DesignCAD 2019 fails to create a solid from the entities that were exploded from a good solid before.

I use OLE automation to show the behavior for multiple important reasons. Therefore, this issue is not about the interactive use but about the use of the SDK. On the other hand, if we can show such failure with automation, it is likely that similar problems will occur with interactive use.

When I drilled only a little deeper, I found that the Solid Define command missed the Plane Entity when defining a solid from a selection that includes the Plane Entity together with a Grid Entity which combined form a Pyramid Solid.

The important part of this test case is that the selection for the Solid Define command is made the way it is, by means of a function as coded which is the most reliable way. It is the most reliable way because there is no safe way to select entities by setting points using a programming language, and there is no safe way via human GUI interaction either.

The test case also includes some code to subtract two pyramids from each other. This is not the issue. This code is added to show that everything works after the issue is fixed.

The code is contained in a Visual BASIC form Form1.vb. It should be easy enough to create a project from it, add the DesignCAD type library as a reference and run the project from a button on the form. However, I have included the Visual Studio 2019 project just in case.