AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Object Data - how to use the find command

16 REPLIES 16
SOLVED
Reply
Message 1 of 17
archaeoman
6389 Views, 16 Replies

Object Data - how to use the find command

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

16 REPLIES 16
Message 2 of 17
antoniovinci
in reply to: archaeoman

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 17
Murph_Map
in reply to: antoniovinci

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 17
kalman_albert
in reply to: archaeoman

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 17
braudpat
in reply to: kalman_albert

 

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 17
archaeoman
in reply to: braudpat

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

Message 7 of 17
antoniovinci
in reply to: archaeoman


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...

Message 8 of 17
Murph_Map
in reply to: archaeoman


@archaeoman 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.
Message 9 of 17
braudpat
in reply to: Murph_Map

 

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 17
archaeoman
in reply to: braudpat

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

Message 11 of 17
antoniovinci
in reply to: braudpat

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

Message 12 of 17
braudpat
in reply to: antoniovinci

 

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


Message 13 of 17
archaeoman
in reply to: braudpat

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

Message 14 of 17
braudpat
in reply to: archaeoman

 

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 17
archaeoman
in reply to: braudpat

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

Message 16 of 17
braudpat
in reply to: archaeoman

 

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 17
kalman_albert
in reply to: braudpat

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!"

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost