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

I'm Beginer

8 REPLIES 8
Reply
Message 1 of 9
Amremad
609 Views, 8 Replies

I'm Beginer

i'm programer using C# language and i havn't problem with C#

and i can writing VBA Code under AutoCAD

 

so

now i need to write by c# under autocad ?

 

and how can i make a function on C#, and call it in autocad using Autocad command , like trim or explod or ...

 

i need to read the first lesson in C# & AutoCAD Programing ?? can you help me?

8 REPLIES 8
Message 2 of 9
Alfred.NESWADBA
in reply to: Amremad

Hi,

 

if you know VBA, why do you change to C# and don't use VB.NET then?

 

And you can use SENDCOMMAND again, also in dotNET based DLL, you just have to take care of the synchronisity of the calling like discussed >>>here<<< (there are also other techniques listed to call commands)

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 9
Amremad
in reply to: Alfred.NESWADBA
Message 4 of 9
Alfred.NESWADBA
in reply to: Amremad

Hi,

 

>> becouse this problems i can't find solution for them

"because ..." means that is the reason you chose C# instead of VB.NET? Then start again, because you can do the same with VB.NET like you can with C#.

 

The other options were asked in the forum "Visual Basic Customization" ==> you are right that it might be answered there, but most of us think about VBA when reading that forum (and not VB.NET). And with VBA you have not that much options like you have with dotNET based development.

To get more close to selection-set with dotNET you can look to that >>>blog<<< and search for "keyword" within the text.

 

The option to access files/directories that are protected by admin-permission is the same as in all development-languages. As long as you are not allowed to access the data you will not get any access from your tool to that files (or you are hacking). I get more and more thinking that it's just me not understanding your question ;( So wait until tomorrow, hopefully other guys understand your needs.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 5 of 9
Hallex
in reply to: Amremad

I have this book for my first steps  with VB.NET:

http://vbcad.com/vbcadbooks.htm (but it was for A2008 release)

that was a gift from my best friend from CA

this is enough for the good start, then I have to

translate all  my codes on C# one by one using web

translators, then just manually later,

Try this as well

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Message 6 of 9
quigs
in reply to: Hallex

That's how I started usnig that book, it's a great stepping stone.

 

 

My name is Martin.. 😄
Message 7 of 9
Amremad
in reply to: Alfred.NESWADBA

Mr. alfred.neswadba

i know good vb.net & c#.net , any langauge of it i havn't problems

just my problem is  connecting with VB.net with command AutoCAD "mean how can i use the class or function in autocad"

 

i think i will make dll , and use it by vba

 

 

Message 8 of 9
Amremad
in reply to: Hallex

thx Mr. Hallex for helping

but i havn't visa to can buy through internet , any way i will try to find this book in another website

 

Message 9 of 9
Alfred.NESWADBA
in reply to: Amremad

Hi,

 

>> just my problem is  connecting with VB.net with command AutoCAD

There are so many videos out there for how to get startet with dotNET and AutoCAD >>>click<<<, nothing found here?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)

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