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
Solved! Go to Solution.
Solved by kalman_albert. Go to Solution.
Solved by antoniovinci. Go to Solution.
This is a great question, sir.
To search a particular OD, you could query the drawing, after attaching it, so:
This method only extracts the object carrying the desired OD value: if you wanna all as background, you should query by LOCATION => ALL.
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.
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
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 BRAUD
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
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...
@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.
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 BRAUD
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
I agree with archaeoman: that Lisp is simply brilliant, a true must-have (+1 pour Toi, Monsieur Patrice)...
Hello All
THANKS it's my 250th Kudos / Compliment !
Patrice BRAUD
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
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 BRAUD
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
Hello
NO Sorry this routine will only highlight entities !
Patrice BRAUD
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
Please provide an example of your dwg containing the entities with Object Data (OD). Indicate the 'object data' want to highlight.
Chicagolooper
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
Can't find what you're looking for? Ask the community or share your knowledge.