Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Patriiick

Pages: 1 ... 5 6 [7] 8
91
AutoCAD talk / Use COM Interoperability with .NET
« on: November 22, 2010, 04:32:24 PM »
Microsoft Visual Studio can utilize both native .NET and COM interfaces in the same project. By utilizing COM interop, you can migrate existing code that might have been written in Visual Basic 6 or VBA without having to completely rewrite it. To access AutoCAD automation objects from a project created in Microsoft Visual Studio, create references to the following files:

    * The AutoCAD 2011 type library, acax18enu.tlb, located at <drive>:\Program Files\Common Files\Autodesk Shared.
    * The AutoCAD/ObjectDBX Common 18.0 type library, axdb18enu.tlb, located at <drive>:\Program Files\Common Files\Autodesk Shared.

NoteThe previous mentioned type libraries are also available as part of the ObjectARX SDK. For information on downloading and installing the ObjectARX SDK, see Components of the AutoCAD .NET API.

These references will make the following primary interop assemblies available:

    * Autodesk.AutoCAD.Interop.dll (for AutoCAD-specific types)
    * Autodesk.AutoCAD.Interop.Common.dll (for types shared by ObjectDBX™ host applications)

The interop assemblies are located in the global assembly cache; they map automation objects to their .NET counterparts
target audience:{intermediate}

92
Windows forms / Re: Osnap Palette
« on: November 22, 2010, 12:57:46 PM »
Talking about automatic conversion from C# to VB, here is the result for the OSPALETTE class using this tool:

Code: [Select]
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.Windows

Namespace OsnapPalette
Public Class OsPalette
Shared ps As PaletteSet
Friend Shared osmCtrl As OsmodeControl

Public Sub New()
osmCtrl = New OsmodeControl()
End Sub

Public Sub Show()
If ps Is Nothing Then
ps = New PaletteSet("OSPALETTE", New Guid("{379AD059-A26C-4a3b-A05C-313A799D48CA}"))
ps.Style = PaletteSetStyles.ShowPropertiesMenu Or PaletteSetStyles.ShowAutoHideButton Or PaletteSetStyles.ShowCloseButton
ps.Name = "Accrochages aux objets"
ps.MinimumSize = New System.Drawing.Size(300, 340)
ps.Add("Accrobj", osmCtrl)
End If
ps.Visible = True
End Sub

<CommandMethod("OSPALETTE")> _
Public Sub Accobj()
Me.Show()
End Sub
End Class
End Namespace


93
This site / Mails from AcadNETwork considered as spam
« on: November 22, 2010, 08:48:31 AM »
Please when you start using this site, check your mail spam inbox because it appears mail from the site will endup there...  :reprobateur:
Then mark these mails as safe.


target audience:{beginner}

94
C# language / Code conversion from C# to VB
« on: November 22, 2010, 08:31:42 AM »
Hi, do you have any experience with code converters from C# to VB NET? What's the best converter? Do you still have manual retouches to do after converting? Thanks for your feedback about code converters.


target audience:{intermediate}

95
This site / Mark a topic as solved
« on: November 21, 2010, 07:43:02 PM »
Please when a question you asked has been solved by replies made to the first message, mark this first message as "solved" using the message icon

target audience:{beginner}

96
This site / Extra verification when posting for newbies
« on: November 21, 2010, 07:40:11 PM »
The first times you post a new message, you may be asked to type in verification letters (anti spam) and to answer a simple question. This is an extra security measure to exclude automatic bots from using this site. Once you post your first messages, you will not be asked anymore to prove you are a human...  :clin_oeil_rapide:


target audience:{beginner}

97
.NET newbies / Links to web ressources
« on: November 20, 2010, 07:41:17 PM »
Here is a list of interesting web adresses for helping you in .NET programming.
This list will be updated regularly by the webmaster.


If you want to suggest a new link please reply to this message.

There is also our specialised search engine for searching only on .NET AutoCAD related sites. Give it a try.

98
Math and Geometry / Re: Geometry extensions
« on: November 20, 2010, 04:01:08 PM »
Thanks (gile) for that, it's certainly the main purpose of this site to "not reinvent the wheel", and to find good libraries like yours.

99
.NET newbies / Autodesk programming courses
« on: November 20, 2010, 02:01:56 PM »
Want to get under the hood of the .NET API for AutoCAD®? If you wish to customize AutoCAD or develop applications on top of it—without having to learn C++ programming first—then this class is for you. Autodesk is offering programming courses.

100
Visual Studio environment / DevTV: Introduction to AutoCAD .NET Programming
« on: November 20, 2010, 12:15:49 PM »
This video is getting old but the basics don't change, so you you will benefit watching it, it will go through the Visual Studio environnment and AutoCAD programming: