.NET

Reply
Mentor
Amremad
Posts: 217
Registered: ‎08-24-2010
Message 1 of 5 (225 Views)
Accepted Solution

Connection

225 Views, 4 Replies
02-18-2013 06:13 AM

How Can i connect my Function in vb.net with autocad command (in drawing)

 

thx

You will compile your program into a class library. dll file.
You can use the netload command to load the file. or use the registry to automatically load them.
<CommandMethod("Command_here")>

http://www.autodesk.com/developautocad

or

purchase VB.NET For AutoCAD 2010
http://www.vbcad.com/

If you want to know how to get started.

*Expert Elite*
arcticad
Posts: 1,285
Registered: ‎06-21-2004
Message 2 of 5 (222 Views)
Mentor
Amremad
Posts: 217
Registered: ‎08-24-2010
Message 3 of 5 (179 Views)

Re: Connection

02-18-2013 11:15 PM in reply to: arcticad

Mr. arcticad

 

thank you for helping me

 

but i have other questions

- i will compile my vb.net project to exe file or what?? and where can i put it to run ??

<CommandMethod("CheckForPickfirstSelection", CommandFlags.UsePickSet)> _
Public Sub CheckForPickfirstSelection()
 . . .
End Sub

 in this code where the command letters where can i write in the autocad command

 

i think i have confilict with understaning this way

Moderator
Alexander.Rivilis
Posts: 1,449
Registered: ‎04-09-2008
Message 4 of 5 (172 Views)

Re: Connection

02-19-2013 03:20 AM in reply to: Amremad

Ok! Let start reading from start point:  http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer%27s%20Guide/files/WS1a9193826455f5f...

Create new project

Load an Assembly to AutoCAD


Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

*Expert Elite*
arcticad
Posts: 1,285
Registered: ‎06-21-2004
Message 5 of 5 (163 Views)

Re: Connection

02-19-2013 06:21 AM in reply to: Alexander.Rivilis

You will compile your program into a class library. dll file.
You can use the netload command to load the file. or use the registry to automatically load them.
<CommandMethod("Command_here")>

http://www.autodesk.com/developautocad

or

purchase VB.NET For AutoCAD 2010
http://www.vbcad.com/

If you want to know how to get started.

---------------------------



(defun botsbuildbots() (botsbuildbots))
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!