The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Hurricane for AutoCAD
 New Feature Request
 How do I make a name pagesetup
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jjimenez
New Member

USA
8 Posts

Posted - January 11 2005 :  4:04:16 PM  Show Profile  Visit jjimenez's Homepage  Reply with Quote
Is there a way to make a named pagesetup in a drawing current using scripts?

n/a
deleted

112 Posts

Posted - January 11 2005 :  4:59:41 PM  Show Profile  Reply with Quote
_EXPERT 2
_-PSETUPIN
"E:A2004AcPageSetupsSteelTekSTF.DWG"
"STF"
_EXPERT 0


The script above inserts pagesetup "STF". Substitute your path and drawing name as required. I don't think that makes the pagesetup current, though. As I recall, I use the first command sequence below to set the pagesetup current.



(COMMAND "-PLOT" "NO" "Model" "STF" "X8830-STD.PC3" "YES" "YES" "NO")
(COMMAND "-PLOT" "NO" "MODEL" "STF" "X8830 STD.PC3" "YES" "" "YES" "YES")

I think if you follow the format above, you can accomplish something similar to what you are wanting to do. The last "NO" in the first command sequence answers the question "Proceed with plot?". The second command sequence (red) would actually plot the "STF" pagesetup. I'm far from being an expert, though. I think there may be an extra return ("") or "YES" in the second command sequence which plots to a file rather than plotting direct.

Also, both commands use AutoLisp, so if you have AutoCAD LT, it won't work as shown, but perhaps you can "play" with the commands at the command line and then adapt them to a script without AutoLisp.

Steve Bubendorf
Go to Top of Page

Admin
Administrator



652 Posts

Posted - January 11 2005 :  5:10:18 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
Hi jjimenez,

I would assume that you are at the point where you are just about to plot a drawing? and want to make sure that the correct pagesetup is used? Or do you want to load a new one? (like sbubendorf above is indicating using the -PSETUPIN) (I had written up my answer without seeing sbubendorfs post above, so I've edited this one)

If you just want to specify it in a plot, then make sure you script using the -PLOT command, and make sure that you provide the page setup name at the appropriate point in the script.

You'll notice you can write your scripts either horizontally like above, or vertically like below...
Here is a quick rundown on the PLOT command anyway...


;BEGIN SCRIPT
;Command: -PLOT
-PLOT
;Detailed plot configuration? [Yes/No] <No>: NO
NO
;Enter a layout name or  <Model>: MODEL
MODEL
;Enter a page setup name <>:
PUT THE PAGESETUP NAME HERE
;Enter an output device name or  <DWF6 ePlot.pc3>: 
DWF6 EPLOT.PC3
(;Enter file name <Drawing1-Model.dwf>: (Just ENTER to accept default, next line blank)

;Save changes to page setup [Yes/No]? <N> Y
Y
;Proceed with plot [Yes/No] <Y>: Y
Y
;END SCRIPT


I hope this helps, if not, please explain further.

Thanks,
Bill

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

jjimenez
New Member

USA
8 Posts

Posted - January 11 2005 :  5:43:20 PM  Show Profile  Visit jjimenez's Homepage  Reply with Quote
Thank you for all the replies I recieved. What I'm actually doing is preparing hundreds of drawings to be converted to JPG format. I'm testing a(trial)software to do this task, because it does create good quality JPG's from dwg files. Initially, these dwg files have two existing pagesetup and whatever is the current pagesetup that is what the software will use to create the JPG files on batch mode. I'm currently using LD 2005, thanks.
Go to Top of Page

Admin
Administrator



652 Posts

Posted - January 11 2005 :  5:56:24 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
I guess you have tried using the JPGOUT command in AutoCAD?

I've found you can get pretty good results if you crank your screen resolution as high up as it will go, ZOOM E then perform the command (there is also TIFOUT, and BMPOUT as well) Basically it takes a screenshot (of only the drawing area), and dumps it on the drive. Check it out, maybe the detail level will be sufficient for you.

Here is an example script you can cut/paste into Hurricane.

;BEGIN SCRIPT
ZOOM E
;Command: JPGOUT
JPGOUT
;Enter file name <F:DWGfilename.JPG>:

;Select objects or <all objects and viewports>:

;END SCRIPT


Regards,
Bill


Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

Miksteele
Hurricane-Extreme User

USA
216 Posts

Posted - January 11 2005 :  6:16:59 PM  Show Profile  Visit Miksteele's Homepage  Reply with Quote
On the subject of raster output I see... I have been unsuccessful in getting a high-res raster output with the tifout and jpgout commands. My drawings are just too big to get a decent raster image. I am now using PEERNET.DRV eTIFF 6.0... this seems to do the job for TIF ouput atleast...Although it's not 100% scriptable...yet.

I'd be interested to hear how the jpg goes for you jjimenez. Is it a driver? Do you mind sharing the name? If you have a need to go TIF you may want to check this post out http://www.74mph.com/forum/topic.asp?TOPIC_ID=149

Mike Fischer
Fischer Design Group, LLC
Building Model Coordination - Steel Detailing - Connection Design
www.FischerDesignGroup.com
Go to Top of Page

n/a
deleted

112 Posts

Posted - January 14 2005 :  08:51:32 AM  Show Profile  Reply with Quote
jjimenez,
I just had to accomplish the same task as you, I think, except that I was using software (BlueBeam PushButton PDF) to output PDF files.
The following script seemed to do the trick for me:
(command "._plot" "_n" "Model" "24X36" "" "" "_y" "_n")
(COMMAND "PREVIEW")
The plot command with the final "n" for "Proceed with plot" makes that pagesetup (in my case "24x36") current. I only had a dozen or so files and was working with someone else's files, so I added the "Preview" command so I could verify that everything was correct. If you know everything is correct in your drawings you should be able to omit the second line of the script.

If you ever need PDF output, I recommend you look at BlueBeam PushButton PDF. I love it. It seems to do what is required really quickly and has a very intuitive interface. I think it outputs TIF, as well. (No, I'm not a paid rep. I just love the software!)

Steve Bubendorf
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.33 seconds. Snitz Forums 2000