Jump to content

help to get previous feature


vivekgrs

Recommended Posts

hi everybody,

i am trying to select the previous entity thru vba in autodesk map 2004. can anyone give me idea to proceed.

 

Regards

M.Arunachalam

 

M,

 

I assume this post is a continuation to this one:

 

http://www.cadtutor.net/forum/showthread.php?t=31650

 

and should be considered the correction requested in this statement, “Correct me if I'm wrong but it sounds like you have the original problem figured out.”

 

If you have used:

 

ThisDrawing.Utility.GetEntity acent, bpt, "select the line :"

 

And you are trying to get the reference to that selected object, you don’t have to bother with “Previous” just use the acent reference.

 

If you expect it to be a Line then

 

Dim entLine as AcadLine

. . . . 

If TypeOf [color="darkred"]acent[/color] Is AcadLine then
Set entLine = [color="darkred"]acent[/color]
Else
‘some contingency code
End If

Link to comment
Share on other sites

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...