News:

When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Debugging Boolean 3D Add Operation Failures

Started by jmwright1058, January 08, 2024, 01:32:15 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Torfinn

You have to do like John R showed to make AC points work in TC

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

John R

An AutoCAD point will work in a 'New From Scratch' drawing. Established drawings or Templates can't be changed. Of the 20 available AC Points, you can only use one in a drawing.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

jmwright1058

I think I've done what John R said...it doesn't seem right.
I've gone to the TurboCAD 2023 Explorer palette.
    To Settings -> Built-in(Current) -> Drawing_Defaults
    I set $PDMODE to 35 and hit Enter
    I exit this, go back in and view the value of $PDMODE, which is now 35 (it was 0).
I then create a Point. In the CommandCAD interface this is located at Home -> Construction -> Dot
  If you select the point, then click on Properties, you can select the radio button called 'AutoCAD'
  Lastly John says you need to do a regen on the sheet.
      I select the point, then do a View -> Regen
  What I see is shown in the attachment below Johns PDMode-03.png.

Does this look right?

Regards,
John
You cannot view this attachment.

jmwright1058

#53
Thanks John R,

That was the problem. I was using a template.
It works now in a new from scratch Drawing.

In order to change the AC Point style, you must change PDMODE value, then create a new scratch sheet.
If I create a new template from this, will it still work?

Regards,
John

John R

John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

jmwright1058

#55
John R,

I chose PDMODE = 36
I created a new template and it does work.
I created and placed the Point at WCS (0, 0, 0).
I then created a small polyline with 2 connecting lines and relocated the vertex to WCS (0, 0, 0).

This is great!
The Point and the Vertex, even though they occupy the exact same WCS location, can be separately selected, so you can easily see the WCS coordinates of either of them.

My only nit is that I have to create a Dot, then change the properties to AutoCAD using the Radio button.
But this totally manageable.
And I can always use Copy in place, for all subsequent points.

Thanks and Many Regards,
John

jmwright1058

#56
I'm making progress re-building the objects.
I'm not re-building everything from scratch.
I'm debugging the Boolean Add failures back to the source, then re-building only what I have to. I'm finally making progress, after finding issues with the earliest operations.

Part way through this process, I realized I violated a basic 3D design rule.
The rule I violated was not maintaining at least 3, non co-linear, Points from starting to final object.
With 3 Critical Points, the placement and orientation of objects are locked in place.
Then, by verifying WCS coordinates of the Critical Points, evidence of a failure shows up, and can be traced back to its source.
If coordinates of the critical points, moves by even 0.000001mm, from the operational input objects, to the output object, this can show up as a failure in a later operation.

One interesting benefit of building around 3 Critical Points is that a Boolean Add operation can succeed after using the Assemble by 3 Points command, where the same Add previously failed. And here's the confusing part, it succeeds after the 3 point assemble, even though the coordinates of the 3 Critical Points are the same as when the objects were physically placed in the exact same location and orientation in a previous Add attempt. Somehow, the process of using the Assemble by 3 Points command helps the subsequent Add to succeed. You move one of the parts some distance away and then re-assemble it with the Assemble by 3 Points. The Add then works magically.

The reason I'm going through this much trouble is because I've tried re-building from scratch, and every time it fails, it wastes more time than debugging down to the root cause and fixing every issue found.

wrkempson,
Thanks for recommending the Assemble by 3 Points Tool.

Alvin Gregorio,
I'm now using the Cross Point.
Thanks

John

jmwright1058

#57
Progress on resolving 3D Add failures
Finally got a stubborn case to work.
I used the 'Assemble by 3 Points' tool.
The final trick that made it succeed was to pick a very specific set of 3 points for the assembly.
There didn't seem to be any rhyme or reason for the points I picked.
I just picked them using trial and error.
For the longest time I've been holding onto the idea that a node having WCS coordinates of integral mm values was an obvious choice for one of the points used for the Assemble by 3 Points operation. It was only after dropping this node and using another, that I the Boolean Add started working.
Don't ask me why this is the case, it just is.
After succeeding, I tried re-assembling and re-attempting the Boolean Add and it was repeatable.
So, in the future I'll trying using different sets of 3 points to assemble until one set causes the 3D Add to work.
I believe there is some reason why this works, but at this point, I don't know what the reason is.

Since I had the choice of 130 nodes, there were quit a few possibilities. I think the number is something like 130 factorial.
If there were some guidance as to what nodes to pick, this would be immensely valuable from a time saving standpoint.

