News:

Please remember to do a search before you ask a question!

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.

Selection Info➜ Metrics➜ Extents Size

Started by Alvin Gregorio, October 30, 2025, 04:45:02 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Alvin Gregorio

Quote from: Andy H on October 30, 2025, 06:00:37 AM
Quote from: Alvin Gregorio on October 30, 2025, 04:03:36 AMI have a related question:
If I insert a 2D Line— Start Point 0,0 and End Point 1000,0— a very simple Line that is 1000 long and Angle is 0— when I select it, the Selection_Info/Metrics reports a Length of 1000.  But Metrics reports its Extents Size to be 1000.1186.

Why is that?
What is Extents Size, versus Length? (in this simple, straight, 2D Line example)
What does TurboCAD consider to be Extents Size for simple 2D objects?

What version Alvin.  I tried in 2025 and 2024 but could not replicate the findings using default values.

Extents size is the bounding box, generally diagonally from bottom left to top right,  this applies to 2D and 3D.  On orthogonal straight lines it is a bit meaningless, as the bounding box won't really show up. but will show quite a difference on angles line, or used on circles or other shapes.

One reason on could see a difference on orthogonal lines, is if the pen width is greater than zero, (minimum default).  This I suspect is because the bounding box will encompass the thicker line in the same way as if one draws a rectangle 1000 x 0.02 for example. Thus the distance from bottom left to top right is slightly larger the the actual length. 

The difference is minor when using pen width set to world,  but can be significant when set to device, or device width.

Thanks Andy,
But... this is what I was referring to:


You cannot view this attachment.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Andy H

Hi Alvin.   Yes,  that is what I thought you meant.  I just tried again, and Unfortunately cannot reproduce the problem in 2024.  I tried changing a few settings, but all showed extents as 1000.  I selected line tool,  tabbed to coordinate fields, and entered 0 in each. Then pressed return/enter key to set first point.  Tabbed to line boxes and typed 1000, and 0 for angle. Both the line and extents are showing 1000 (space units are set to 6 decimal places).

You second image is showing correct, as the 'extents' are a diagonal of the bounding box.  Which in the case of a line, it should be the same as the line length.  The inspection bar will show differently as they are showing the bounding box's x and y sixes (not diagonal). In case anyone is not aware, in the second image, the bounding box is outlined by the 8 blue nodes. In selector properties its called a 'Shell shape', and in the SDK its called a bounding box. 

If you wish to post a file, I'll check the settings against the ones I use, to see if there is any setting causing the problem (tomorrow, as its bed time now).

Alvin Gregorio

#3
Attached is a simple test file, containing simply that single Line.
Also attached are my Program Setup pages.

The question is:  Why does the selected 1000 Line at 0° angle report in Selection Info➜ Metrics➜ Extents Size a Value of 1001.4532?
_____________
Well... that's crazy.  I went to check it just now, and it reports Extents Size as 1000.
This is after having rotated the Line multiple times randomly, until entering 45° the final time.  Then Undo-ing all that back to where it started.
  But test in new drawings (from my Template, same as how I started the attached test file), as observed initially in this thread occurs.
  Start a New Drawing from Scratch, and the observation does not occur.

Also attached is my go-to base .tct Template file.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#4
I think the problem* is my Template file(s).
I'm sure it's one I started in version-19 (circa 2013) if not earlier.  Perhaps their base calculation maths are different now.

At least I understand the Value in Extents Size now; and can return to Russell's query.
  EDIT:  Russell's file does the same thing!  (maybe he and I started it with one of my Template files; I cannot recall)

__________________
  *I purposely placed this in the General Discussion board, because I didn't see it as a Problem.  But I think maybe there is in fact a problem in using my base Template file(s) in current and recent versions.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Andy H

#5
I got the same as yourself with the template file. 

The line properties pen width is set to 'by layer'.  But in design director - layer, the pen width is not zero.  Resetting layer pen width to zero cured the extents size mismatch on my (windows 10) computer.  Before that, the larger pen width made the bounding box larger than minimum (yes - even an orthogonal line has a bounding box, but one cannot normally see it). thus the extents diagonal is larger than normal.

Alvin Gregorio

Have you noticed that once we change a Line's Pen Width, and the new Extents Size reflects that*, if we change the Line back to 0 Pen Width, the Extents Size doesn't automatically regenerate.
Even with a New From Scratch drawing.
Rotating the Line, then Undo, seems to cause Extents Size to regenerate; so that in the above scenario, Extents Size is the same as Length.

In fact, just play around with a Line some, including varying Pen Widths and rotating it.  Extents Size has all sorts of Values.


*somewhat; still cannot figure out the math behind it
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Andy H

Yep, there are a few things in TC which don't update properly,  I doubt things like that would be repaired. 

Maths is awkward, when using device and device width, because the bounding box (line displayed on screen) depends on the zoom factor in conjunction with the pen width.   When using world, its easier, as its just the hypotenuse of a triangle.

Alvin Gregorio

Okay.  I just wanted to know enough about Extents Size to try to make sense of that Audit reporting.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)