CompuServe Thread

AUTOCAD (DOS SHELL)

2 messages in this thread
#21774From: TECHNOLOGY PARTNERSApr 12, 1988 10:25 AM
HELLO, THIS IS BILL MIDA FROM TECHNOLOGY PARTNERS. I'M HAVING A PROBLEM WITH THE DOS SHELL. I'M USING DOS 3.3. EVERYTIME I SHELL OUT TO DOS AND COPY A FILE OR TWO , THE FILE(S) REMAIN UNCHANGED UNTIL I EXIT OUT OF AUTOCAD (TO MAIN MENU) AND GET BACK INTO A DRAWING. WHAT I'M DOING FOR A CUSTOMER IS WRITING AN AUTOLISP PROGRAM WHICH PROMPTS THE USER FOR SOME INFO. (TOOL, TURRET POSITION FOR NCP), THEN SHELLS OUT TO DOS TO RUN AN AUTOLISP-CREATED BATCH FILE WHICH COPIES TWO FILES (.DWG FILES). I CAN'T USE THE FILES, HOWEVER, UNTIL AFTER I EXIT OUT OF THE DRAWING AND GET BACK INTO IT. WELL, NOT THAT I CAN'T USE THEM BUT THEY REMAIN UNCHANGED. SO, HOW CAN I GET THOSE COPIES TO TAKE AFFECT WHILE STILL IN AUTOCAD, WITHOUT HAVING TO EXIT OUT? CAN I DO IT OR DO YOU HAVE ANOTHER SUGGESTION POSSIBLY OR NOT ENOUGH INFORMATION. I'D APPRECIATE ANYTHING YOU CAN TELL ME. THANKS A LOT. BILL MIDA 73417,2355
#21804From: Jamie Clay [Adesk]Apr 13, 1988 9:40 AM
Bill, tell me if I have this straight. 1) Your lisp routine shells AutoCAD to DOS 2) It then copies .DWGs from some other portion of the hard drive to the current subdirectory. (Updating/Replacing similar .DWGS?) 3) You attempt to insert these drawings and they are still the old drawings, or not there according to ACAD. 4) You quit to Main menu and the drawings are accepted as per your expectations. I'll have to test this on a machine with 3.3 (to see if that is the reason), my 3.2 dos machine performs this outline without fail. If you do all this "by hand", shelling to dos then doing an insert, will it work correctly? Are these .DWGs replacing blocks already inserted into the drawing? And if so, are you using the <drawing name>= to redefine the blocks? Please give me a step by step script of what is happening, and if possible the portion of the lisp code that controls this. Jamie (Oh yeah, CAPS LOCK off please)