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

Map Query

0 REPLIES 0
Reply
Message 1 of 1
rajeshpatnaik2001
437 Views, 0 Replies

Map Query

HI,

 

I want to select the objects in the curent drawing which have a specific field value. The table name is "TABLE", and filed name is "FIELD" and the value is "VALUE". In my test drawing, there are two polygons with this table and value.

For that I use the following codes.

 

To define the query:

(ade_qrydefine '("" "" "" "Data"  ("objdata" "TABLE.FIELD" "=" "VALUE")""))

 

To execute the query and get the selection set of objects:

 

(ade_prefsetval "MkSelSetWithQryObj" T)
(if (> (ade_qryexecute) 0.0)
    (setq queried_objects (ssget "P"))
    (princ "\nNo objects found.")
)

 

But I am getting at command prompt,
0 object(s) have been queried

and the selection set is empty.

Why I am not getting any objects in query? where is the mistake?

 

Any help in this regard will be highly appreciated.

 

Thanks

 

Rajesh

 

0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report

”Boost