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-28, 08:12 PM   #1
jrd.chapman
Member
 
jrd.chapman's Avatar
 
Join Date: 2000-11
Location: Ontario, Canada
Posts: 49
jrd.chapman is going the right wayjrd.chapman is going the right wayjrd.chapman is going the right wayjrd.chapman is going the right way
Default Auto-Reload Linetypes without prompting

Does anyone know of a way in Lisp to load ALL linetypes from a specified file, automatically Re-loading any linetypes that already exist in the drawing.

I'm trying to supress the prompt asking the user if they want to re-load a linetype that already exists in the drawing.

Any ideas?

Thanks in advance

John D. Chapman
jrd.chapman is offline   Reply With Quote
Old 2004-07-28, 09:08 PM   #2
sinc
AUGI Addict
 
sinc's Avatar
 
Join Date: 2004-02
Location: Colorado
Posts: 1,531
sinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the starssinc is shooting for the stars
Default

You're aware that you can use standard methods (shift-select, ctrl-select, ctrl-A, etc.) to select more than one linetype in the Load Linetype dialogue? If some are already loaded, Autocad then gives you a "Reload?" dialogue box with a "Yes to all" option, so you don't have to say "Yes" for each one.
__________________
-- Sinc
Civil-3D/Map 2009
http://www.ejsurveying.com
http://www.quuxsoft.com
(Sincpac-C3D)
sinc is offline   Reply With Quote
Old 2004-07-28, 09:16 PM   #3
RobertB
Administrator
 
RobertB's Avatar
 
Join Date: 2001-08
Location: Seattle WA US
Posts: 4,393
RobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the starsRobertB is shooting for the stars
Default

Code:
(setvar "Expert" 3)
(command "._linetype" "_load" "*" "acad" "")
(setvar "Expert" 0)
Note that I recommend saving the current value of Expert, before setting it to 0, and then restoring the original value.
RobertB is offline   Reply With Quote
Old 2004-07-28, 11:29 PM   #4
jrd.chapman
Member
 
jrd.chapman's Avatar
 
Join Date: 2000-11
Location: Ontario, Canada
Posts: 49
jrd.chapman is going the right wayjrd.chapman is going the right wayjrd.chapman is going the right wayjrd.chapman is going the right way
Default RE: Auto-Reload Linetypes without prompting

Ah Ha! Thanks Robert, I never even thought of the Expert variable. Thanks very much. This will allow me to load all linetypes without ANY re-load dialog coming up...which is what I need.

Thanks again!

John D. Chapman
jrd.chapman 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
Custom linetypes in Named Plot Style luc.magnee AutoCAD Plotting 1 2004-06-24 02:48 AM
Custom Linetypes are coming out solid Martin P Revit Architecture - General 4 2004-06-10 02:15 PM
reload xref - layers kca2.69080 ACA General 2 2004-06-02 11:44 PM
6.0 Reload Worksets Before Changes - bug beegee Revit - Known Issues & Work-Arounds (Read only) 0 2004-03-06 02:27 AM
Phase filters and linetypes Steve_Stafford Revit Architecture - General 0 2003-06-30 11:30 PM


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