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

CAD tip CAD tip # 6433:

Question CAD 
 %  platform  category 
Q - question

Force layer for selected commands (objects).

A - answer The FLay LISP utility (reactor) automatically sets layers for drawing objects created with specific AutoCAD commands (assigns layers to commands). The settings are loaded from a customized definition file.

Using FLay you can put all newly created Texts, Dimensions, Hatches etc. to the respective predefined layers. If the layer does not exist, it will be created.

Just load the Flay.vlx file (APPLOAD) and start the FLAY command to load the definitions and enable the reactor.

The free CADstudio FLay utility can be downloaded from www.cadstudio.cz/download or from Autodesk Apps.

Since version 2.1 you can autoswitch also layers for LISP commands (like TCIRCLE). But you will need to enable it first by setting:
(setq FL:LISPREACTOR T)

Another LISP variable can keep the switched layer set - see:
(setq FL:STAYSWITCHED T)

Since version 2.2 you can invoke the FLAYSUP1 command to disable FLAY reaction just for the next 1 command (which would fire layer-switch reaction otherwise).

Format of the FLAY.TAB
The FLAY.TAB is a text file. The layers are defined on lines starting with an asterisk ("*"). The next line defines the list of all drawing commands which will be automatically redirected to this layer:

* layer_name [layer_color]
command1 command2 command3 ...

where:
layer_name - the name of the layer to be used
layer_color - (optional) color to be used for the newly created layer
command1 command2 - English command names to be redirected to that layer

Example:
* MYTEXTS
TEXT DTEXT MTEXT TCIRCLE
* ROUND_THINGS
ARC CIRCLE ELLIPSE SPLINE

ACAD
100% *  CAD 
14.12.2008    12669×   FAQ  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 7169:PreSave reactor - automatic operations on drawing save.
Tip 5131:How to place dimensions or hatches automatically to preset layers?
Tip 4874:Switching layers on/off automatically when entering Model or Layout tabs.


Back   All CAD Tips All CAD tips&tricks

Forcing DWG format version for save in AutoCAD. « | » How to remove unwanted printers and plotters from the PLOT dialog?

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