Jump to content

Recommended Posts

Posted

Sir,

 

I made a 3d fan in cad 2007. now i want to rotate it in 360 deg continueosly but in 2 axis. when i move it by mouse. it rotate in abnormal manner.

 

pls help me to rotate it in proper manner using orbit option as actual fan move.

Cfan.jpg

Posted

Use constrained orbit. From AutoCAD Help file:

 

"If you drag the cursor horizontally, the camera moves parallel to the XY plane of the world coordinate system (WCS)."

Posted

You can write a short Lisp or script file for animating it.

Posted

pls help to write lsp ...i m dummy...

Posted

Ok, here you are:

Convert to Block the parts you wish to rotate. The insert point must be placed on the rotation axis.

Run this simple lisp -see in the FAQ how to do that.

(defun c:fan()
 (setq f (car (entsel "\npick the block")))
 (setq fl (entget f) i 0)
 (repeat 100
   (entmod (subst (cons 50 (setq i (+ i 10))) (assoc 50 fl) fl))
   (command "delay" 100)
   (entupd f)
   )
 )

Posted

dear fuccaro

 

how to apply these lsp codes..

 

i save this lsp codes in notepad. then save as cfan.lsp.

then load it by tools>load application

 

then typed cfan but...it says unknown command.

 

pls help..

Posted

 

then typed cfan but...it says unknown command.

 

 

You need to type FAN not CFAN.

Posted

command is not working....properly...

Posted

I just realized you saved the code as CFAN.lsp.

You will need to change the first line of code to read (defun c:cfan()

 

Or, rename the file to FAN.lsp and then reload it.

Posted

I applied same setting but...

pls check the error....showing at bottom of screen.....

error.jpg

Posted

I use AutoCAD 2006 and after running that Lisp the command line shows the same as in your case. It is not a bug report, it is just the way the program works. Does it not rotate the block on the screen?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...