Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MDI Scripting Help

7 REPLIES 7
Reply
Message 1 of 8
ryarmak
451 Views, 7 Replies

MDI Scripting Help

Hi there.

 

Is it possible to start a script that runs a few commands in Drawing1, wblocks Drawing2 from Drawing1, opens Drawing2, runs a few commands on Drawing2, closes Drawing2, and finishes up by running something in Drawing1?  I have gotten to the penultimate step, but that last set of commands is a doozy that I can't seem to figure out.  Any ideas?

7 REPLIES 7
Message 2 of 8
hawstom
in reply to: ryarmak

Well, you can't "close" drawing 2.  But can you open drawing 1?  I assume you have SDI = 1 if you are as far as you say you are.

Message 3 of 8
ryarmak
in reply to: hawstom

No, I am in MDI (SDI=0).  Drawing1 stays open the entire time.  

Message 4 of 8
SomeBuddy
in reply to: ryarmak

Hi,

 

If by script you mean a LISP routine, yes, it is possible to do all this, but if you mean a real script, you can't.

Message 5 of 8
ryarmak
in reply to: SomeBuddy

I've got both going on.  I just thought of a different route, using a temporary docmanager reactor.  

 

Thanks for the confirmation of a dead end.  I appreciate it (It sucks staying on a path towards a dead end for too long)

Message 6 of 8
hawstom
in reply to: ryarmak

Here is what I always do:

 

filedia 0

cmddia 0

sdi 1

qsave

open "1.dwg"

edit

edit

edit

qsave

open "2.dwg"

edit

edit

edit

qsave

open "1.dwg"

edit

edit

edit

sdi 1

 

Does that make sense?  If not, I can send you a sample script.

Message 7 of 8
ryarmak
in reply to: hawstom

It is actually important that Drawing1 stay open.  I'll try this other route.

 

Thanks again.

Message 8 of 8
hawstom
in reply to: ryarmak

Oh,OK.  Good luck.

 

Tom

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost