Jump to content

LISP behaves differently on different computers


Andrew1979

Recommended Posts

I have written a lisp routine that draws timber roof trusses. That bit works well.

 

However, I also made a lisp that draws roof tiles and roof battens on the roof truss.

This runs as a seperate liso routine.

 

For some reason, on one computer it all works well, but on another, the roof tiles and battens are drawn upside down, back to front.

 

Any ideas what AutoCAD setting might be causing this issue?

 

 

Here is a screen capture of what is happening.

TrussProblem.JPG

Link to comment
Share on other sites

I have worked out the problem. Open 'UNITS' command, then make sure the "Clockwise" tick box is unselected. Simple

Link to comment
Share on other sites

I am trying to change the clockwise tick box under "unit" command window. I want to be able to change the value using an AutoCAD command rather than using tick box in the window that opens for the units command.

 

Is there such a command that can change this value from the command prompt?

 

I basically wanted to use a LISP routine to change the tick box on or off, so if I know what the AutoCAD command is to change it, I can then incorporate that into my program.

 

Clockwise.JPG

Link to comment
Share on other sites

A usefull tip is to set all your units variables in one go by autoloading a defun then you can call it with 1 line of code from any program. Likewise reset back once finished.

 

(defun civ_units ()
(SETQ ANGBASEE (GETVAR "ANGBASE"))
(SETQ ANGDIRR (GETVAR "ANGDIR"))
(SETQ LUNITSS (GETVAR "LUNITS"))
(SETQ LUPRECC (GETVAR "LUPREC"))
(SETQ AUNITSS (GETVAR "AUNITS"))
(SETQ AUPRECC (GETVAR "AUPREC"))
(SETVAR "LUNITS" 2)
(SETVAR "ANGBASE" 0.0)
(SETVAR "ANGDIR" 0)
(SETVAR "LUPREC" 0)
(SETVAR "AUNITS" 0)
(SETVAR "AUPREC" 0)
)

(civ_units)
.....
(old_civ_units)

Link to comment
Share on other sites

Its better to keep asking questions with the same theme in one post rather than starting multiples. See my answer in other post.

 

Moderator may like to merge two posts.

Link to comment
Share on other sites

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