.NET

Reply
*C Witt
Message 1 of 20 (96 Views)

AutoCAD .NET labs (vb 2005 exp ed.)

96 Views, 19 Replies
03-21-2006 05:10 PM
Ok, I'm trying to get through Lab 1 using VB 2005 express.. but have
run into a problem..

Step 8.. as soon as I right-click on the "Lab1".. and select
Properties.. i'm stone-walled. I can't find anything the lab refers to.

HELP ..please..
*Paul Richardson
Message 2 of 20 (96 Views)

Re: AutoCAD .NET labs (vb 2005 exp ed.)

03-21-2006 06:13 PM in reply to: *C Witt

the labs were not written using vs2005
things

have changed a bit. see link

'LoaderLock was detected, C# Express
2005'


--
gl - Paul

"C Witt" <cwitt_AT_trkeng.com> wrote in
message

size=2>news:5117466@discussion.autodesk.com

size=2>...
Ok, I'm trying to get through Lab
1 using VB 2005 express..  but have
run into a problem..

Step
8.. as soon as I right-click on the "Lab1".. and select
Properties.. i'm
stone-walled.  I can't find anything the lab refers to.

HELP
..please..
*C Witt
Message 3 of 20 (96 Views)

Re: AutoCAD .NET labs (vb 2005 exp ed.)

03-21-2006 06:32 PM in reply to: *C Witt
ok.. i changed that debug setting.. and
added this code (not sure if it is in the correct spot)..
--------
Program
C:\Program Files\AutoCAD 2006\acad.exe
--------

But the editor tells me that "startaction" and "startprogram" are not
defined. Is there some other "imports" I need to do?..

the whole code..
------
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.Runtime

Public Class Class1
Program
C:\Program Files\AutoCAD 2006\acad.exe
_
Public Sub HelloWorld()
Dim ed As Editor =
Application.DocumentManager.MdiActiveDocument.Editor
ed.WriteMessage("Hello World")
End Sub
End Class
------



TIA (very lost in dotnet land)
*Tony Tanzillo
Message 4 of 20 (96 Views)

Re: AutoCAD .NET labs (vb 2005 exp ed.)

03-21-2006 06:46 PM in reply to: *C Witt
You can't debug .NET dlls with VB.NET Express.

You need the full version or something else.

--
http://www.caddzone.com

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

"C Witt" wrote in message news:5117466@discussion.autodesk.com...
Ok, I'm trying to get through Lab 1 using VB 2005 express.. but have
run into a problem..

Step 8.. as soon as I right-click on the "Lab1".. and select
Properties.. i'm stone-walled. I can't find anything the lab refers to.

HELP ..please..
*Paul Richardson
Message 5 of 20 (96 Views)

Re: AutoCAD .NET labs (vb 2005 exp ed.)

03-21-2006 06:55 PM in reply to: *C Witt
where did you add it?
open "Lab1.vbproj.user" and it should
be already set for you. Make the changes
noted to 'loader lock' and hit f5.

--
gl - Paul
"C Witt" wrote in message
news:5117514@discussion.autodesk.com...
ok.. i changed that debug setting.. and
added this code (not sure if it is in the correct spot)..
--------
Program
C:\Program Files\AutoCAD 2006\acad.exe
--------

But the editor tells me that "startaction" and "startprogram" are not
defined. Is there some other "imports" I need to do?..

the whole code..
------
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.Runtime

Public Class Class1
Program
C:\Program Files\AutoCAD 2006\acad.exe
_
Public Sub HelloWorld()
Dim ed As Editor =
Application.DocumentManager.MdiActiveDocument.Editor
ed.WriteMessage("Hello World")
End Sub
End Class
------



TIA (very lost in dotnet land)
*Paul Richardson
Message 6 of 20 (96 Views)

Re: AutoCAD .NET labs (vb 2005 exp ed.)

03-21-2006 07:11 PM in reply to: *C Witt
Making the changes to 'loader lock' works for me.
I am even able to place break points and step
throught a class after hitting f5.

