Query objects with null value
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Query objects with null value

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
kb
Guest





Posted: Thu Apr 07, 2005 1:26 am    Post subject: Query objects with null value Reply with quote

Is there a way in to query objects that don't have object data tagged to them? I want to seperate the tagged objects from the untagged objects through a query. The way I'm doing it now, is that I first query all the tagged objects into a drawing. I then save that drawing as tagged objects. Next I have a blank drawing with SaveBack settings saved in it, so I attach original source drawing with all the objects in it (tagged and no tag) and query in the tagged drawing I just created, and then detach the orginal. I then used the save back options that we saved in the blank drawing and remove objects from the source drawing. This gives me one drawing with tagged objects and one drawing with no tagged objects.

There must be a better way, but I've tried everything and can't get it to work.

where object data value = < 0
where object data value = null
where object data value = ''
where object data value = ""

Nothing works,

Any ideas?

Back to top
Jorge Jimenez
Guest





Posted: Thu Apr 07, 2005 8:17 am    Post subject: Re: Query objects with null value Reply with quote

where object data value is null

--
Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica


"kb" <nospam@address.withheld> wrote in message
news:31374794.1112822802420.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
Is there a way in to query objects that don't have object data tagged to
them? I want to seperate the tagged objects from the untagged objects
through a query. The way I'm doing it now, is that I first query all the
tagged objects into a drawing. I then save that drawing as tagged
objects. Next I have a blank drawing with SaveBack settings saved in it,
so I attach original source drawing with all the objects in it (tagged and
no tag) and query in the tagged drawing I just created, and then detach
the orginal. I then used the save back options that we saved in the blank
drawing and remove objects from the source drawing. This gives me one
drawing with tagged objects and one drawing with no tagged objects.

There must be a better way, but I've tried everything and can't get it to
work.

where object data value = < 0
where object data value = null
where object data value = ''
where object data value = ""

Nothing works,

Any ideas?
Back to top
Tony Tanzillo
Guest





Posted: Thu Apr 07, 2005 7:26 pm    Post subject: Re: Query objects with null value Reply with quote

Object Data is stored in a dictionary that is a child of
the object's extension dictionary. It's easy to determine
what the dictionary name is, and that's really all you need.

Just filter out objects that either have no extension
dictionary, or have no specific child dictionary within
their extension dictionary, with the determined name.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"kb" <nospam@address.withheld> wrote in message news:31374794.1112822802420.JavaMail.jive@jiveforum1.autodesk.com...
Quote:
Is there a way in to query objects that don't have object data tagged to them? I want to seperate the tagged objects
from the untagged objects through a query. The way I'm doing it now, is that I first query all the tagged objects
into a drawing. I then save that drawing as tagged objects. Next I have a blank drawing with SaveBack settings saved
in it, so I attach original source drawing with all the objects in it (tagged and no tag) and query in the tagged
drawing I just created, and then detach the orginal. I then used the save back options that we saved in the blank
drawing and remove objects from the source drawing. This gives me one drawing with tagged objects and one drawing
with no tagged objects.

There must be a better way, but I've tried everything and can't get it to work.

where object data value = < 0
where object data value = null
where object data value = ''
where object data value = ""

Nothing works,

Any ideas?


Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB