CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 7434

CAD tip CAD tip # 11017:

   
Question CAD 
 %  platform  category 
Q - question

How to select a DWG object by its internal ID, its "handle"?

A - answer Each drawing object in a DWG file can be identified by its unique ID, a hexadecimal code which does not change through the DWG editing history. Any object (entity) is unambiguously identified by this hexadecimal number code.

If you need to find or select an object by this code, e.g. coming from an error message, you can use the LISP function (handent).

Then you can e.g. delete the complaining object with the command:

(entdel(handent "36A41"))
typed on the command line (replace the sample code 36A41 with your specific hexadecimal handle - the index, listed in the AutoCAD warning message).

To temporarily highlight the object before deleting, you can also use:

(redraw(handent "36A41")3)

To zoom to a specific object - if it is a visible drawing geometry object, use:

_ZOOM _O (handent "36A41") [Enter] [Enter]

or:

(command "_ZOOM" "_O" (handent "36A41") "")

ACAD
100% *  CAD 
26.7.2016    22969×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 14059:Import coordinates from CSV files into Fusion profiles.
Tip 13340:Where is a given font used in my drawing?
Tip 12938:How to convert a point cloud to a textured 3D model?
Tip 12830:Converting pseudo-tables consisting of lines and texts to TABLE objects in AutoCAD DWGs.
Tip 12815:How to fill iProperties into Inventor files from Excel?


Back   All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist