.NET

Reply
Distinguished Contributor
muckmailer
Posts: 128
Registered: ‎05-10-2009
Message 11 of 26 (293 Views)

Re: Help Help Connecting VB.net to AutoCAD 2012. It's allmost impossable

05-01-2012 07:12 PM in reply to: Alfred.NESWADBA

Note, The Hello World program that I have is a AutoCAD ARX download.

I have not made any code changes that I know of so it should be usable

with my version of AutoCAD if I can get it correctly setup. 

Still working on that problem.

Thank you,

Distinguished Contributor
muckmailer
Posts: 128
Registered: ‎05-10-2009
Message 12 of 26 (293 Views)

Re: Help Help Connecting VB.net to AutoCAD 2012. It's allmost impossable

05-01-2012 07:18 PM in reply to: Alfred.NESWADBA

so I must close AutoCAD before starting the VB.net 2008 express?
Then load the VB hello world into the VB.net editor?
Then run the Hello world program in the VB.net editor and it should start AutoCAD?
Then use Netload the Autocad Dll in AutoCAD?
Is that the corrrect proceedure?

 

Thank you,

*Expert Elite*
Alfred.NESWADBA
Posts: 9,099
Registered: ‎06-29-2007
Message 13 of 26 (288 Views)

Re: Help Help Connecting VB.net to AutoCAD 2012. It's allmost impossable

05-01-2012 11:01 PM in reply to: muckmailer

Hi,

 

>> Then run the Hello world program in the VB.net editor and it should start AutoCAD?
>> Then use Netload the Autocad Dll in AutoCAD?

That's the way debugging of dotNET-DLL's in AutoCAD works :smileywink:

Didn't you look to the link to Keyn Wamlsley's site?

 

Also start your personal searcher (Google) for video's to that, there are a lot! E.g. >>>my first plug-in Training<<< will be found (lesson 4 is for debugging).

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Distinguished Contributor
muckmailer
Posts: 128
Registered: ‎05-10-2009
Message 14 of 26 (270 Views)

Re: Help Help Connecting VB.net to AutoCAD 2012. It's allmost impossable

05-02-2012 10:29 AM in reply to: Alfred.NESWADBA

Could you give me the link to the Keyn Wamlsley's website and I will take a look at it.

I look at Kean Walsley Web site called "Through the Interface" It talked about making

a file in the project folder to start AutoCAD.exe in a express project. I need to take a closer look

at it yet.

Thank you,

*Expert Elite*
Alfred.NESWADBA
Posts: 9,099
Registered: ‎06-29-2007
Message 15 of 26 (268 Views)

Re: Help Help Connecting VB.net to AutoCAD 2012. It's allmost impossable

05-02-2012 11:39 AM in reply to: muckmailer

Hi,

 

look within this thread to message 10, there I have placed a hyperlink within my last sentence called >>>this blog<<<, just click it!

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Distinguished Contributor
muckmailer
Posts: 128
Registered: ‎05-10-2009
Message 16 of 26 (264 Views)

Re: Help Help Connecting VB.net to AutoCAD 2012. It's allmost impossable

05-02-2012 12:26 PM in reply to: muckmailer

So do I have to make a file with the following informaiton in it and put it in the project folder?

 

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">     <StartAction>Program</StartAction>    

<StartProgram>C:\Program Files\AutoCAD 2007\acad.exe</StartProgram>  

</PropertyGroup> </Project>

 

and follow the instruction in that webpage to get Hello world to work?

Thank you,

*Expert Elite*
Alfred.NESWADBA
Posts: 9,099
Registered: ‎06-29-2007
Message 17 of 26 (262 Views)

Re: Help Help Connecting VB.net to AutoCAD 2012. It's allmost impossable

05-02-2012 12:30 PM in reply to: muckmailer

Hi,

 

>> So do I have to make a file with the following informaiton in it and put it in the project folder?

Not "create a file" as you already have a VBPROJ-file, you just have to modify this section within your existing VBPROJ-file of your project.

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Distinguished Contributor
muckmailer
Posts: 128
Registered: ‎05-10-2009
Message 18 of 26 (258 Views)

Re: Help Help Connecting VB.net to AutoCAD 2012. It's allmost impossable

05-02-2012 05:08 PM in reply to: muckmailer

The webpage talks about  a called file "MyProjectName.vbproj.user". It says it shoulld be in the same folder as the file "ClassLibrary1.vbproj.user". I don't see a file called Helloworld.vbproj.user or  "ClassLibrary1.vbproj.user.

So in our Autodesk Sample Helloworld. What file to I place the above code in. Do I use a text editor like word to

do this? For visual express 2008. should the first line have a 2003 in it or a 2008?

 

 

Thank you,

*Expert Elite*
Alfred.NESWADBA
Posts: 9,099
Registered: ‎06-29-2007
Message 19 of 26 (255 Views)

Re: Help Help Connecting VB.net to AutoCAD 2012. It's allmost impossable

05-02-2012 09:52 PM in reply to: muckmailer

Hi,

 

sorry, I don't use the Express-version so I never had to play with that workarounds.

And YES, you have to modify the .VBPROJ.USER file (not as I mentioned above the .VBPROJ-file).

 

If the .VBPROJ.USER file does not exist (then this may be one of the differences between the express and the prof. version) you have to create it.

 

Sorry for my mistake in the previous post!

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Distinguished Contributor
muckmailer
Posts: 128
Registered: ‎05-10-2009
Message 20 of 26 (251 Views)

Re: Help Help Connecting VB.net to AutoCAD 2012. It's allmost impossable

05-03-2012 04:19 AM in reply to: muckmailer

So create a file called Helloworld.vbproj.user with notepad and place

the above code  (message 16) in it then

put that file in the project folder?

Then follow the proceedure in message 12?

 

Thank you,

Need installation help?

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