"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.
Useful link: http://through-the-interface.typepad.com/through_the_interface/2010/05/more-translated-autocad-vba-t...
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
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.DocumentManager.MdiActiveDocument.AcadDocument End Get End Property
Most of the VBA codes can be accessed though ThisDrg property
Can't find what you're looking for? Ask the community or share your knowledge.