Page 2 of 5 FirstFirst 12345 LastLast
Results 11 to 20 of 44

Thread: Looking for animation lisp routines

  1. #11
    All AUGI, all the time madcadder's Avatar
    Join Date
    2000-11
    Location
    Back in the Bay; Looking for work.
    Posts
    979

    Default Re: Looking for animation lisp routines

    Quote Originally Posted by mike.brooks
    Thanks guys for the help you have helped me make a great point now we are trying to see how we can do some animation lisp for out product for a presentation and other things.

    Thanks alot.
    The closest thing I can tell you (for what you need) is look at the Cadalyst C2006 Benchmark . It might be able to point you in a direction. Maybe give them a quick email for advice.

  2. #12
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,706

    Default Re: Looking for animation lisp routines

    One other way to do an animation, is to use layer technique with a scriptfile.
    I.e. show a building grows up from the bottom to the top, it can be done repeatedly in a loop like a screen saver and "each frame" time dependent. It can be really nice if you have a 3D-modell in perspective and shade mode on.


    : ) Happy Computing !

    kennet
    Last edited by kennet.sjoberg; 2007-02-17 at 11:16 AM.

  3. #13
    Member
    Join Date
    2007-02
    Posts
    9

    Cool Re: Looking for animation lisp routines

    Quote Originally Posted by kennet.sjoberg
    One other way to do an animation, is to use layer technique with a scriptfile.
    I.e. show a building grows up from the bottom to the top, it can be done repeatedly in a loop like a screen saver and "each frame" time dependent. It can be really nice if you have a 3D-modell in perspective and shade mode on.


    : ) Happy Computing !

    kennet

    Would you have any examples of this it is what would work great for us.

    Thanks

  4. #14
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,706

    Default Re: Looking for animation lisp routines

    Quote Originally Posted by mike.brooks
    Would you have any examples of this it is what would work great for us.

    Thanks
    . . . hmm this one is especially for you

    Save KitCar.dwg and KitCar.scr.txt to the same location
    Rename KitCar.scr.txt to KitCar.scr
    open KitCar.dwg in at least AutoCAD 2006


    : ) Happy Scripting !

    kennet

    BTW the car in the demo is a real car that I wooden made together whith my son. Look at KitCar.jpg
    Attached Images Attached Images
    Attached Files Attached Files

  5. #15
    Member
    Join Date
    2007-02
    Posts
    9

    Cool Re: Looking for animation lisp routines

    kennet

    I love it and the office loves it and thinks for the information it the script file you are a great help. One more question about this though can you run a script file out side of autocad. If so what other progreams can run it.

    Thanks

  6. #16
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,706

    Default Re: Looking for animation lisp routines

    Quote Originally Posted by mike.brooks
    kennet

    I love it and the office loves it . . .
    I am glad you and your office like it.
    Quote Originally Posted by mike.brooks
    . . .can you run a script file out side of autocad. . .
    No you can not run a scriptfile without AutoCAD,
    a scriptfile is just AutoCAD commands one after an other.

    Quote Originally Posted by mike.brooks
    . . . If so what other progreams can run it. . . .
    Sorry, I think it is better if you ask in the program forum. . .

    : ) Happy Computing !

    kennet

    Hint, to create scriptfile you can track down your commands to a logfile
    Command: logfileon . . . do some things, create, zoom, whatever . . . Command: logfileoff
    open the newly created logfile with (startapp "NotePad" (getvar "LOGFILENAME" )), edit and save as MyCurrentDrawing.scr.

  7. #17
    Member
    Join Date
    2007-02
    Posts
    9

    Wink Re: Looking for animation lisp routines

    thanks again

  8. #18
    I could stop if I wanted to
    Join Date
    2003-11
    Posts
    277

    Default Re: Looking for animation lisp routines

    Hi kennet,
    it's good animation,I like that.
    btw...it's a simple procedure I think,you only played layer system,alls the layer off and then switch on one by one.
    if you zoom at the spring,it look rather roughish,I guess you got trouble to create spring,I have a sample to create spring,look at attach file,sorry I'm not teach you,but that as share for help to others member.
    Good luck.
    Attached Files Attached Files
    Last edited by Adesu; 2007-02-22 at 08:16 AM.

  9. #19
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,706

    Default Re: Looking for animation lisp routines

    Quote Originally Posted by Adesu
    . . .if you zoom at the spring,it look rather roughish . . .
    I extruded a circle along a 3D-poly that I created with a lisp program.
    If I generate a lot of vertex the spring will be very exact, but in this case I felt no matter and assign only 12 vertex / cycle.
    But I think my spring has a more exactly formula than yours ½ circle construction.

    : ) Happy Computing !

    kennet

  10. #20
    100 Club hofcad's Avatar
    Join Date
    2005-09
    Posts
    111

    Default Re: Looking for animation lisp routines

    Dear Readers,

    I found something.
    In the past, I made Metal sheet folding, Piston crank mechanism and Railway barrier.
    See the attachment HofCAD.zip
    Also nice is: http://www.black-cad.homepage.t-online.de/starten.htm

    But, what is the best substitute for de command REPLAY in AutoCAD 2007+
    to display images by a script file?
    Code:
    setvar cmdecho 0
    (setq acadver (atoi (substr (getvar "ACADVER") 1 2)))
    (setq renlist '("render" "render" "render" "render" "render" "acrender" "acrender" "acrender")) 
    (if (not (member (strcat (nth (- acadver 10) renlist) ".arx") (arx)))(arxload (nth (- acadver 10) renlist)))
    (c:replay "C:\\SHOWTIME\\Image0" "TGA")
    delay 4000
    (c:replay "C:\\SHOWTIME\\Image1" "TGA")
    delay 4000
    (c:replay "C:\\SHOWTIME\\Image2" "TGA")
    delay 4000
    (c:replay "C:\\SHOWTIME\\Image3" "TGA")
    delay 4000
    (c:replay "C:\\SHOWTIME\\Image4" "TGA")
    delay 4000
    (c:replay "C:\\SHOWTIME\\Image5" "TGA")
    delay 4000
    (c:replay "C:\\SHOWTIME\\Image6" "TGA")
    delay 4000
    (c:replay "C:\\SHOWTIME\\Image7" "TGA")
    delay 4000
    (c:replay "C:\\SHOWTIME\\Image8" "TGA")
    delay 4000
    (c:replay "C:\\SHOWTIME\\Image9" "TGA")
    delay 4000
    rscript
    Regards
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by hofcad; 2011-09-14 at 04:15 PM.

Page 2 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. how do you call other lisp routines with lisp?
    By moises.y969653 in forum AutoLISP
    Replies: 1
    Last Post: 2011-02-06, 12:01 PM
  2. Lisp Routines
    By Shadrak in forum AutoCAD Customization
    Replies: 4
    Last Post: 2009-10-08, 01:32 AM
  3. Lisp Routines
    By jsnow in forum AutoCAD General
    Replies: 2
    Last Post: 2009-04-16, 05:07 AM
  4. organizing Lisp routines.
    By Gigliano70 in forum AutoLISP
    Replies: 5
    Last Post: 2008-11-04, 01:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •