CmdrDuh 发表于 2022-7-6 17:50:31

I didn't say it was pointless, I just said you should consider it might go away sooner than later.I use VBA everyday to automate everything I can.But I am learning C# because I know that someday, I will have to give it up

wannabe 发表于 2022-7-6 17:53:41

 
Ok, thanks again.
 
I'll have a think over the coming weeks and look into what you have mentioned about other languages.
 
If i did learn VBA and it became obsolete then at least its programming experience. Maybe some companies who continue to operate with older software may extend the duration that VBA is useful for.
 
If you were me, though, how would you set about achieving my goals? What language would you learn first? Would you try to learn two at the same time, etc..
 
Cheers.

CmdrDuh 发表于 2022-7-6 17:56:40

If I were you, I would learn some basic LISP that you could use immediately. Define some shortcut commands and learn how LISP works. Then I would either learn VBA or a .Net language. Using your new LISP knowledge, you could run your VBA macros from the command prompt. (Something you cannot do easily in vba, but very easy to accomplish with LISP) I have some papers I wrote for learning VBA, I can post to get you started.

wannabe 发表于 2022-7-6 18:00:49

 
Okay, with the logic provided in this thread I will set about making LISP my current priority but will still remain keen in VBA and to educating myself in it.
 
I would be very grateful if you would share training material as you mentioned; I think I may need to accrue a higher post count before I can sent private messages.

CmdrDuh 发表于 2022-7-6 18:04:27

just a couple more and it will kick over and give you PM ability

CmdrDuh 发表于 2022-7-6 18:06:26

BTW did you see this?
http://www.cadtutor.net/forum/showthread.php?p=178997#post178997

wannabe 发表于 2022-7-6 18:08:49

 
 
Yeah, definitely kept tabs on that thread. Hopefully I will be able to amend my routine to the correct formate and by this time tomorrow I will have more questions for you .

wannabe 发表于 2022-7-6 18:14:48

Although I was trying to make my text justified middle centre at the point of creation.
 
Basically I created a drawing that saved itself and contained a circle with some text in at coordinates I specified in the macro.
 
But I think your code should be helpful enough, whilst giving me a bit to think about - which is ideal.

CmdrDuh 发表于 2022-7-6 18:16:42

objTxt.Alignment = acAlignmentMiddleCenter

wannabe 发表于 2022-7-6 18:19:11

 
I did manage to find that in that CAD help window. I just wondered where it would need to go and if I would need to declare it, but ran out of time trying combinations at work.
 
Anyway, I will have a play at work tomorrow. I think the example code you showed, showing how to amend already created text should be enough if I think about it.
 
Thanks again for your help.
页: 1 [2]
查看完整版本: LISP/VBA培训