News:

Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

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.

Using "Select by Query" in TC2015

Started by PCSteel, August 13, 2019, 10:39:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

PCSteel

I think 'Select by Query' might be what I need to find what I need in a drawing but I can't get it to work.
I have followed the help pages, set the criteria etc., saved the query and parsed the query successfully but I can't work out how to implement the query. Any help would be greatly appreciated.

Thank John
John@PC Steel

Core i7-6700 CPU
16GB Ram
64 Bit
Windows 10 Home
TurboCAD 2015 Pro Platinum 64 bit Build 90.0
TurboCAD 2023 Platinum 64 bit Build 63.3

nikkipollard

#1
I usually clear ,first
then go to criteria to find what I am looking for.
When you select your query the correct syntax should be automatically be filled in the query box - click ok.

If it is a query you are going to use often you can save it and it will be added to the query list for future use.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

PCSteel

Thanks Nikki, that's what I have been doing without success. Are you saying that clicking OK should invoke the search? My problem seems to be invoking or implementing the search.

Thanks John
John@PC Steel

Core i7-6700 CPU
16GB Ram
64 Bit
Windows 10 Home
TurboCAD 2015 Pro Platinum 64 bit Build 90.0
TurboCAD 2023 Platinum 64 bit Build 63.3

Alvin Gregorio

#3
Quote from: PCSteel on August 14, 2019, 02:31:19 AM
Thanks Nikki, that's what I have been doing without success. Are you saying that clicking OK should invoke the search? My problem seems to be invoking or implementing the search.

Thanks John

Perhaps nothing in your Drawing satisfies (wrong word?) the query.
If that's the case, TurboCAD probably will not give you any indication as such.

Try this:
>Insert a Line, it's Pen Color set to Red (not By Layer, or any other way of getting to Red).  Make sure it is on a Visible and UnLocked Layer.
>Select by Query.  Clear the Query box and go to Criteria->Common_Properties...->Line Color.  Select Red.  [Close].
You should see a query string that reads:  'Line Color'='Red'
>Parse it if you want to, but click OK in the main Query Window.

Is your Red Line selected?  It is for me in version-20PP.

Also-- Please Copy & Paste here a Query String you are trying to use but is unsuccessful.  And including the Drawing file here would be a good thing; and share with the Forum in plain words (not Query Syntax) what it is you are trying to achieve-- trying to Select-- via the Query.
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)

PCSteel

Thank you Alvin. I can get that example to work and at least that gives me confidence in how the tool works. What I need to do now is work out how to search for a specific surface area or volume of a solid. I will post a sample drawing.

Regards  John
John@PC Steel

Core i7-6700 CPU
16GB Ram
64 Bit
Windows 10 Home
TurboCAD 2015 Pro Platinum 64 bit Build 90.0
TurboCAD 2023 Platinum 64 bit Build 63.3

PCSteel

In the attached drawing there are two solid objects that are quiet similar but not identical. In a typical drawing that I work with there could be 30 occurrences of one and 12 occurrences of the other, and also other very similar solids. What I would like to be able to do is search for and identify all occurrences of each different solid. I think I would like to be able to search by volume or surface area.
John@PC Steel

Core i7-6700 CPU
16GB Ram
64 Bit
Windows 10 Home
TurboCAD 2015 Pro Platinum 64 bit Build 90.0
TurboCAD 2023 Platinum 64 bit Build 63.3

Alvin Gregorio

Don't you want to just make each of those Objects a Block.
Give each of those Blocks a particular Name.  Then insert, and Copy, those Blocks.
Thay way you could Query by Block Name. And you would save on file size.

Someone(s) that can open a 2015 file will come along and give you more specific suggestions; I max out at version-21.
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)

PCSteel

Yes Alvin that's what I would do if I created the drawing but the problem is that I didn't create the drawing and the designer that created it has either not used blocks or has exploded them prior to releasing the drawing for use. I might contact him and ask if he can provide the file with blocks intact. I'll attach a V19 file.
Thanks John
John@PC Steel

Core i7-6700 CPU
16GB Ram
64 Bit
Windows 10 Home
TurboCAD 2015 Pro Platinum 64 bit Build 90.0
TurboCAD 2023 Platinum 64 bit Build 63.3

John R

Something that would work is to insert the number in the "Attribute" field of the 3D object.
Then use 'Info'='64762.638' in the Query.
John R.

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

Alvin Gregorio

Similarly to John R., I did it by entering the Volume and/or Surface Values in the Objects' Properties' Custom page.

But that's probably not what you're after; you probably want to be able to open up the imported file and just immediate Select By Query and have what you want selected.

I couldn't find "Volume" or "Surface" Criteria in the Selection by Query.
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

Maybe Color will suffice.  Any chance we can get a Drawing file just as you get it, at the point in which you want to make the Query.
A version-19, 20, or 21 for me? ;D
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

Quote from: Alvin Gregorio on August 14, 2019, 09:15:10 PM
Similarly to John R., I did it by entering the Volume and/or Surface Values in the Objects' Properties' Custom page.

But that's probably not what you're after; you probably want to be able to open up the imported file and just immediate Select By Query and have what you want selected.

I couldn't find "Volume" or "Surface" Criteria in the Selection by Query.

The "Custom" page was my first thought, but wasn't sure if the other party had something like that in their program. I think everybody has an Attributes/Info section.
John R.

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

PCSteel

Thanks for all your effort here Alvin and John. The method I use now to identify these items is similar to your suggestions. I go over the whole model and add the surface area or volume to the selection info which allows me to then do a count. In an effort to try and speed this part of the process up I thought that if I could search for the items by volume or surface area, I could then temporarily group each different set and therefore eliminate them from the rest of the search until I had located all the different ones. Colour does help me to some extent because the designer uses different colours for different parts but there are always many other items the same colour.
I'm sorry but I can't attach the model as I have signed an agreement to not allow access by others.
I find it frustrating that I can search for 2D items by surface area (circles, rectangles etc.) but not ACIS solids.
Again thank you both for the time you have put into this, it's much appreciated.

John
John@PC Steel

Core i7-6700 CPU
16GB Ram
64 Bit
Windows 10 Home
TurboCAD 2015 Pro Platinum 64 bit Build 90.0
TurboCAD 2023 Platinum 64 bit Build 63.3

Alvin Gregorio

Seems to me that the most efficient way this should be done from the get-go-- the CAD way-- is for the original creator to make them named Blocks-- before inserting multiple copies of them (or inserting the initial Blocks and copying those).  And/Or, at the very least, assign them an Info attribute before copying them.
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)

nikkipollard

It could be the way the original program saved and the way TC converted it.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

PCSteel

I couldn't agree more Alvin. That is a possibility Nikki, I receive the model as a DWG. I will see if I can talk directly to the designer.
Thanks for all the help.
John
John@PC Steel

Core i7-6700 CPU
16GB Ram
64 Bit
Windows 10 Home
TurboCAD 2015 Pro Platinum 64 bit Build 90.0
TurboCAD 2023 Platinum 64 bit Build 63.3