CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 20201

CAD tip CAD tip # 6433:

   
Question CAD 
 %  platform  category 
Q - question

Force layer for selected commands (objects) - FLay.

A - answer The FLay LISP utility (reactor) automatically sets layers for drawing objects created with specific AutoCAD commands or blocks (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 CS FLay utility can be downloaded from 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).

Since version 2.3 you can also preset specific blocks (block names) to specific layers.

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 or blocks which will be automatically redirected to this layer:

* layer_name [layer_color]
command1 command2 command3 @blockname1 @blockname2...

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
@blockname - names (wcmatch masks) of blocks which will be inserted in that layer

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

ACAD
100% *  CAD 
14.12.2008    19908×   FAQ  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 13288:LayoutLF - automatic switching of group layer filters.
Tip 12335:The FLAY utility suddenly places texts and dimensions in wrong layers.
Tip 11967:How to apply a changed drawing template (DWT) to existing drawings?
Tip 7169:PreSave reactor - automatic operations on drawing save.
Tip 6982:Switching layers using keyboard shortcuts, browsing layers.


Back   All CAD Tips



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:
Export 3D VRML scenes from AutoCAD and Inventor
VRMLout More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist