Message 1 of 4
First .net Program
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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