CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3894 

CAD tip CAD tip # 2699:

Question CAD 
 %  platform  category 
Q - question

How to automatically switch to a different LTSCALE in layouts?

A - answer When switching from the modelspace to a layout (or vice-versa) you can automatically set your own value for the LTSCALE variable (linetype scale). The LayoutSw utility (reactor) can assist you in this automatic switching. When switching from paperspace to modelspace, LayoutSw resets the LTSCALE value multiplied by the current DIMSCALE (user defined scale). For paperspace (layouts) it uses a fixed LTSCALE value. The reactor also resets the PSLTSCALE variable to 1 (unless the layout LTSCALE is set to 0 - in this case it resets PSLTSCALE to 0 and doesn't touch LTSCALE).

After you load the application (_APPLOAD) you can use the LAYOUTSW command to setup LTSCALE for modelspace and layouts.

For download on www.cadstudio.cz/developuk.

To setup the LayoutSw scales programmatically, use e.g.:
(vlax-ldata-put "LayoutSw" "Model" "10.0") (vlax-ldata-put "LayoutSw" "Paper" "100.0")
ACAD2014ACAD2010ACAD2008ACAD2004ACAD2000ADT2007ADT2004ADT3
100% *  CAD 
26.11.2002    19568x  
Comments   Tell a friend

See also:
Tip 11146:Metric linetypes by ISO and complex linetypes for utilities.
Tip 10855:Dynamic linetype scaling by mouse dragging.
Tip 5795:Model linetypes do not reflect annotative scaling.
Tip 5502:How to set PSLTSCALE globally for all layouts?
Tip 5227:DRAGMODE does not accept the value "2"


Back   All CAD Tips All CAD tips&tricks

How to import an IGES file in AutoCAD? « | » AutoCAD hangs in the Revision cloud command.

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info


Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist