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

simulation mechanism

  • Thread starter Thread starter dazo
  • Start date Start date

dazo

Guest
Good morning.
I have a simple mechanism consisting of 3d objects (inserted as an external reference) of which I would like to show the relative positions of the objects in successive steps simulating the movement.
having available only autocad how can I do it?
I wrote in this section thinking that the solution is to write a lisp program in which to indicate the relative positions of references in the various positioning steps, I have long been studying the programming rules but at this time I do not have sufficient knowledge to solve this problem.
I ask lisp experts: what are the instructions to manage the positioning of an external reference with a given name and make it perform a rotation or a certain movement according to the axes?
I think it is also necessary to have a waiting instruction between one step and the next that allows to change the speed of execution.
Thank you. .
 
theoretically... with a SECTION (according to the name of the xrif) you look for id (handle, index 5) of the three xrifs.(ssget "x" '((2 . "pistone"))) --> ssetfrom the data list also saves you the insertion point (Index 10) that could be useful for any rototranslation of the component compared to others.
for rotations you can use command _ Rotated e "_move" or functions vl-rotate, vl-rotate3d, vl-move and the like.
the reference to the objects to be selected by the handle:(hands "f1235") --> <ename></ename>for the pause (waiting) between the 'movements' you can use a(command "_delay" nnnn) where nnnn is the number of thousandths of second pause that must have the program before performing the next function.
 
Thank you so much. That's what I needed.
in the next few days I study the instructions and try to complete the program.
 

Forum statistics

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

Members online

No members online now.
ciao
Back
Top