Jump to content

VBA - Autocad to viewport and windows print


Recommended Posts

Posted

Hi everybody,

i need help....I am looking for two command of VBA of the layout. Some example would be fantastics...

 

The two command are:

 

--> one to increase the dimensions of viewport

 

Increase the viewport.PNG

 

 

 

-->the another to set the windows to print through the setting of two point (lower left corner e upper right corner of the area that i want to print)

 

windows to print.PNG Window to print in action.PNG

Thank you very much in advance

Increase the viewport.PNG

windows to print.PNG

Window to print in action.PNG

Posted (edited)
pls post the link

The preceding your question, I gave an example:

http://www.cadtutor.net/forum/showthread.php?99552-VBA-CODE-From-multiple-areas-to-plot-in-model-space-to-create-a-layout-for-each-areas&p=677456&viewfull=1#post677456

Link to the program:

https://www.kdmsoft.net/revers.html

Write to the author, it will help you on Skype.

Edited by maratovich
Posted

maratovich...I don't want a program...i want to know the string that i have to use to do it....so don't advertise!

Posted

What's wrong with making a template (.DWT file) with all the right settings in them?

Also setting some 'standaard' page setup options can do the trick.

 

But to be honest i don't really understand the question.

 

You could write a lisp routine with the following command:

 

-plot

 

Most settings that the plot windows has can be done in the commandline.

Posted

The lisp command line version

 

(COMMAND "-PLOT" "Y" "" "[url="file://\\100B-CLR-PRN03"]100B-CLR-PRN03[/url]" "A3 (297 x 420 mm)" "m" "LANDSCAPE" "N" "W" "-6,-6" "807,560" 
  "1=2" "C" "y" "DesignlaserCOLOUR.ctb" "Y" "n" "n" "n" "N" "N" "y")
  )

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...