Jump to content

Recommended Posts

Posted

How can you write a script file to rotate clock hands that keep time?

I can make two work but not the third.

Posted

How did you make 2 work, just repeat that ...:)

 

No really, is this a Script (.scr) file that is displaying slides? Or a lisp routine that rotates an object (hand), or ...?

Posted

this is the (.scr ) that will run the two,

 

Rotate

L

 

5,5

-2

Rotate

C

3,3

7,7

R

L

 

5,5

-5

Delay 1000

Rscript

Posted

Using just AutoCAD commands really limits control of objects in a script. I see you used "l" for last. That and "p" are the only ways I can think of selecting an object other than by picking or giving coordinates.

Posted

You can group together all the geometry belonging to a hand using the GROUP command. Assign a name to that group and be sure it is selectable. Now repeat the grouping and naming for the other hands.

In the script file call the ROTATE command and enter G or Group when it expects for the objects to be rotated, followed by the name you previously assigned.

-Not tested, but it should work :unsure:

Posted

Thanks Fuccaro that is working great.

Posted

Ok, John, I glad to help!

Maybe one day you will show us your great working clock :)

Posted

 
-COLOR
Blue
DONUT
8.0
8.4
5,5
-COLOR
Green
Pline
5,8.5
Width
0.25
0.25
@0.25<270
-ARRAY
Last
Polar
5,5
12
360
Y
-COLOR
RED
PLINE
5,5
Width
0.5
0
@3.5<0
-COLOR
Cyan
Pline
5,5
Width
0.35
0
@3<90
SCRIPT
"C:/Program Files/Autodesk Building Systems 2006/Support/rotate.scr"

 

code by SHAM TICKOO Genius!!

 

you have to save slide files in support folder .sld

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...