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

move an object according to a linear movement

  • Thread starter Thread starter iron72
  • Start date Start date

iron72

Guest
Good evening.
I have just arrived at autolisp, I tried to make a script lisp to move an object in a linear way, so far it only works that the object keeps moving endlessly without going back, practically I would like to make a program that asks me where and how many millimeters of moving a certain object must perform.
the final idea would be to build a mechanism of biella crank, like that of the movement of a burst motor.
Someone can give me a few tips, please.
p.s.:I'll set my script here
 

Attachments

Iron, I noticed how you drew hands full to my lisp of rotation simulation.
It's more than good, but you have to figure out what you did to autocad.

said in summary you do this way
- set a variable called 1 control
-selection of objects
- from the starting point
- Give a move step

from this points start a cycle (the while) that does not stop until the control variable is different from zero (i.e. never)

as the lisp will not stop until you block it with control+c.

you need to insert a section that condition the end of the while cycle.
I don't tell you why there can be endless ways to stop it and with different results
 
I told you it's more than good.

But you don't just have to fuck, you have to figure out how it works.
I told you exactly what you're doing in autocad and where to intervene.
The rest I think you can put it on, right?

And believe me, simulating a biella mechanism with autolisp is Moroccan, you have to know it well to get it done.
 

Forum statistics

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

Members online

No members online now.
Back
Top