John Gravitt Posted March 11, 2009 Posted March 11, 2009 How can you write a script file to rotate clock hands that keep time? I can make two work but not the third. Quote
CarlB Posted March 11, 2009 Posted March 11, 2009 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 ...? Quote
John Gravitt Posted March 12, 2009 Author Posted March 12, 2009 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 Quote
CarlB Posted March 12, 2009 Posted March 12, 2009 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. Quote
fuccaro Posted March 12, 2009 Posted March 12, 2009 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 Quote
John Gravitt Posted March 13, 2009 Author Posted March 13, 2009 Thanks Fuccaro that is working great. Quote
fuccaro Posted March 13, 2009 Posted March 13, 2009 Ok, John, I glad to help! Maybe one day you will show us your great working clock Quote
JONTHEPOPE Posted March 13, 2009 Posted March 13, 2009 -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 Quote
Recommended Posts
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.