.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.net netload run dll from autocad example

7 REPLIES 7
Reply
Message 1 of 8
saluki
2624 Views, 7 Replies

.net netload run dll from autocad example

Can anyone provide some instructions on how to run a dll from within autocad.

Specifically how do you code the command into vb.net so it can be called from with in autocad once the dll is loaded with netload?

Thanks in advance.
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: saluki

Your request is a bit vague.

Try putting a bit more effort into describing what it
is you want to do, and you'll find help a bit more
forthcoming.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:4995934@discussion.autodesk.com...
Can anyone provide some instructions on how to run a dll from within autocad.

Specifically how do you code the command into vb.net so it can be called from with in autocad once the dll is loaded with netload?

Thanks in advance.
Message 3 of 8
dmarcotte4
in reply to: saluki

are you looking for somthing like this?

_
Public Shared Sub mycommand()



End Sub

dan
Message 4 of 8
dmarcotte4
in reply to: saluki

wow that didn't come out right : |

CommandMethod("mycommand", CommandFlags.Modal) _
Public Shared Sub mycommand()

your code

End Sub
Message 5 of 8
saluki
in reply to: saluki

That's what I'm looking for.

I played around with it and couldn't figure out how to integrate this into my app.

Should I add it as a public sub and then add me.show to open the form in autocad when the user types "mycommand" on the command line after loading the dll with netload?

Thanks
Message 6 of 8
jankoezb
in reply to: saluki

Access modifiers aren't that much important, unless you need the command method itself elsewhere (in your app, not just as an AutoCAD command). Btw. you do NOT show your forms in AutoCAD by Form.Show() method, 'cause it'll most likely crash. Use Application.ShowModalDialog(...) or ShowModelessDialog(...) methods in Autodesk.AutoCad.ApplicationServices namespace..

Janko Jerinic
Message 7 of 8
as
in reply to: saluki

i guess you're looking for something like this:

create a class called Commands, like this:

Public Class Commands

_
Public Sub HalloCommand()
PromptMessage(vbCrLf + "Hallo Gebruiker!" + vbCrLf)
End Sub

end Class

wkr

Harold van Aarsen

The command doesn't come cerrectly, i wil post a new reply with a document attached Message was edited by: haroldvanaarsen
Message 8 of 8
as
in reply to: saluki

the document a told before

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost