.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
VBA to VB.net
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
210 Views, 3 Replies
12-27-2011 08:09 PM
I have created a macro using VBA which is working fine and after that i have written the same logic in VB.net and that DLL is giving lot of errors. Is there any way that i can use the vba code as it is in VB.net? Thank you.
Re: VBA to VB.net
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-27-2011 08:17 PM in reply to:
muthineni
"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.
Jeff_M, also a frequent Swamper
Re: VBA to VB.net
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-28-2011 01:23 AM in reply to:
muthineni
Re: VBA to VB.net
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-07-2012 10:08 PM in reply to:
muthineni
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 PropertyMost of the VBA codes can be accessed though ThisDrg property




