Looking for VBA tutorials for AutoCAD
F6T1P1#3
Hi Zoom The VBA Editor is filled with VBA examples. Go to the object browser icon, click on it Type what you are looking for; then...
Changing the active Layout
F6T2P1#3
Hey Tom You can loop through the entire collection of layouts and if necessary, exclude Model If would be something like this; This...
Vlax.cls for VBA and AutoLISP apps.
F6T7P1#4
Hi Nugent I am very interested in this code: In AutoLISP: (setq TextString “Hello World”) In VBA: Dim VL As New VLAX...
F6T7P1#6
Hi Nugent I am the opposite; I am not new to VBA but I am not really familiar with LISP or VLISP. On Friday I did finally figure out...
F6T7P1#8
Great! Thanks Nugent! That is great that it works but I am sure there is a way to do it without The VLAX Class. However, you will still...
F6T7P1#9
Nugent The post I sent you is a bit older I'm sure you have a later version of VLISP then that which is in the example. I have V 16...
F6T7P2#11
Hey Nugent You're welcome! May be we can figure it out together Now, I apologize I sifted threw the code a bit earlier; I probably...
F6T7P2#13
Hi Nugent Since I am not familar enough with LISP, that will be hard for me to tell. I am much better at VBA then LISP. I can only do...
F6T7P2#15
Yes sir! Good job! It is working great now Nugent! Thank you! A little bit of team work, huh? : ) The only thing I did was make the...
F6T7P2#17
Yes I did the same I also put the code to a real test in a real scenario and it works very well. This is very good stuff! Nugent, I also...
F6T7P2#19
Hey Dante, I will take a look but I think you are right; we have narrowed it down to 2 very short but sweet functions. They seem to...
F6T7P2#20
Hey Nugent! How's that working out for you? Did you put it to a real test? I thought it might be a good idea to release the reference...
F6T7P3#22
Hi Nugent, I am not sure what that error means but you may want to try what I suggested in the previous post; that is releasing the...
F6T7P3#23
Actually you are not really using the functions much there hummmm Again, I would try what I suggested; also are you sure that you...
F6T7P3#26
Nugent I am still not sure what that error is about; you can Google VBA and The Error, I bet you will get some answers. In VBA (as...
F6T7P3#28
Excellent! It looks good! Cstr, that is a good one to know. I have used Instr, that allows you to find a character in a string I also use...
F6T7P3#29
Nugent, I also agree; DCL is limited Mark...
F6T7P4#31
Hi Nugent! I am glad you got your routine working, that is great! Remember, you helped me as well to narrow the functions down All I...
F6T7P4#33
Absolutely you can Right there in the getfiled menu macro; just change tif to jpg or whatever file type you want and the windows file...
F6T7P4#34
Hey Nugent! Try this now. I finally finished it. I added the move raster section I think you will like Mark Sub InstRastMkCBnd() Dim...
F6T7P4#35
Nugent, You may want to take advantage of this one as well I have it as a sub in the same project as the other one. This one will...
F6T7P4#37
Nugent For the first one; you have to first run this AutoCAD macro: ^c^cvbastmt;ThisDrawing.ActiveSpace = acPaperSpace;(setq...
F6T7P4#38
Nugent Here is the version that uses The Windows File Open Dialog Method fro AutoCAD-VBA. Just copy and paste it into a...
F6T7P4#40
Hi Nugent OK, I figured out how to attach it I have no clue why you are getting these errors but here is the project. There might...
LM.dvb
F6T7P5#42
Yes sir! You're welcome Thanks! I'm glad it is working for you. I am somewhat of a commenting maniac, so that should help you to...
F6T7P5#46
Hi Dante, I saw your code; I will definetely take a look at it as soon as I get a chance. I must admit, I am not a LISP programmer, I am...
F6T7P5#47
Nugent/Dante This is a little bizarre but in theory it should work. I created a selection set in VBA, however, for the life of me, I can...
F6T7P5#49
Nope! That is just fine because The Selection Set works just fine otherwise The question (challenge) here is how do we take a...
F6T7P5#50
Nugent; In the project I sent to you; put this code '***Selection Set*** 'If named selection set already exists, then delete it; otherwise...
F6T7P6#52
Hummmmmmm So are you are saying that we are not able to pass variables containing objects? That would amke sense as LISP...
F6T7P6#55
Hi Nugent, that is OK Let me repost it; then you can see what I did As far as the object sharing, it sounds a bit scary. These guys on...
LM.dvb
F6T7P6#57
Hi Nugent I agree with you! And remember, we worked out the functions I merely said, try this and you made it work. I think it is...
F6T7P6#59
Hey Nugent Thank you sir! We could certainly do that All you need to do is put Application.ZoomExtents Where you want to Zoom...
F6T7P6#60
Nugent! This might work for you. Paste the below code right under RastImg.scalefactor = 12 (Also please take note that we scale...
F6T7P7#61
Dante Believe or not; I just started looking at your addition to the code. I just realized that you attempted "successfully" to adress...
F6T7P7#63
Hi Dante Happy New Year to you as well! Honestly, I really did not come across a gold mine LOL I was wondering the same things...
F6T7P7#64
Hi Dante I have done a few more things with it that I can share but I am curious; do you know how we can send a LISP Expression...
F6T7P7#65
Hey guys, Still plugging away at The LISPtoVBA stuff? Mark...
|