"As it is"? No. There are many differences between VBA & VB.NET. THey ARE similar, and you may be able to get your code to work with minimal effort. But you may get more help if you post the code you are trying to get to work, as well as posting what the errors are you are getting.
To start with, get the thisdrawing equivalent using .net
Imports Autodesk.AutoCAD.Interop Imports Autodesk.AutoCAD.Interop.Common Private Shared ReadOnly Property ThisDrg() As AcadDocument Get Return Autodesk.AutoCAD.ApplicationServices.Application.D
ocumentManager.MdiActiveDocument.AcadDocument End Get End Property
Most of the VBA codes can be accessed though ThisDrg property
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register