Can anyone tell me how to print a series of drawings using the VBA printing PLOT object to print to a PDF?
I am having several problems with this. It works fine on my machine with an older version of Distiller, but not everyone here has distiller and I can't seem to find the version I have...
I am trying to determine if a drawing is longer Vertically than it is Horizontally. If it is I want to rotate the drawing by 90 degrees.
Does anyone have any idea how to check the max dimensions using VBA and then how to rotate the drawing?
I used to do this in Lisp using the following...
Does anyone have any idea what the autocad Error "Blue" means? This is all I have. It is an exclamation mark and the word "Blue" and just an OK button.
Can anyone tell me how to get the maximum height and width of the actual drawing objects in a DWG? I have several drawings that are rotated 90degrees from the usual position in order to facillitate an older printing program. I want to write a program that compares the height of the drawing to...
I am using a VBA macro to open and print a series of drawings. Currently, VBA will Regen any drawings made with an older version of AutoCAD before it does the print. I would like to prevent this if possible. Does anyone know how I can turn off the REGEN when I open a drawing? Here is the code I...
Does anyone know a good way to avoid the prompt for filename and view output in Acrobat when printing to Acrobat Distiller? I can specify a .pc3 file but then it plays havoc with my print settings and my drawings come out all screwy. What I would like to do is print the drawings to PDF...
Is there any function in VBA autocad that will return the full path of either the My Documents or Desktop folders?
object.GetSpecialFolder only returns windows,temp or system folders.
Can anyone tell me how to run a VBA macro every time I launch AutoCad? I have a Macro button that I want to add to the toolbar. I use a VBA sub called "AddToolbar" but the next time I Launch Acad the toolbar button is gone. So, what I want to do is set autucad to run "AddToolbar" everytime I...
Can anyone tell me how to run a VBA macro every time I launch AutoCad? I have a Macro button that I want to add to the toolbar. I use a VBA sub called "AddToolbar" but the next time I Launch Acad the toolbar button is gone. So, what I want to do is set autucad to run "AddToolbar" everytime I...
OK, I am trying to use a Dir function to create nested sub directories to store my drawings in. I create an array containing all the positions of "/" in my directory path. then I use Mkdir to create the sub directories using the following code
[COLOR=blue]
i = 0
While i < length
If Place(i) < 4...
I am having a major problem with plotting and it has only gotten worse as I have played with it.
I want to Plot the current Drawing Using VBA. I want the drawing to be centered, I want it to print to extents and I want the plot to scale to fit the page. Can someone show me how I do this?
I am doing a program that uses VBA to open, Center, Zoom and then time stamp a drawing in AUTOCAD. I can do everything else, but how do I open a different drawing using VBA from within autocad?
Just to clarify, I have 10 drawings in a set on my engineering directory, I want to open each one...
I am trying to use A dynamic array in VBA and I am having a problem. I wrote the following function to Redim my Dynamic array and add an element to the last spot.
Function DarrayAdd(Darray As Variant, Ditem As Variant)
ReDim Preserve Darray(UBound(Darray) + 1)
Darray(UBound(Darray)) = Ditem
End...
I am sure this is a simple question but I can't figure out how to do this.
I have a userform with 2 sets of radio buttons, one with four buttons and one with 3 buttons. Currently I am checking the value of each button using a switch statement and then returning 1-3 or 1-4 for the one selected...
I have started to use VLISP again after a one year Hiatus. I am having a problem with one of the functions that I have previously written. The function will run to a certain point and then simply quit and dump me to the command line with the message:"error: bad argument type: stringp nil" Now I...
I am trying to start using VBA in AutoCAD to replace some of my older VLISP functions. I can get into the VBAIDE and I make out a few of my userforms and some of the macro's, but when I quit The project get's saved as a .DVB and I have no idea of how to open it back up again. Anyone know what I...