Hi all,
I am in CREO 7.0.2.0.
I would like to make a macro in CREO, for searching all the symbols, annotation, dimensions, datum etc... create in the drawing.
I have an issue for searching symbols added in the 2D.
I have the same symbols create in the part with MBD and create in the drawing
How can i distinguish them with the search tools?
I would like to show only the symbol datum target create in the 2D.
Regards
Solved! Go to Solution.
Try using the rules and build a query. This looks like it will filter all datum target symbols in the drawing. Note that you can save these queries to a file and reuse them, so you are not messing with the UI to set up the search each time.
As a starting point you can limit the scope of the search to the drawing file. See the example search in the pic. You can build a query using names to find datum tags (name=dt*). You can in theory further filter these using rules.
A nested query is an option:
You should consider building queries separately for flexibility in automation. If you build multiple search queries they can be saved, and you could use a mapkeys to run them for automation.
If the items were created in the drawing, then this search should return it in the results.
Hi,
Thanks for your answer.
But, the search with the name critera dt* doens't work for a search on a datum target.
I have several questions about the nested query:
1) In the status tab, i can only select datum_plane in reference for parent/child critera. And as the datum target are put ine the drawing, there is no ref plane.
How can i select an another option, it was grayed out?
2) the name of the symbol is DATUM_TARGET (it is a creo Symbol)
Iif he is put in the 3D model, in the drawing tree it appear as follow
And if put in the drawing, it appears as follows:
How can i search it with the draft critera?
Regards
The objects you are noting in the previous post are drawing symbols. This is the search criteria to find all symbols in a drawing.
Unfortunately, the documentation on the search tool is lacking so you will need to solicit feedback here and contact PTC support to drill down into this. I am not familiar with all of the options within the search tool. Ideally PTC would document a matrix for every data type that is searchable and note the query construction to find them in the UI. I am pretty sure the developers have such a document but as you have probably discovered the help files are only an introduction without the detail required to understand the function thoroughly.
Try using the rules and build a query. This looks like it will filter all datum target symbols in the drawing. Note that you can save these queries to a file and reuse them, so you are not messing with the UI to set up the search each time.