.NET

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

.net netload run dll from autocad example

905 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 (905 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
Posts: 195
Registered: ‎04-02-2005
Message 3 of 8 (905 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
Posts: 195
Registered: ‎04-02-2005
Message 4 of 8 (905 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
Posts: 188
Registered: ‎09-18-2005
Message 5 of 8 (905 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
Posts: 51
Registered: ‎10-31-2005
Message 6 of 8 (905 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
Posts: 41
Registered: ‎04-27-2005
Message 7 of 8 (905 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
Posts: 41
Registered: ‎04-27-2005
Message 8 of 8 (905 Views)

Re: .net netload run dll from autocad example

11-16-2005 06:27 AM in reply to: saluki
the document a told before

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community