Locating a dwg file within a dwg.

Locating a dwg file within a dwg.

Anonymous
Not applicable
646 Views
2 Replies
Message 1 of 3

Locating a dwg file within a dwg.

Anonymous
Not applicable

Hello,

 

I am trying to mark a dwg file obsolete.  I have dropped the obsolete file into the main drawing, but I can't seem to locate it.   I tried to drop it again only to be told that the file is already there.   Did use the find command only with no success.  Any help would be greatly appreciated.  

 

Thanks,

 

Stacey

0 Likes
647 Views
2 Replies
Replies (2)
Message 2 of 3

WarrenGeissler
Advisor
Advisor

Type QSELECT. Object Type= Block Reference, Properties=Name, Operator = Equals, Value [YOUR DRAWING NAME]


Warren Geissler
Drafting Manager Denver Water
_____________________________________________

Please ACCEPT AS SOLUTON if this works
(...and doesn't melt your computer or cause Armageddon)

0 Likes
Message 3 of 3

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

....  I have dropped the obsolete file into the main drawing, but I can't seem to locate it.   ....   Did use the find command only with no success.  ....



How did you drop it in?  I find that if I do it by drag-and-dropping an item from a Windows Explorer folder location, it invokes an INSERT command and asks for insertion point, etc., so I end up with it as an Inserted Block reference in the current drawing.  But if I do it by drag-and-dropping from a drawing file icon on my desktop, it only brings the definition  into the current drawing, but does not  actually Insert one anywhere, so there would be none to find.  But INSERT's dialog box then has it as an available Block name, so I can put one in if needed.

 

If you are not using Acad LT, and therefore can use AutoLisp functions, try this:
  (ssget "_X" (list (cons 2 "YourBlockName")))

"YourBlockName" would be your obsolete drawing file name, without  the .dwg filetype ending.  If that returns nil, there are none Inserted  anywhere, but that doesn't mean the definition  isn't in the drawing.  Also try this:

   (tblsearch "block" "YourBlockName")

If that returns nil, the definition  is not in the drawing.

 

[FIND wouldn't be the right command, anyway -- that's about text content.]

Kent Cooper, AIA
0 Likes