Jump to content

Recommended Posts

Posted

I Am Trying To Get This Script To Work And Have Almost Lost All My Hair In The Process. Please Help Me. I Have E Spent Too Much Time On It Already. Its Sunday And I Got Other Fires In The Oven.

SCRIPT 002.scr

SCRIPT002.dwg

Posted

limits needs two points

 

dont have brackets around your pts

 

thats all folks will not work also, script will detect spaces as commands do text as

(setq ans "thats all folks")

text 1,1 5 ans

 

as script is short paste in view saves having to download

 

why delay ?

Posted

THIS IS AN ASSIGNMENT IN THE AUTOCAD COURSE GIVEN TO ME BY PENN FOSTER. AND LIKE ANY GOOD SOLDIER I DOS LIKE THAY SAYS.

 

THERE ARE TWO SPACES IN THE LIMITS LINE AND MY PC SEEMS TO THING OF THEM AS O,O AND 24,24!o:)

Posted

Can't you see what AutoCAD reports on the command line to see where the script "fails"?

 

I agree no parentheses around coordinates. And the "copy" "l" line needs an extra enter (space) to complete the selection. Some lines have a few spaces after them, not sure if that is intended.

Posted

I Am Still Working On This Thing. How Can I End A Multiple Command In My Script?

Posted

I don't understand! (command)

Posted

GRID ON

LIMITS 0,0 36,36

ZOOM A

;the following three lines are for locating purposes only, and I have

;to find a way to end the multiple command

;PDMODE 3

;MULTIPLE

;POINT 12,12 18,12 12,18 6,12 12,6

CIRCLE 12,12 4

DELAY 5000

COPY L

M 6,12 18,12

 

;the following line does not work it is just there so that the circles

;can be seen before they are erased

DELAY 5000

 

ERASE W 0,0 36,36

 

;the following is what i get in the command text window. what's up

;with the DELAY repeating?

;Command: DELAY Enter delay time (in milliseconds): 5000

;

;Command:

;DELAY Enter delay time (in milliseconds): ERASE

;Requires an integer between 0 and 32767.

Posted

I'm guessing the "delay" command repeated because you had a space at the end or a blank line after?

 

And here's how to use my 'escape' suggestion:

 

MULTIPLE
POINT 12,12 18,12 12,18 6,12 12,6
(command)
CIRCLE 12,12 4
DELAY 5000
COPY L

Posted

If you use word you can turn on the spaces and end of line character to display this will show extra spaces etc click the PI symbol to turn on if not sure use the word help display mode?

 

An extra space is like you press enter the same can be done with a blank line a lot of autocad commnads need that last enter to exit the current command in lisp it would be "".

Posted

HERE IS THE FINISHED PRODUCT. AND, INTERESTINGLY THE TEXT "THATS ALL FOLKS!" DOES NOT APPEAR UNTIL ACAD LOSES FOCUS?;

 

GRID ON

LIMITS 0,0 36,36

ZOOM A

;the following three lines are for locating purposes only, and I have

 

;to find a way to end the multiple command

PDMODE 3

;MULTIPLE

POINT 12,12 POINT 18,12 POINT 12,18 POINT 6,12 POINT 12,6

 

DELAY 1500

CIRCLE 12,12 4

DELAY 1500

COPY L

M 6,12 18,12

 

 

DELAY 1500

;GRID OFF

ERASE W 0,0 36,36

DELAY 1500

LIMITS 0,0 12,9

ZOOM A

;GRID OFF

TEXT 1,1 .5 0 THATS ALL FOLKS!

DELAY 1500

ERASE L

DELAY 1500

RSCRIPT

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...