Jump to content

ThisDrawing.Utility.GetEntity, How does this work in CAD VBA?


Recommended Posts

Posted

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,

Posted

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.

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...