Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Script to rotate a sphere

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
Ivan.Yanev
612 Views, 5 Replies

Script to rotate a sphere

I am writing a script to rotate a globe (sphere created with mesh). I cannot make it to appear smooth rotation on the screen. Can somebody help me with this?

 

Thank you in advance.

5 REPLIES 5
Message 2 of 6
pendean
in reply to: Ivan.Yanev

Smooth rotation?
Post your lisp too please so we can see what you used to do it.
Message 3 of 6
Ivan.Yanev
in reply to: pendean

After setting a UCS at one end of the shaft I wrote the following simple script

ROTATE

GR GLOBE

 

0.00,0.00,0.00

0.0001

RSCRIPT

 

Sphere (Globe) rotates, but rotation doesn't appear smooth on the screen and after about 10 seconds AutoCAD shuts down.

Message 4 of 6
p_mcknight
in reply to: Ivan.Yanev

I have to ask; Rotate a sphere? In what direction?

Message 5 of 6
pendean
in reply to: Ivan.Yanev

Is this for a presentation or to show someone your final 'sphere' product? Put a CAMERA on a rotating path and record the output would be how I'd do it.
Message 6 of 6
hmsilva
in reply to: Ivan.Yanev


@Ivan.Yanev wrote:

After setting a UCS at one end of the shaft I wrote the following simple script

ROTATE

GR GLOBE

 

0.00,0.00,0.00

0.0001

RSCRIPT

 

Sphere (Globe) rotates, but rotation doesn't appear smooth on the screen and after about 10 seconds AutoCAD shuts down.


I also would use pedean's solution for a presentation.

 

But if you need to use a .scr for your presentation, you should take a look the DELAY command, and possibly increase the rotation angle... Perhaps something like this

 

ROTATE

GR GLOBE

 

0.00,0.00,0.00

1

DELAY 25

RSCRIPT

 

 

Hope that helps

Henrique

EESignature

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

Post to forums  

Autodesk Design & Make Report

”Boost