Andrew1979 Posted July 28, 2014 Share Posted July 28, 2014 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. Quote Link to comment Share on other sites More sharing options...
Andrew1979 Posted July 28, 2014 Author Share Posted July 28, 2014 I have worked out the problem. Open 'UNITS' command, then make sure the "Clockwise" tick box is unselected. Simple Quote Link to comment Share on other sites More sharing options...
Andrew1979 Posted July 28, 2014 Author Share Posted July 28, 2014 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. Quote Link to comment Share on other sites More sharing options...
Andrew1979 Posted July 28, 2014 Author Share Posted July 28, 2014 Ok, I found it, it is ANGDIR Quote Link to comment Share on other sites More sharing options...
MSasu Posted July 28, 2014 Share Posted July 28, 2014 To avoid programatically such cases may help to add a validation of ANGDIR system variable in your code. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 28, 2014 Share Posted July 28, 2014 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) Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 28, 2014 Share Posted July 28, 2014 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. Quote Link to comment Share on other sites More sharing options...
Tiger Posted July 28, 2014 Share Posted July 28, 2014 Threads are now merged. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted July 28, 2014 Share Posted July 28, 2014 What did you do with this thread ? Wasting our time or what ? http://www.cadtutor.net/forum/showthread.php?87781-Getting-block-names Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.