Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Select objects with same OD table

franc_as
Enthusiast

Select objects with same OD table

franc_as
Enthusiast
Enthusiast

My Autocad Map 3D don't allow me to delete specific OD table. Obviously, there is an object containing that OD table.
How can I find and select all objects with this OD table? Maybe a lisp?

0 Likes
Reply
Accepted solutions (2)
291 Views
10 Replies
Replies (10)

braudpat
Mentor
Mentor

Hello @franc_as 

Please the DWG (or an extract with WBLOCK) 

If Extract with WBLOCK, check that the DWG you send, has the same problem !

Which name for the OD Table ?

Bye, Pat

 

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

franc_as
Enthusiast
Enthusiast

I don't understand what do you mean.....what Wblock,  what dwg?
This is common question...I just want to find all objects in any current drawing, which contains (if) OD table (for instance) named TEST.
And I want to stay them selected after command finished.
Lisp routine would be fine.
Regards

0 Likes

braudpat
Mentor
Mentor

Hello @franc_as 

 

1) OOPS SORRY : OK you have not a specific problem with a specific OD Table !

 

2) When I want to find ALL Object (on ACAD MAP or ACAD CIVIL) with a specific OD Table,

I am using the famous Lisp/VLisp routine "Sel_By_OD" (from @CADaSchtroumpf) BUT with a curious / abnormal method !

 

3) Load the routine with  APPLOAD  Command then  "Sel_By_OD"  <Enter >

and Select ONE Object with the famous OD Table

and then select and do an "impossible" Test on an OD Field !

THEN you get ALL Objects of your DWG with the famous OD Table ! 

 

For example 1 : you have an OD Integer/Float Field with a positive value, test with Value /= (Different) -1

For example 2 : you have an OD String Field with many values, test with Value /= (Different) ZZZZZZ

 

Do you see, that I Mean ? ... Is it OK for you ?

 

Bye, Pat

 

 

 

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

franc_as
Enthusiast
Enthusiast

Thank you, but I already have this Sel_By_OD lisp.
But in this case not working... you must pick (only) one object with this OD table first.
But I dont know which object contains this OD.
So imagine, if you have to pick among thousants of objects to find it...

0 Likes

franc_as
Enthusiast
Enthusiast

The only solution is, to make new object and append my OD table to it.
Then run Sel_By_OD and select new object......
But I wish a simple, quicker way.
Regards

0 Likes

braudpat
Mentor
Mentor
Accepted solution

Hello @franc_as 

 

YES it is a "correct" Solution (2-3 seconds to create a Circle/Line, then 2-3 seconds for ADEATTACHDATA, then Sel_By_OD, ... wait for the result ...) !

 

Happy WE, Bye, Pat

 

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

braudpat
Mentor
Mentor

Hello @franc_as 

 

An other beautiful Lisp/VLisp routine from @CADaSchtroumpf !

 

The routine "ODYesNo" could interest you !?

 

It will find automatically Entities WITH or WITHOUT OD Tables !!

 

Happy WE, Bye, Pat

 

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

franc_as
Enthusiast
Enthusiast

Yes, I have already know and use this Lisp, and some more from @CADaSchtroumpf..

He is great...

O_Eckmann
Mentor
Mentor
Accepted solution

Hi @franc_as ,

 

If you can install a plug-in, you could use mine : https://apps.autodesk.com/MAP3D/fr/Detail/Index?id=7146835859656784994&appLang=fr&os=Win64 

 

Here is a video to solve your problem.

SelectObjectByOD.mp4
Video Player is loading.
Current Time 0:00
Duration 0:29
Loaded: 0%
Stream Type LIVE
Remaining Time 0:29
 
1x
    • Chapters
    • descriptions off, selected
    • captions off, selected
    • en (Main), selected
    (view in My Videos)

     

    Olivier Eckmann

    EESignature

    0 Likes

    franc_as
    Enthusiast
    Enthusiast

    Great tool, works perfectly....Thank you!

    0 Likes

    Type a product name