Is this the wrong thing to do, or do you mean
something else by not being able to debug.

--
gl - Paul
"Tony Tanzillo" wrote in message
news:5117534@discussion.autodesk.com...
You can't debug .NET dlls with VB.NET Express.

You need the full version or something else.

--
http://www.caddzone.com

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

"C Witt" wrote in message
news:5117466@discussion.autodesk.com...
Ok, I'm trying to get through Lab 1 using VB 2005 express.. but have
run into a problem..

Step 8.. as soon as I right-click on the "Lab1".. and select
Properties.. i'm stone-walled. I can't find anything the lab refers to.

HELP ..please..
*Jeff Mishler
Message 7 of 20 (96 Views)

Re: AutoCAD .NET labs (vb 2005 exp ed.)

03-21-2006 07:52 PM in reply to: *C Witt
Paul, I just semi-confirmed this. While I can now run the code direct from
the VB.2005 Express, it still does not stop/allow stepping thru the code, at
breakpoints.....

Thanks for the tip!

"Paul Richardson" wrote in message
news:5117549@discussion.autodesk.com...
Making the changes to 'loader lock' works for me.
I am even able to place break points and step
throught a class after hitting f5.
*Paul Richardson
Message 8 of 20 (96 Views)

Re: AutoCAD .NET labs (vb 2005 exp ed.)

03-21-2006 07:58 PM in reply to: *C Witt
No problem with the break points here. I have been
using c# but just tried with vb and it worked. What is
happening when you place a break?

--
gl - Paul
"Jeff Mishler" wrote in message
news:5117540@discussion.autodesk.com...
Paul, I just semi-confirmed this. While I can now run the code direct from
the VB.2005 Express, it still does not stop/allow stepping thru the code, at
breakpoints.....

Thanks for the tip!

"Paul Richardson" wrote in message
news:5117549@discussion.autodesk.com...
Making the changes to 'loader lock' works for me.
I am even able to place break points and step
throught a class after hitting f5.
*Jeff Mishler
Message 9 of 20 (96 Views)

Re: AutoCAD .NET labs (vb 2005 exp ed.)

03-21-2006 08:04 PM in reply to: *C Witt
Nothing, it just acts like they're not there and goes along it's merry way.


"Paul Richardson" wrote in message
news:5117551@discussion.autodesk.com...
No problem with the break points here. I have been
using c# but just tried with vb and it worked. What is
happening when you place a break?

--
gl - Paul
"Jeff Mishler" wrote in message
news:5117540@discussion.autodesk.com...
Paul, I just semi-confirmed this. While I can now run the code direct from
the VB.2005 Express, it still does not stop/allow stepping thru the code, at
breakpoints.....

Thanks for the tip!

"Paul Richardson" wrote in message
news:5117549@discussion.autodesk.com...
Making the changes to 'loader lock' works for me.
I am even able to place break points and step
throught a class after hitting f5.
*Paul Richardson
Message 10 of 20 (96 Views)

Re: AutoCAD .NET labs (vb 2005 exp ed.)

03-21-2006 08:21 PM in reply to: *C Witt
Got me on that, I assume debugging is working
outside of autocad dll's. I tried a few of the other
labs and could stop at breaks and step through.

--
gl - Paul
"Jeff Mishler" wrote in message
news:5117552@discussion.autodesk.com...
Nothing, it just acts like they're not there and goes along it's merry way.


"Paul Richardson" wrote in message
news:5117551@discussion.autodesk.com...
No problem with the break points here. I have been
using c# but just tried with vb and it worked. What is
happening when you place a break?

--
gl - Paul
"Jeff Mishler" wrote in message
news:5117540@discussion.autodesk.com...
Paul, I just semi-confirmed this. While I can now run the code direct from
the VB.2005 Express, it still does not stop/allow stepping thru the code, at
breakpoints.....

Thanks for the tip!

"Paul Richardson" wrote in message
news:5117549@discussion.autodesk.com...
Making the changes to 'loader lock' works for me.
I am even able to place break points and step
throught a class after hitting f5.
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.