View Full Version : Simple VB tutorial for AutoCAD
hyposmurf
7th Nov 2004, 11:55 pm
Something helpful would be a VB tutorial on the main CADTutor page or maybe in this tutorial forum.Just a very basic one running through a simple AutoCAD task.Would anyone be able to come up with something?Im learning VBA myself am still learning the basics,creating boring calculators.Something related to AutoCAD would spark up my enthuism learning VB.Im sure alot of other members would like to learn VB for CAD.Maybe someone can direct me to an online an AutoCAD VB tutorial?
sab423
8th Nov 2004, 05:43 am
Hyposmurf
Here are a couple of links I have come across. Not sure how much help they may be. :? Could be a start, though. :)
http://www.cadvault.com/
http://www.vbcad.com/
This last link is to a search on Cadalyst website for VBA articles.
http://www.cadalyst.com/cadalyst/search/moreSearchResults.jsp?repositoryType=article&searchString=VBA&searchType=basicSearch&all=article&repository=all
Hope these help.
Scott 8)
Tim Riley
15th Nov 2004, 04:58 am
Give me an example of what you'd like to do and I'll write something up.
Fantomas
2nd Dec 2004, 09:03 pm
Good new winter background...
And VBA&AutoLISP tips from warm Southern Africa www.afralisp.com .
hyposmurf
2nd Dec 2004, 11:31 pm
Yeh I thought that to, wasnt sure if I'd missed it before as Ive just upgraded my contact lenses :) .Ive tried that tutorial and like quite a few of them,theres bits that seem to be missing,like the tutorial has jumped a step.I ran through that tutorial and sudenly Im a bit miffed as to where this text is for?
Label
(Name) Label1
Caption Choose Layer:
Font Arial - Bold - Size 8
List Box
(Name) Listbox1
Font Arial - Bold - Size 8
BackColor Yellow
Heres the link to the page Im talking about,page 2.
VBA Tutorial (http://www.afralisp.com/vbaa/vbatutor2.htm)
Understand that I change the properties of the command button but where do the label and list box come into it?Didnt ask me to create one before.One thing I have noticed is the need to be incredibly accurate,as one slight mistake can throw up errors. :)
Fantomas
3rd Dec 2004, 09:37 am
Want to tell that I not the expert on VBA and it is pleasant to me LISP more. On VBA I have written only 2 programs. But I constantly use excellent VBA Help because LISP functions with prefixes VLA-* give the same opportunities as VBA.
Im a bit miffed as to where this text is for?
This text to concern to properties of elements of dialogue windows. First read through here it http://www.afralisp.com/vbaa/vbatutor.htm .
In my opinion (and not only on mine) to program in AutoCAD it is better to begin with AutoLISP. Notwithstanding what VBA more powerfull language, LISP gives inside AutoCAD more ample opportunities. VBA advantage in more ample opportunities of communication with others applications and presence dialogue windows in comparison with DCL dialogue windows, however there are many which things on VBA to make it is impossible. For creation dialogs for LISP exists ObjectDCL which I use. Look www.objectdcl.com.
eDocHelp
23rd Oct 2005, 07:52 am
8) There are currently 15 tutorials on Visual Basic and 77 on AutoLISP at http://www.3DCADTips.com. Good luck!
Powered by vBulletin™ Version 4.1.2 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.