muck Posted November 28, 2008 Posted November 28, 2008 AutoCAD 2004 to 09 Does anyone have a simple VBA program that demos ThisDrawing.Utility.GetEntity. How does that method work? Does anyone have a simple VBA program that demos ThisDrawing.Utility.GetSubEntity. How does that method work? Thank you, Quote
CmdrDuh Posted December 2, 2008 Posted December 2, 2008 What exactly are you trying to do? GetEntity returns the ent picked as the type of object you are trying to pick, and the coordinate where the pick took place. The coordinate does not have to be on the object. Quote
CmdrDuh Posted December 2, 2008 Posted December 2, 2008 From the help file This method requires the AutoCAD user to select an object by picking a point on the graphics screen. If an object is picked, it is returned in the first parameter and the second parameter will contain the point picked in WCS coordinates. If the pick point is not on an object the call will fail. The pick point returned by GetEntity does not necessarily lie on the selected object. The returned point represents the location of the crosshairs at the time of selection. The relationship between this point and the object varies depending on the size of the pickbox and the current zoom scale. This method can retrieve an object even if it is not visible on the screen or if it is on a frozen layer. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.