The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 General Discussion
 Behind the scene session of CAD

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Attach a File

Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Cesar Posted - October 13 2004 : 08:23:09 AM
Hello All,

I wonder if anyone has attempted or accomplished this... I have a powerful work station (3.06GHz 2GB RAM) in which I am running a script in cad (2002). All works well... I am trying to make cad do my script in a behind the scene state while I use other applications for other tasks. My problem right now is that while I have cad open in a small window it jumps on top of my maximize application upon every new drawing that opens up from the script. Is there a way to run the script behind the scenes sort of speak so that other applications do not get interupted?

Thanks,
Cesar
9   L A T E S T    R E P L I E S    (Newest First)
Cesar Posted - October 14 2004 : 08:53:38 AM
Hey Guys,

Thanks for your responses! I actually ran the script during a night time run. All worked accordingly and 15,252 files were completed. For those keeping score, it took 14 hours and 51 minutes to complete. The time actually increased because some of the files sizes were huge. It averaged about 15 drawings per minute. Still an awesome feat!

Bill - I will stay tuned in case you come up with something.

Thank you all for your support! VIVA HURRICANE!

Cesar
Admin Posted - October 13 2004 : 6:15:01 PM
Hi Cesar,

I've tried to emulate your script on my machine, and mine seems to get hung-up only on the PASTECLIP command.

If it is minimized then it stalls, but if showing, then it runs fine.

I'm sorry to say, I don't know what else can be done. It's obviously an AutoCAD thing.

I'll look around, if I find anything, I'll post it here.

Regards,
Bill
Miksteele Posted - October 13 2004 : 3:58:06 PM
If you script a few zoom extents together...will it want to pop to the front for each zoom?
Cesar Posted - October 13 2004 : 3:40:54 PM
Hello Miksteele,

No, it works fine with ZOOM E command. I don't have any special Window Tweak UI installed or running. ACAD 2002 only pops upfront when the NEW command is invoked. I don't know if ACAD has a variable to control this...

Thanks,
Cesar
Miksteele Posted - October 13 2004 : 2:35:22 PM
Cesar,

Does this happen to you on every script you run? Even a simple zoom extents script? If so... do you happen to be running a special "Windows Tweak UI" type of program that would be bring an active window to the front?
Cesar Posted - October 13 2004 : 1:14:56 PM
Hi Bill,

Yes, I have and it still comes out in front. The command that I actually see that brings AutoCAD in front is the close and new command. I have the SDI = 0, the script won't run on SDI = 1. When I minimize ACAD 2002 the script actually stops. The OS I use is Windows XP.

Are there any lines in the script that I can change to make run behind the scene?

Are there any AutoCAD variables that I need to look at?

Thanks,
Cesar
Admin Posted - October 13 2004 : 11:28:59 AM
Wow... that is quite the script...

Have you tried running it in shorter pieces? to narrow down what exact command causes AutoCAD to come to the front?

Bill
Cesar Posted - October 13 2004 : 10:13:03 AM
Hello Bill,

Thanks for your response!

Yes, I have tried "minimizing" AutoCAD after starting the script but that fails as soon as the window is minimized. The script stops.

What the script is doing is ripping one drawing, pasting it on a new drawing with template, replacing text, zoom e in model space, zoom e in paperspace, freezing layers, and dumping the new drawing in a different directory.

When this script is running it is a thing of beauty to watch as I have clocked it at 27-30 drawings a minute completed depending on the file size. I ran this on 3300 files yesterday.

Below is a section of the latest script that I am currently running:

; ***************************************************************
; HURRICANE 6.3.9 - SCRIPT CREATED 10/13/2004 : 8:28:31 AM
; ***************************************************************
_OPEN
"c:VersaCAD-J_Prod16072.DWG"
(SETVAR "MODEMACRO" "Drawing 1 of 15252")
;CREATED BY
;CESAR HERNANDEZ
;COPYRIGHT (C) 2004
;SPX-Air Treatment
;BEGIN SCRIPT
ZOOM
E
CUTCLIP
ALL

PASTECLIP
0,0
ZOOM
E
_CLOSE Y
NEW

TILEMODE
1
PASTECLIP
0,0
ZOOM
E
TILEMODE
0
ERASE
W
0,0
44,34

_.MSPACE
ZOOM
E
_.PSPACE
ZOOM
E
LAYER
FREEZE
2500010001
FREEZE
2500010002
FREEZE
2500010003
FREEZE
2500010004
FREEZE
2500010005
FREEZE
2500010007
FREEZE
2500010006
FREEZE
2500010008
FREEZE
2500010009
FREEZE
2500010010
FREEZE
2500020752

REPTEXT
ñ
%%P
Y
N
N
ALL

REPTEXT
ø
%%D
Y
N
N
ALL

REPTEXT
~
%%D
Y
N
N
ALL

PURGE
A
*
N
PURGE
A
*
N
LWDEFAULT
0
_SAVEAS "J:Prod_DWG16072.DWG"
_CLOSE

Thanks,
Cesar
Admin Posted - October 13 2004 : 09:33:11 AM
Hi Cesar,

What you ask is a good question... Have you tried "minimizing" AutoCAD fully?... a quick test on a simple "ZOOM E" script has it running without any distractions...

I suppose it also might depend on what commands are you running in your script? Is it just the "Text Window" that is appearing, or the whole application?

If you are plotting, then the AutoCAD progress-bar seems to appear.

Can you please explain a little more?

Also check this out (on a related topic)
http://www.74mph.com/faq/FAQ00154.html

Regards,
Bill

The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.14 seconds. Snitz Forums 2000