vivekgrs Posted January 22, 2009 Share Posted January 22, 2009 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 Quote Link to comment Share on other sites More sharing options...
borgunit Posted January 22, 2009 Share Posted January 22, 2009 Usually you would need to use sendcommand and use the "p", or store your entities in a selection set or collection to "hold them". Quote Link to comment Share on other sites More sharing options...
SEANT Posted January 22, 2009 Share Posted January 22, 2009 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 Quote Link to comment Share on other sites More sharing options...
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.