Saturday, November 21, 2009
Home   |   Search   |   About AUGI   |   My AUGI   |   Join Now

Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP
 Welcome, Guest. 

Login

Join Now FAQ Members List Calendar Search Today's Posts Mark Forums Read

AutoLISP AutoLISP or Visual LISP, learn both here!

Reply
 
Thread Tools Display Modes
Old 2004-07-29, 08:58 PM   #1
tsigler
100 Club
 
Join Date: 2001-04
Posts: 114
tsigler is a beam of lighttsigler is a beam of lighttsigler is a beam of lighttsigler is a beam of lighttsigler is a beam of lighttsigler is a beam of lighttsigler is a beam of lighttsigler is a beam of lighttsigler is a beam of lighttsigler is a beam of lighttsigler is a beam of light
Default Command line lisp won't work

I work for a CAD service bureau. Occasionally I will get a drawing that won't execute a command line lisp instruction. I have two tool buttons set up, one to switch me from paperspace to model space and set the ltscale to 1/3 the dimscale, the other to switch back to paperspace and change the ltscale to 0.33. Normally I have no problem with these but every so often I will get a file where they won't execute. The code appears on the command line but doesn't execute.

Is there a setting (or combination of settings) that causes this?

My code is
(command "ltscale" 0.33334)(command "tilemode" "0") to switch to Paperspace
(setq x (getvar "dimscale"))(command "ltscale" (* x 0.33334))(command "tilemode" "1") for Model space

TIA
tsigler is offline   Reply With Quote
Old 2004-07-29, 09:08 PM   #2
bbapties
All AUGI, all the time
 
bbapties's Avatar
 
Join Date: 2003-12
Location: Palm Harbor, FL
Posts: 537
bbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of light
Default RE: Command line lisp won't work

I have a similar made button but I use it to fix my ltscale and psltscale....for some reason every once in a while it will not work unless I zoom in on the drawing a little??? almost like its a video card problem.... My line will look continuos unless I zoom in on it and then hit my button..... Makes no sense.....
__________________
Bbapties
Using Vanilla Acad 2005
bbapties is offline   Reply With Quote
Old 2004-07-29, 10:22 PM   #3
Baghera
I could stop if I wanted to
 
Baghera's Avatar
 
Join Date: 2002-04
Location: Halifax NS Canada
Posts: 394
Baghera is a beam of lightBaghera is a beam of lightBaghera is a beam of lightBaghera is a beam of lightBaghera is a beam of lightBaghera is a beam of lightBaghera is a beam of lightBaghera is a beam of lightBaghera is a beam of lightBaghera is a beam of lightBaghera is a beam of light
Default RE: Command line lisp won't work

Try adding a forced regen at the end of your code.
__________________
Loyalty above all else except honor
For my honor is my life!
Baghera is offline   Reply With Quote
Old 2004-07-29, 10:28 PM   #4
bbapties
All AUGI, all the time
 
bbapties's Avatar
 
Join Date: 2003-12
Location: Palm Harbor, FL
Posts: 537
bbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of lightbbapties is a beam of light
Question RE: Command line lisp won't work

I do have one on mine....
__________________
Bbapties
Using Vanilla Acad 2005
bbapties is offline   Reply With Quote
Old 2004-08-02, 04:25 PM   #5
jwanstaett
I could stop if I wanted to
 
Join Date: 2002-02
Location: Kansas
Posts: 462
jwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of lightjwanstaett is a beam of light
Default RE: Command line lisp won't work

Quote:
Originally Posted by bbapties
I have a similar made button but I use it to fix my ltscale and psltscale....for some reason every once in a while it will not work unless I zoom in on the drawing a little??? almost like its a video card problem.... My line will look continuos unless I zoom in on it and then hit my button..... Makes no sense.....
no your viewres is set low

note:
VIEWRES controls the appearance of circles, arcs, ellipses, and splines using short vectors. The greater the number of vectors, the smoother the appearance of the circle or arc. For example, if you create a very small circle and then zoom in, it might appear to be a polygon. Using VIEWRES to increase the zoom percentage and regenerate the drawing updates and smooths the circle's appearance. Decreasing the zoom percentage has the opposite effect.
jwanstaett is offline   Reply With Quote
Old 2004-08-02, 06:19 PM   #6
richard.binning
Administrator
 
richard.binning's Avatar
 
Join Date: 2001-05
Location: In the foothills of the appalachians
Posts: 2,097
richard.binning has disabled reputation
Default RE: Command line lisp won't work

Quote:
Originally Posted by jwanstaett
no your viewres is set low

note:
VIEWRES controls the appearance of circles, arcs, ellipses, and splines using short vectors. The greater the number of vectors, the smoother the appearance of the circle or arc. For example, if you create a very small circle and then zoom in, it might appear to be a polygon. Using VIEWRES to increase the zoom percentage and regenerate the drawing updates and smooths the circle's appearance. Decreasing the zoom percentage has the opposite effect.
Are you launching some drawings from the 'history" list at the bottom of the file menu? there is a known bug with lisp not being correctly initiated in these files.

Workaround: Type "()" without the quotes at the command line and hit enter. Then try your tool bar or custom macros. They should work at this point.
richard.binning is offline   Reply With Quote
Reply


Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using LISP routines in 2005 Palettes soverpeck AutoCAD Customization 5 2005-03-23 10:39 PM
Work plane grid jwilhelm Revit Architecture "Original" Wish List (Archived) 0 2004-02-19 04:06 AM
Can I change the work plane of a existing family element? Nic M. Revit Architecture - Families 6 2003-10-24 07:28 PM
Workset Library Card Steve_Stafford Revit Architecture - Tips & Tricks 9 2003-07-09 06:58 PM
work planes cant be ref planes?? Martin P Revit Architecture - General 2 2003-06-10 01:25 PM


All times are GMT +1. The time now is 11:12 AM.