Object Data - how to use the find command

Object Data - how to use the find command

Anonymous
Not applicable
9,525 Views
21 Replies
Message 1 of 22

Object Data - how to use the find command

Anonymous
Not applicable

Dear all,

 

In MAP3D I have points and polylines with attached object data. I can add text layers to them and the use the find command to find and zoom at a specific attribute.

 

Is there a way to search and zoom for an attribute on the model screen?

 

Thank you for your help.

 

Sincerely,

archaeoman

0 Likes
Accepted solutions (2)
9,526 Views
21 Replies
Replies (21)
Message 2 of 22

antoniovinci
Advisor
Advisor
Accepted solution

This is a great question, sir.

To search a particular OD, you could query the drawing, after attaching it, so:

  1. in an empty file, run _ADEDRAWIINGS and browse to you DWG
  2. run _ADEQUERY
  3. DATA => OBJECT DATA

    query_od.gif

  4. type the desired OD "value" in the Expression zone => OK
  5. DRAW => EXECUTE QUERY
  6. perform a zoom extents

This method only extracts the object carrying the desired OD value: if you wanna all as background, you should query by LOCATION => ALL.

Message 3 of 22

Murph_Map
Mentor
Mentor

To add a little bit more to Antoniovince's reply. If yoiu have a current version of Map3D you can create and run the query in your orginal dwg, no need to close and attach it to a blank dwg. Just use the display manager to add current dwg objects and create the query and run it. Then if you need to search on another OD value edit that layers query. It helps if you uncheck the Base Map layer to see the query object. 

Murph
Supporting the troops daily.
Message 4 of 22

kalman_albert
Advocate
Advocate
Accepted solution

If you have map,  my suggest is to export data to sdf or sqlite make data connect  or dragg the file in the map space then from data table you can do everything.

Unfurtunetlly Autodesk stop to develop any kind of new features or "usefull features" for users, the map is "put in corner" software, is a 'live' retired software.

The query with OD is very poor, you have no operators 'like', '<' '>' and so for strings .... very frustrating.

Albert

 

--------------------------------------------
"Nothing will ever be as it was!"
Message 5 of 22

braudpat
Mentor
Mentor

 

Hello

 

YES standard tests on OD with classic MAP Queries are very limited !

 

But when saving MAP Queries to external .QRY files (TXT files in fact) and editing them

and then running them with the ADERUNXQUERY command, you can do some interesting things ...

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 6 of 22

Anonymous
Not applicable

Thank you all for your replies. It looks like there is no easy and quick way to look for the Object data you need.

 

The import of the data as shp or sdf is inventive but I need the CAD layer environemnt active.

 

The attaching of the dwg and then run of query is good but a little fiddly.

 

In any case thank you for your help. I think I will stick to adding the attributes as text in Task Pane and then use the find button.

 

Thank you again.

 

archaeoman

0 Likes
Message 7 of 22

antoniovinci
Advisor
Advisor

archaeoman wrote:

use the find button


 

Well, after importing the shape with full OD, you could save the drawing, then label the OD, finally look for any labelled text thru the FIND command...

0 Likes
Message 8 of 22

Murph_Map
Mentor
Mentor

@Anonymous wrote:

Thank you all for your replies. It looks like there is no easy and quick way to look for the Object data you need.

 

The import of the data as shp or sdf is inventive but I need the CAD layer environemnt active.

 

The attaching of the dwg and then run of query is good but a little fiddly.

 

In any case thank you for your help. I think I will stick to adding the attributes as text in Task Pane and then use the find button.

 

Thank you again.

 

archaeoman


There are some lisp functions that search OD tables for the values HOWEVER there is no way to filter just the entities with OD attached to make it run fast enough to make it worth while. And on the DotNet end they failed to add include any of the old Map OD functions to do it. 

 

Murph
Supporting the troops daily.
0 Likes
Message 9 of 22

braudpat
Mentor
Mentor

 

Hello from France

 

As you know Autodesk has never implemented any correct routines/features to filter/select Entities from Object Data Values !

 

So since several years, I am using special french routines which run well on any MAP / CIVIL ...

 

For example I love this beautiful routine "Sel_by_OD" from a french developper Bruno V.

 

With "Sel_by_OD" you select ONE entity with an Object Data Table, then you can choose

- the right OD table (if you have many OD Tables on the same Entity)

- the right OD field

- you get the OD value ...

- then you can use any logical operator to test ALL other entities with OD

And finally the routine selects automatically ALL concerned entities ...

 

It's a MODEST Tool for MAP/CIVIL but it is very useful !!

 

Thanks to Bruno !!!

 

 

 

 

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 10 of 22

Anonymous
Not applicable

Hello braudpat,

 

Thank you for the lisp. I looks like something autodesk should have included such a function to MAP3D as a standard.

 

Regards,

archaeoman

0 Likes
Message 11 of 22

antoniovinci
Advisor
Advisor

I agree with archaeoman: that Lisp is simply brilliant, a true must-have (+1 pour Toi, Monsieur Patrice)...

0 Likes
Message 12 of 22

braudpat
Mentor
Mentor

 

Hello All

 

THANKS it's my 250th Kudos / Compliment !

 

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


0 Likes
Message 13 of 22

Anonymous
Not applicable

I have tried to load the LISP on AutoCAD MAP3D 2014 with no success.

Can you please help on what I have to do?

 

Best

archaeoman

0 Likes
Message 14 of 22

braudpat
Mentor
Mentor

 

Hello

 

Have you loaded the VLisp file "Sel_by_OD.lsp" with the APPLOAD command ?

Or with "Tools / Load Application ..."

 

If YES, then you have only to use your keybord :  Sel_by_OD <Enter>

and select an entity with an Object Data Table attached ... and play ...

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 15 of 22

Anonymous
Not applicable

Managed to make it work. This is a great lisp.

 

Is there a way to zoom at the selected point or line with the attribute.

 

Currently the lisp highlights it but is not zooming to its location.

 

Thanks again,

archaeoman

0 Likes
Message 16 of 22

braudpat
Mentor
Mentor

 

Hello

 

NO Sorry this routine will only highlight entities !

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


Message 17 of 22

kalman_albert
Advocate
Advocate

Put this  row (command "zoom" "o")  like  below save and reload

 

……

(princ (strcat "\n" (itoa (sslength js_sel)) " trouvé(s)"))

  (sssetfirst nil js_sel)

 

  (command "zoom" "o") ; this makes zoom

  

(prin1)

 

 

Albert

--------------------------------------------
"Nothing will ever be as it was!"
Message 18 of 22

dreyson_potter
Explorer
Explorer

@braudpat I don't know if you still respond but if you do how do I make it highlight the object? The line and all its properties appear on the left side of my screen but are not highlighted like it would be if I just clicked on it. Any help would be appreciated.

0 Likes
Message 19 of 22

ChicagoLooper
Mentor
Mentor

@dreyson_potter 

Please provide an example of your dwg containing the entities with Object Data (OD). Indicate the 'object data' want to highlight.

 

Chicagolooper

EESignature

0 Likes
Message 20 of 22

dreyson_potter
Explorer
Explorer

I figured it out, you can find the line, use the "zoom" "o" which will bring you to where it is then do the sel_by_od again and it should highlight it

0 Likes