Jump to content

Rapidly rotating three-dimensional solid


highflybird

Recommended Posts

  • Replies 30
  • Created
  • Last Reply

Top Posters In This Topic

  • highflybird

    8

  • marko_ribar

    5

  • GP_

    4

  • steven-g

    4

Top Posters In This Topic

Posted Images

...Error: AutoCAD Variable is denied : 3DOSMODE 64,I use cad2010...

 

This variable is available from AutoCAD2011, see here:

http://www.hyperpics.com/system_variables/index.asp

 

 

You can delete the following red code, but the selection point will not be on the face of the solid.

    
(defun c:test ( / *error* cmd os [color=red][b]3Dos[/b][/color] pf)
   (defun *error* ( msg )
       (command "_.undo" "_end")
       (command "_.undo" "")        
       (if (not (wcmatch (strcase msg t) "*break,*cancel*,*exit*"))
           (princ (strcat "\nError: " msg))
       )
       (princ)
   )
   (setq cmd (getvar 'cmdecho))
   (setq os (getvar 'osmode))    
[color=red][b]   (setq 3Dos (getvar '3Dosmode))[/b][/color]
   (command "_.undo" "_begin")    
   (setvar 'cmdecho 0)    
   (setvar 'osmode 0)      
[color=red][b]   (setvar '3Dosmode 64)[/b][/color]
   (command "_-view" "_s" "test")
   (command "_-visualstyles" "_c" "_c")
   (if (setq pf (trans (getpoint "\nSelect a face of solid object: ") 1 0))
       (progn
           (command "_ucs" "_face" (trans pf 0 1) "")
           (command "_copybase" (trans pf 0 1) (trans pf 0 1) "")
           (command "_erase" (trans pf 0 1) "")
           (command "ucs" "_p")
           (command "_-view" "_r" "test")
           (command "_-view" "_d" "test")
           (command "_pasteclip" "\\")
       )
   )
[b][color=red]   (setvar '3Dosmode 3Dos)[/color][/b]
   (setvar 'osmode os)
   (setvar 'cmdecho cmd)
   (command "_.undo" "_end")
   (princ)
)

Link to comment
Share on other sites

Hi,GP ,for low version, there is no alternative?

 

 

 

What version are you using? Your profile indicates AutoCAD 2012.

 

 

Are you the same person as highflybird?

Link to comment
Share on other sites

What version are you using? Your profile indicates AutoCAD 2012.

 

 

Are you the same person as highflybird?

 

In the company,I use Acad2012 ,at home ,I use Acad2007,

 

 

Why would you think flyfox1047 and highflybird are the same person?

Link to comment
Share on other sites

In the company,I use Acad2012 ,at home ,I use Acad2007,

 

 

Why would you think flyfox1047 and highflybird are the same person?

 

 

You tell me why I would think that.

Link to comment
Share on other sites

  • 7 years later...

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...