cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

search Symbol 2D in a drawing

Dom_BOUCHARDY
11-Garnet

search Symbol 2D in a drawing

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

Dom_BOUCHARDY_0-1640076540043.png

How can i distinguish them with the search tools?

I would like to show only the symbol datum target create in the 2D.

Regards

ACCEPTED SOLUTION

Accepted Solutions
tbraxton
22-Sapphire I
(To:tbraxton)

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.

 

tbraxton_0-1640186877327.png

 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric

View solution in original post

4 REPLIES 4

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:

https://support.ptc.com/help/creo/creo_pma/usascii/#page/fundamentals%2Ffundamentals%2Ffund_six_sub%2FTo_Build_a_Nested_Query_in_the_Search_Tool.html 

 

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.

 

tbraxton_0-1640100020288.png

 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric

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?

Dom_BOUCHARDY_0-1640166161847.png

 

2) the name of the symbol is DATUM_TARGET (it is a creo Symbol)

Dom_BOUCHARDY_1-1640166225633.png

Iif he is put in the 3D model, in the drawing tree it appear as follow

Dom_BOUCHARDY_2-1640166270759.png

And if put in the drawing, it appears as follows:

Dom_BOUCHARDY_3-1640166325231.png

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.

 

tbraxton_0-1640185978014.png

 

 

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.

 

 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
tbraxton
22-Sapphire I
(To:tbraxton)

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.

 

tbraxton_0-1640186877327.png

 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags