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

Autocad with C#

3 REPLIES 3
Reply
Message 1 of 4
ozkan_0712
1080 Views, 3 Replies

Autocad with C#

Hi.

 

I'm a profession Autocad user and I get a help my friend who profession about C#.

I'm a begineer about AutoCad and programming. I succeed to commenation C# and autocad.  (like DevTv "Hello World")

 

I need a C# codes for Autocad 2012 programming.  I mean is that same codes Visual Basic for Application codes and C# codes? (like class)

 

Also I need a advice about this subject.

 

Thanks for helpings..

Tags (2)
3 REPLIES 3
Message 2 of 4
Mike.Wohletz
in reply to: ozkan_0712

Have you downloaded the ObjectARX developer kit and looked at the samples? Also try the following links:

http://through-the-interface.typepad.com/

http://exchange.autodesk.com/autocad/enu/online-help/browse#WS1a9193826455f5ff2566ffd511ff6f8c7ca-48...

 

Message 3 of 4
ozkan_0712
in reply to: ozkan_0712

Hi.

 

Thanks for helping.

 

Yes, We download objectarx Documentation and  Download Complete ObjectARX SDK.

 

We looked and studied about it. But I think our problem is that I and my friend work different area. I'm a designer. He is a programmer. 

 

We made some codes that use Visual Basic for application(in Autocad Tool box) and it worked.But we need to more detail about it.

 

For example:

SolidSelection.Select acSelectionSetAll

 

This code is the same use C sharp. ?

 

 

If TumPar.Count <> 0 Then
With TumPar
For xp = 1 To .Count
.Remove (1)
Next xp
End With
End If

 

On Error Resume Next
ThisDrawing.SelectionSets("SS01").Delete
Set SolidSelection = ThisDrawing.SelectionSets.Add("SS01")
grpCode(0) = 0
dataVal(0) = "3DSOLID"
SolidSelection.Select acSelectionSetAll, , , grpCode, dataVal
N = SolidSelection.Count
MsgBox "countyourdrawing: " & N

 

Message 4 of 4

Posted code is VBA-code. This link can help you to migrate to VB.NET:

http://through-the-interface.typepad.com/through_the_interface/2010/05/more-translated-autocad-vba-t...

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

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