Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Distinguished Contributor
BillZndl
Posts: 393
Registered: ‎09-23-2008
Message 1 of 6 (231 Views)

Display doesn't change using script to open multiple files.

231 Views, 5 Replies
12-02-2010 12:11 PM

R2006 vanilla SDI =1

 

When opening drawings with a script,

the commands execute properly but the drawing itself in the grahics display window,

changes only every 4th  or 5th file that the script opens.

 

I've tried regen, redraw, redrawall, update *acad* nothing seems to work.

 

is there a system setting or is this a version specific problem?

 

 

Mentor
t.willey
Posts: 2,504
Registered: ‎02-17-2004
Message 2 of 6 (224 Views)

Re: Display doesn't change using script to open multiple files.

12-02-2010 02:06 PM in reply to: BillZndl

I had that issue with scripts also, and I was on '06 too.  I don't see if as a problem though, as your script is just working so fast that the display doesn't have time to catch up.  I think you will notice that the name of the drawing changes each time though, and I think that if you click off of Acad it will show the opening and closing of each drawing.  I used to do that, and I think that is what happens, as I would have email or something up in my second monitor.

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 3 of 6 (218 Views)

Re: Display doesn't change using script to open multiple files.

12-02-2010 03:26 PM in reply to: BillZndl

Try add

_delay 500

 

before of the very script block

just an idea? not tested

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Distinguished Contributor
BillZndl
Posts: 393
Registered: ‎09-23-2008
Message 4 of 6 (195 Views)

Re: Display doesn't change using script to open multiple files.

12-03-2010 03:30 AM in reply to: t.willey

Thanks Tim.

 

Yeah, it's not that big of a deal as far as performance goes.

The only reason I asked is that I was having another user running some scripts and thought it would be better if he could "see" what was happening.  I thought it might be a system setting or something. Oh well.

 

Thanks again.

 

 

Distinguished Contributor
BillZndl
Posts: 393
Registered: ‎09-23-2008
Message 5 of 6 (194 Views)

Re: Display doesn't change using script to open multiple files.

12-03-2010 03:40 AM in reply to: Hallex

Interestingly enough, adding delay and a regen helped the display problem.

But.... of coarse it slowed things down.  :smileysad:

We'll be upgrading to 2010 acad soon so I''ll just run it "as is".

Thanks!

*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 6 of 6 (192 Views)

Re: Display doesn't change using script to open multiple files.

12-03-2010 04:23 AM in reply to: BillZndl

You're quite welcome

I used it for years as well as with DBX :smileyhappy:

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.