• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

create a rotating script with continuous loop

  • Thread starter Thread starter Terix
  • Start date Start date

Terix

Guest
Good morning
I just signed up because I would like to find a solution to a skyscraper:
I created an object (designed first with lines then defined a group and assigned the name "5") and created a script that rotated it around its center (for which I specified the coordinates and the angle of rotation); I inserted rscript to create a continuous loop.
the place:
wheel wheel
g
5

1849.1666,1756.0325,20
3
r.

I save it as "rotation.scr" and I follow it and the object rotates at shots but not 3 degrees (I think that with the rscript such movement must be continuous), and sometimes it freezes and resumes after a few seconds.
How can I solve the problem?

thanks for the attention
 
Make sure that after rscript there is an empty staff.
add a delay of 1 second in milliseconds (1000).
put osnap in off
Code:
_rotate
g g
5

1849.1666,1756.0325,20
3
_delay
1000
rscript
 
ok perfect thanks for the answer; having the sw in Italian version I had inserted the command "ruota" because, after trying in the control bar precisely wheel, I recognized it quietly. I had also thought about the osnap setting in off but it didn't change much. basically the component rotated type 3/6/9/12 degrees then snapped as if it rotated 45, then after 100°, then one thing not exactly fluid.

after rscript (my mistake in gluing the script) I entered the blank space.
I still do this.

Excuse me if I take advantage of but exactly the delay I mean as a break, is it to not increase the file size and therefore not overload the system? Will it be like a "take your breath and start again"?
Thank you very much
 
delay is a delay. stops the execution of everything.
I've noticed that without that script it's working out... randomly.

probably there is a 'fair communication' between script execution and video update.

scripts date back to the very first versions of autocad. over the years things have changed (and improved) in the management of graphical response.

It seems to me that there is some sort of 'out of sync' between a sequential execution of commands through script and the update of the video today very fast with modern pcs... or something like that.
 
perfect thank you so much for all the info that were very helpful I have to say.
I have inserted in the script in commands in Italian and it works and strange thing to say the truth now I really enjoy running in loop even if I do not insert the delay and also visualizing the component in realistic visualization style (as I had drawn it also in 3d); I implemented the project by inserting 3 objects and reformulated the script in this way:
wheel wheel
g
1

647.9949,23.9962
0.5
wheel wheel
g
2

1024.3001,23.9962
-0.5.
wheel wheel
g
3

1400.6053,23.9962
0.5
r.

Everything works perfectly, I can further implement the project.
Thank you very much for the prompt intervention.
 
I did the test by turning 3 lines... and I needed the delay.
it can be that with more complex objects like yours the implied delay in selection let the flow of commands flow correctly.
 
I think it is also because, given that the thing started to work, I also did tests with two gears made in 3d and rotate perfectly. ..only "problem" is that by selecting the script groups individually, they "illuminate" each time, and alternately, which are subject to a rotation.
 
to disable highlighting put the highlight variable at 0(then reactivate it when you need to work normally otherwise you do not realize if you have selected objects)
 
Good morning, thank you very much since I am implementing the project, at this point, if possible, to create an ad hoc profile so that I can also customize system variables
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
ciao
Back
Top