Author Topic: Entity Handle selection  (Read 2066 times)

0 Members and 1 Guest are viewing this topic.

V-Man

  • Bull Frog
  • Posts: 343
  • I exist therefore I am! Finally Retired!
Entity Handle selection
« on: February 20, 2009, 07:07:19 AM »

Hey guys, Is there someting out there that will allow you to select a entity by entity handle?
AutoCAD 9 - 2023, AutoCADMap 2008 - 2010, Revit 2012 - 2022, Autocad Civil 3D 2023

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: Entity Handle selection
« Reply #1 on: February 20, 2009, 07:11:10 AM »
(handent handle)

Will this do?
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016

V-Man

  • Bull Frog
  • Posts: 343
  • I exist therefore I am! Finally Retired!
Re: Entity Handle selection
« Reply #2 on: February 20, 2009, 08:29:41 AM »


Quote
(handent handle)

Yes, thanks.

This is what I came up with...

Code: [Select]
(setq type (getstring "\Type in eHandle>: "))
(if  (not (setq e1  (handent type)))
  (alert "\nNo entity with that handle exists. ")
  (princ e1)
)
(entdel e1 )

I had some blocks (w/attributes) in my drawing out of thousands that I needed to identify and make changes to and I needed a way to locate them and manipulate and/or delete. Thanks Tim
AutoCAD 9 - 2023, AutoCADMap 2008 - 2010, Revit 2012 - 2022, Autocad Civil 3D 2023

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: Entity Handle selection
« Reply #3 on: February 20, 2009, 08:35:24 AM »
No Problem.
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016