.NET

Reply
Distinguished Contributor
saluki
Posts: 188
Registered: ‎09-18-2005
Message 1 of 8 (1,066 Views)

.net netload run dll from autocad example

1066 Views, 7 Replies
10-26-2005 07:58 PM
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.
*Tony Tanzillo
Message 2 of 8 (1,066 Views)

Re: .net netload run dll from autocad example

10-27-2005 03:31 AM 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.
Distinguished Contributor
dmarcotte4
Posts: 195
Registered: ‎04-02-2005
Message 3 of 8 (1,066 Views)

Re: .net netload run dll from autocad example

10-27-2005 05:36 AM in reply to: saluki
are you looking for somthing like this?

_
Public Shared Sub mycommand()



End Sub

dan
Distinguished Contributor
dmarcotte4
Posts: 195
Registered: ‎04-02-2005
Message 4 of 8 (1,066 Views)

Re: .net netload run dll from autocad example

10-27-2005 05:38 AM in reply to: saluki
wow that didn't come out right : |

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

your code

End Sub
Distinguished Contributor
saluki
Posts: 188
Registered: ‎09-18-2005
Message 5 of 8 (1,066 Views)

Re: .net netload run dll from autocad example

10-27-2005 09:13 PM 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
Valued Contributor
jankoezb
Posts: 51
Registered: ‎10-31-2005
Message 6 of 8 (1,066 Views)

Re: .net netload run dll from autocad example

11-10-2005 03:02 AM 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
Active Contributor as
Active Contributor
as
Posts: 41
Registered: ‎04-27-2005
Message 7 of 8 (1,066 Views)

Re: .net netload run dll from autocad example

11-16-2005 06:23 AM 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
Active Contributor as
Active Contributor
as
Posts: 41
Registered: ‎04-27-2005
Message 8 of 8 (1,066 Views)

Re: .net netload run dll from autocad example

11-16-2005 06:27 AM in reply to: saluki
the document a told before
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.