.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
First .net Program
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi all
i donwload ObjectARX 2011
and load ocx and dll to .net (VS2012)
and i created the class project and wite in it
'Contains the AutoCAD Type Library
Imports Autodesk.AutoCAD.Interop
'Contain the AutoCAD/ObjectDBX Type Library
Imports Autodesk.AutoCAD.Interop.Common
Public Class AdskCommand
Public ReadOnly Property ThisDawing As AcadDocument
Get
Return Autodesk.AutoCAD. _
ApplicationServices.Application. _
DocumentManager.MdiActiveDocument. _
AcadDocument
End Get
End Property
<Autodesk.AutoCAD.Runtime.CommandMethod("myroutine ")> _
Public Sub myRoutine()
ThisDawing.Utility.Prompt("Hello World From .Net")
End Sub
End Classand no problem with compiling or save file in vs2012
and i loaded it in CAD2010 or CAD 2013 using netload command
and when i write myRoutine in command bar . not run .. why
Re: First .net Program
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Try using .net Frameworks 4.0 and 3.5.
Re: First .net Program
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
You don't need to install the ObjectARX files for your project if your programming c# or VB
ObjectARX is for c++ Programming.
You also don't need to use COM Autocad.interop and you should start with a .NET API solution.
see
http://usa.autodesk.com/adsk/servlet/index?id=1816
http://through-the-interface.typepad.com/through_t
for more information

“We don’t have a snowball’s chance in a blast furnace of surviving this attack unless every one of our units gets into the fight right now!”
Re: First .net Program
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi,
You need to change the references and recompile for each version 2012/2013, as AutoCAD 2013 has changes in the API (some things were moved from one dll to another, and other changes) also, 2013, added a new dll to reference in the project (AcCoreMgd.dll).
Gaston Nunez
