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

AutoCAD .NET labs (vb 2005 exp ed.)

19 REPLIES 19
Reply
Message 1 of 20
Anonymous
473 Views, 19 Replies

AutoCAD .NET labs (vb 2005 exp ed.)

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..
19 REPLIES 19
Message 2 of 20
Anonymous
in reply to: Anonymous


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..
Message 3 of 20
Anonymous
in reply to: Anonymous

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)
Message 4 of 20
Anonymous
in reply to: Anonymous

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..
Message 5 of 20
Anonymous
in reply to: Anonymous

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)
Message 6 of 20
Anonymous
in reply to: Anonymous

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..
Message 7 of 20
Anonymous
in reply to: Anonymous

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.
Message 8 of 20
Anonymous
in reply to: Anonymous

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.
Message 9 of 20
Anonymous
in reply to: Anonymous

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.
Message 10 of 20
Anonymous
in reply to: Anonymous

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.
Message 11 of 20
Anonymous
in reply to: Anonymous

so i need 160 lines of code just to launch autocad?? (lab1.vbproj &
lab1.vbproj.user)

wow that is .. there must be a better way....no?
Message 12 of 20
Anonymous
in reply to: Anonymous

on a side note.. for lab2.. it says:
"You may first need to install the ObjectARX wizard before beginning
this lab. (..\ObjectARX 2006\utils\ObjARXWiz\ArxWizards.msi)"

were can I get this file (assuming that it is needed)? I've seared for
it, but found nothing. (last question for a while ...I hope)

thanks again.
Message 13 of 20
Anonymous
in reply to: Anonymous

Yes you can. I have.
Message 14 of 20
Anonymous
in reply to: Anonymous

Thanks, I was starting to think maybe I was using the
wrong editor. With VS5,6,02,03,05Express all on the
same maching sometimes I get lost...:-)

--
gl - Paul
"Russ Green" wrote in message
news:5117729@discussion.autodesk.com...
Yes you can. I have.
Message 15 of 20
Anonymous
in reply to: Anonymous

what 160 lines?

As far as running the labs go just skip
number 8, fix the loader lock, and go.
You only need to change the .user
file if your not using the same version of
autocad as is listed. In my case I make
two changes since I'm currently working
in ADT 06.

C:\Program Files\Autodesk Architectural Desktop
2006\

C:\Program Files\Autodesk Architectural Desktop
2006\acad.exe

--
gl - Paul
"C Witt" wrote in message
news:5117605@discussion.autodesk.com...
so i need 160 lines of code just to launch autocad?? (lab1.vbproj &
lab1.vbproj.user)

wow that is .. there must be a better way....no?
Message 16 of 20
Anonymous
in reply to: Anonymous

go to autodesk's website and download the
Arx SDK. I had it installed before installing
the express editions and I don't get the ARX
toolbar. Probably a way to intergrate it but
I haven't tried.

No you don't need it; better to find out whats
going on anyway before you start using the
wizard anyway.

--
gl - Paul
"C Witt" wrote in message
news:5117606@discussion.autodesk.com...
on a side note.. for lab2.. it says:
"You may first need to install the ObjectARX wizard before beginning
this lab. (..\ObjectARX 2006\utils\ObjARXWiz\ArxWizards.msi)"

were can I get this file (assuming that it is needed)? I've seared for
it, but found nothing. (last question for a while ...I hope)

thanks again.
Message 17 of 20
Anonymous
in reply to: Anonymous

the 2 files i mentioned.. they both have code related to the autocad
dir.. there is 110 lines of code in one of the files.. and 50 in the
other..

that is a lot more than the 2 lines you mention (though the lines do
exist..)

.. as to just changing the .user file.. that file does not exist in
"my" lab..did i do something wrong?.. (it is in the demo lab provided
by autodesk)
Message 18 of 20
Anonymous
in reply to: Anonymous

You won't see the .user file in the editor unless you
click around to find the button that shows all files.

Whenever you cannot find a file you can goto Run ->
Search and type in the name; which I said was
'Lab1.vbproj.user'. Or just open the Lab1 folder
in explorer and there it should be.
--
gl - Paul
"C Witt" wrote in message
news:5118089@discussion.autodesk.com...
the 2 files i mentioned.. they both have code related to the autocad
dir.. there is 110 lines of code in one of the files.. and 50 in the
other..

that is a lot more than the 2 lines you mention (though the lines do
exist..)

.. as to just changing the .user file.. that file does not exist in
"my" lab..did i do something wrong?.. (it is in the demo lab provided
by autodesk)
Message 19 of 20
Anonymous
in reply to: Anonymous

...ok..
what I meant by "that file does not exist in "my" lab" is that that file
is not in my directory.

The only place that file exists is in the demo lab. So I'm left with
the conclusion that I did something wrong.. (or that the steps to make
that file are not included in the lab).

that make more sense?
Message 20 of 20
Anonymous
in reply to: Anonymous

it is not created for you in the express
versions.

I would take one of the labs set it up
the way you want and use it as a template.

--
gl - Paul
"C Witt" wrote in message
news:5118365@discussion.autodesk.com...
...ok..
what I meant by "that file does not exist in "my" lab" is that that file
is not in my directory.

The only place that file exists is in the demo lab. So I'm left with
the conclusion that I did something wrong.. (or that the steps to make
that file are not included in the lab).

that make more sense?

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