Thanks again wrkempson, for recommending the Assemble by 3 Points.
I suspect the transform tool will also work if the same set of points is specified, but I didn't re-attempt this.

John

jmwright1058

I found root cause for the Boolean 3D Add failure.

The final object was created from a series of 3D Add and Subtract operations.
One of the earliest 3D objects was the result of a 3D Subtract of a Simple Extrude.
When creating the Simple Extrude for the Subtract, a profile (closed polyline) was created from 4 line segments.
The start and end points of the line segments was created with snap set to Grid.

The fix was (while creating one of the critical line segments) to set the snap to vertex and use a vertex on the object it was being subtracted from.
I believe this tied the subtract object to the object it was being subtracted from.

I was able to debug this failure by looking at WCS coordinates.
Where the coordinates of critical nodes on the output object were non integer values was a clue to trace back to it's source.

I'm now more convinced than ever that designing around critical Nodes, placing them on integral values is a good methodology. Keeping track of these nodes through a complex series of Boolean operations is key to finding and resolving failures.

John

murray dickinson

Your "critical node" theory is mysticism for user coordinate systems.  There are plenty of tools to help you keep track of workplanes.  Snapping directly to the thing you want to connect to is good practice, and if you're using Platinum, you've got constraints if you don't trust your snapping.  You don't have to be "keeping track of these nodes through a complex series of Boolean operations..", the program does it for you.  Good practice is to pay attention to the relationships and associations between features of the model itself as you create it rather than remote references, which are your arbitrary origins, not intrinsic elements. 

jmwright1058

Thanks murray dickinson,

I appreciate your statement about my 'critical node' theory. I'm sure it seems mystic from an outside perspective. It can get confusing, even for me. And it takes a lot of patience to use it. I don't use it to keep track of the work planes, though. But rather for finding where rail sweeps introduce errors. I rely on the WCS coordinates (of the critical points) to find these errors. I use it for debugging failures in the PartTree domain. Adhering to the method adds information to the breadcrumbs...you know, like the story of Hansel and Grettle. When Grettle was captured by the witch, she dropped bread crumbs so Hansel could find her.
Defining and maintaining 'critical nodes' on even millimeter values creates the information you need to re-align your parts during the assembly process. It also makes debugging much easier. It can become confusing if you have too many critical points, however, you only need a few critical points across an entire design.

I've used most of the workplane tools you refer to. For my time with TC, I've struggled with the relationship between UCS and WCS. WCS has always been clear, however, UCS has been a bit fleeting. For example, when UCS becomes inverted from WCS, it throws me for loop. I figured out an easy method to re-align UCS with WCS. I build a cube, then use the 'WorkPlane by 3 Points' to flip UCS (re-aligned it with WCS).

Question:
    Does the 'Plane by World' tool align UCS with WCS?

I'm comfortable with using the workplane tools 'WorkPlane By Entity', 'WorkPlane by 3 Points', 'By Facet', 'WorkPlane Origin', 'Place on WorkPlane' and 'Show/Hide WorkPlane'.

However, I'm Not comfortable using 'Show/Hide Intersections Between WorkPlane And 3D Objects', 'Plane by Active View', 'Plane by World', 'Previous WorkPlane', 'Set Named WorkPlane', 'Edit Current WorkPlane', 'WorkPlane By Z Axis', 'Auto WorkPlane By Face' and 'Fit WorkPlane to Window'.

I have no excuse for fearing these tools, other than never spending enough time to remember how to use them.
I seem to be stuck in my 'intermediate level' with TC. I am making progress, though, its just very gradual.

Another area I struggle with is Snap settings. I always use Local Snap, because It never fails me. I know I'd be better of configuring Snap settings, it's just one more thing to forget when I don't use TC for 5 months.

Question: How do you configure the snap settings?

Regards,
John

murray dickinson

#61
Any coordinate system that isn't World is a UCS and TC doesn't spontaneously create them or invert them, you, being the User, identify them, even if it's as trivial as relocating the origin on World plane, or using polar coordinates.  Using the world CS doesn't align or reconcile it with any other.     
You configure snap settings by right-clicking on the SNAP and GEO buttons at bottom of the screen/above the taskbar, Shift + S toggles them on and off.  You can turn individual snaps or all snaps on/off at the Modes menu.  Many of us have loved TC because of the SEKE (Single Entry Key Equivalent) snaps, where you hover the cursor within the snap proximity apeture and tap the appropriate key, V for vertex, M for middle, I for intersection, C for centre etc.  Easy and intuitive when you're familar with them, there are default keys and/or configure your own.   
.Why do you think rail sweep "introduces errors"?