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.

ver. 11 Select by Query

Started by Alvin Gregorio, June 01, 2010, 05:56:07 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Alvin Gregorio

version 11, yep 11--

Does anyone remember how to Select by Query in  ver.11?  For example what is the exact syntax for:  Entity Type = Wall, but the Pen width is not 1.5pt?  I tried " Type = Wall NOT PenWidth = 1.5pt", but that doesn't work.  I get "Syntax Error".

And, what does the (double) above in the pen width value field mean?

Thanks- 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)

John R

Try:

NOT PenWidth = 1.5 AND Type = Wall
John R.

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

wd

"version 11, yep 11--"

Version 11.2 is good one. Still runs nicely on my Windows 7 Pro.I actually prefer to use it rather than the newer versions.Never had crash yet. Sweet!! :) But nothing but problems with  the newer trial versions using Vista Basic now that was crappy O.S.Now if Microsoft would dump the U.A.C. that would be a plus.
Even a mistake may turn out to be the one thing necessary to a worthwhile achievement Henry Ford
If I have ever made any valuable discoveries it has been owing more to patient attention than to any other talent Isaac Newton
I have not failed Ive just found 10,000 ways that won't work Thomas Edison

Alvin Gregorio

Quote from: wd on June 02, 2010, 08:36:35 AM
"version 11, yep 11--"

Version 11.2 is good one. Still runs nicely on my Windows 7 Pro.I actually prefer to use it rather than the newer versions.Never had crash yet. Sweet!! :) But nothing but problems with  the newer trial versions using Vista Basic now that was crappy O.S.Now if Microsoft would dump the U.A.C. that would be a plus.

I'm starting a new threadin a different fourm on this topic. -Alvin
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

Quote from: John R on June 01, 2010, 10:00:47 PM
Try:

NOT PenWidth = 1.5 AND Type = Wall

Thanks John,

That query worked.  Any idea why it worked and mine (the other way around) didn't.

And-  what does ("double") mean above the pen-width value field?

Thanks- Alvin
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)

John R

#5
I really can't say why "NOT" works one way and not the other. Maybe one of the users who does programming can explain it.

As for (Double), I believe this refers to the number length allowed; (from MS) the range of legal values is from â€"2,147,483,647 to +2,147,483,647.
John R.

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

Henry Hubich

Quote from: John R on June 01, 2010, 10:00:47 PM
Try:

NOT PenWidth = 1.5 AND Type = Wall

Hm. In my v17 installation, that format does not trigger an error, but neither does it select anything. Attached screenshot shows a format that works.

Henry H

John R

Hi Henry,

Alvin's original query wouldn't work: Type = Wall NOT PenWidth = 1.5pt

I drew four walls and assigned a different Pen or Line Width to each wall.
I assigned 1.5mm to one of the walls (I use mm for Line Widths).
I tried these queries in V17:

'Object type'='Wall' NOT 'Line Width'='0.059055 in' â€" Syntax Error
'Object type'='Wall' NOT 'Line Width'='1.5' â€" Syntax Error
NOT 'Line Width'='1.5 mm' AND 'Object type'='Wall' â€" Syntax Error (space between 1.5 & mm)

NOT 'Line Width'='1.5mm' AND 'Object type'='Wall' â€" Parsed Successfully
NOT 'Line Width'='0.059055 in' AND 'Object type'='Wall' â€" Parsed Successfully

The two queries that were successful, selected all the Wall objects, but not the one that had 1.5mm assigned to it. Where a Layer had a 1.5mm Pen Width, the query only recognized the By Layer value, thus including that Wall in the selection.
John R.

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

Henry Hubich

Quote from: John R on June 02, 2010, 11:23:08 PM
Hi Henry,

Alvin's original query wouldn't work: Type = Wall NOT PenWidth = 1.5pt

I drew four walls and assigned a different Pen or Line Width to each wall.
I assigned 1.5mm to one of the walls (I use mm for Line Widths).
I tried these queries in V17:

'Object type'='Wall' NOT 'Line Width'='0.059055 in' â€" Syntax Error
'Object type'='Wall' NOT 'Line Width'='1.5' â€" Syntax Error
NOT 'Line Width'='1.5 mm' AND 'Object type'='Wall' â€" Syntax Error (space between 1.5 & mm)

NOT 'Line Width'='1.5mm' AND 'Object type'='Wall' â€" Parsed Successfully
NOT 'Line Width'='0.059055 in' AND 'Object type'='Wall' â€" Parsed Successfully

The two queries that were successful, selected all the Wall objects, but not the one that had 1.5mm assigned to it. Where a Layer had a 1.5mm Pen Width, the query only recognized the By Layer value, thus including that Wall in the selection.

Looks to me as if Select by Query is borderline useless.

Henry H