Tutorial for VBA developers to use Visual Basic and C# 2008 Express Edition

Tutorial for VBA developers to use Visual Basic and C# 2008 Express Edition

Anonymous
Not applicable
1,079 Views
12 Replies
Message 1 of 13

Tutorial for VBA developers to use Visual Basic and C# 2008 Express Edition

Anonymous
Not applicable
Hi All,

I am attaching two documents that provide an introductory quick start tutorial on using the VB and C# 2008 express edition for Acad development. The target audiance is VBA developers contemplating migration of their VBA code to the .NET environment. This tutorial does not talk about how to use the AutoCAD based APIs. It just gives a very quick introduction on how to create a very simple .NET application loadable into AutoCAD using the VB and C# Express Edition.

Your comments are most welcome.

Thanks
Gopinath
0 Likes
1,080 Views
12 Replies
Replies (12)
Message 2 of 13

Anonymous
Not applicable
Talk about Karma! I just installed VS08 yesterday. After fumbling around in the IDE, I decided to fumble around online to try and find some documentation that would keep me from fumbling. Thanx!
'
0 Likes
Message 3 of 13

Anonymous
Not applicable
Thank you Gopinath, for sharing...

Cheers

Filipe Francisco
0 Likes
Message 4 of 13

Anonymous
Not applicable
Thanks gopinatht for taking the time to put this together.

The tutorial shows use with autocad 2010, what version of autocad can you begin using VS 2008 Express?

Thanks
Cadger
0 Likes
Message 5 of 13

Anonymous
Not applicable
Can't tell you much because I can't open it.

Consider distributing in a format that more people have access to.

On my WinXP system, 'docx' is an unknown file type.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


wrote in message news:6129150@discussion.autodesk.com...
Hi All, I am attaching two documents that provide an introductory quick
start tutorial on using the VB and C# 2008 express edition for Acad
development. The target audiance is VBA developers contemplating migration
of their VBA code to the .NET environment. This tutorial does not talk about
how to use the AutoCAD based APIs. It just gives a very quick introduction
on how to create a very simple .NET application loadable into AutoCAD using
the VB and C# Express Edition. Your comments are most welcome. Thanks
Gopinath
0 Likes
Message 6 of 13

Anonymous
Not applicable
to open docx (is a format of Office 2007) you need a converser to open that file

Microsoft Office Compatibility Pack for 2007 Office Word, Excel and PowerPoint File Formats
http://www.microsoft.com/downloads/details.aspx?FamilyId=941B3470-3AE9-4AEE-8F43-C6BB74CD1466&displaylang=en

Cheers
Filipe Francisco
0 Likes
Message 7 of 13

Anonymous
Not applicable
PDF C# version
0 Likes
Message 8 of 13

Anonymous
Not applicable
PDF VB version
0 Likes
Message 9 of 13

Anonymous
Not applicable
I have Office on another system (slows down my development
system way too much), and was able to open it there.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


wrote in message news:6129385@discussion.autodesk.com...
to open docx (is a format of Office 2007) you need a converser to open that
file Microsoft Office Compatibility Pack for 2007 Office Word, Excel and
PowerPoint File Formats
http://www.microsoft.com/downloads/details.aspx?FamilyId=941B3470-3AE9-4AEE-8F43-C6BB74CD1466&displaylang=en
Cheers Filipe Francisco
0 Likes
Message 10 of 13

Anonymous
Not applicable
Thanks Cadger for converting the docs to PDF. Also here is the doc version of the documents for those who have older version of MS Office.
0 Likes
Message 11 of 13

Anonymous
Not applicable
Yes, I tested Express against the upcoming release Acad 2010 but the .NET environment being what it is, it should be possible to use it with previous versions of Acad as well like acad 2009, 2008 or 2007. Just remember to use the right version of acmgd.dll and acdbmgd.dll with these versions of autocad.

Please do let me know if you face any problems doing this.
0 Likes
Message 12 of 13

Anonymous
Not applicable
You should also make clear that they should use the
assemblies that ship with the ObjectARX SDK, rather
than the ones in the AutoCAD root folder (they are not
the same, and using the latter can lead to WSODs in
Visual Studio, depending on what one is doing).

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


wrote in message news:6130004@discussion.autodesk.com...
Yes, I tested Express against the upcoming release Acad 2010 but the .NET
environment being what it is, it should be possible to use it with previous
versions of Acad as well like acad 2009, 2008 or 2007. Just remember to use
the right version of acmgd.dll and acdbmgd.dll with these versions of
autocad. Please do let me know if you face any problems doing this.
0 Likes
Message 13 of 13

Anonymous
Not applicable
Good point. However, the down side of recommending the OARX SDK assemblies is that I am assuming the developers downloaded and installed the right version of SDK. In fact, in my experience, I have found customers face unresolved assembly errors more with the sdk rather than acad install. This is because, it is more likely that users install acad at default location then the arx sdk. Another reason I did not emphasise the SDK was that it is not necessary for customers to install the SDK to do pure Acad .NET programming (though installing the SDK helps a great deal with samples and documentation). Finally, I wanted to keep the tutorial document as simple and clutter free as possible so that inexperienced programmers can get up and running as quickly as possible.

I guess there is no way to win here. As the next step to the the tutorial doc, I am planning to create a project template the developers can install on VB and C# express and use that to create skeletal AutoCAD .NET projects. The problem here too is the assumption of the location of the references.

However, I am interested in a typical scenario where you see the White Screen of Death. Can you think of a common scenario with the the acad assemblies? Or are you talking about unresolved assemblies too because of install into non-default path?
0 Likes