+ Reply to Thread
Results 1 to 2 of 2

Thread: Automatic layer

  1. #1
    Forum Newbie
    Using
    AutoCAD 2008
    Join Date
    Oct 2007
    Posts
    6

    Default Automatic layer

    Registered forum members do not see this ad.

    I am searching for a LISP or VBA utility that would force the layer for specific object automatically. E.g. put all circles on a CIRCLE layer, set TEXT layer for all texts I draw etc. What I understand, reactors are the right thing for this. Is there any such reactor with configurable options?
    Last edited by Tiger; 25th Aug 2010 at 08:41 am.

  2. #2
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,780

    Default

    Registered forum members do not see this ad.

    A better way is to maybe set up an office drafting standard and use menu's and office commands to draw objects this way its always adhered to.

    I dealt with one of the worlds biggest companies and they were doing a remodel of every single company outlet hundreds to be changed their head drafty removed the autocad menu and replaced it with a draw objects menu so every drawing sent world wide would be identical anyone loading another menu was advised heavily not to do it again.

    So cl = circle would draw a circle on correct layer (toolbar !) say tt for text you can reprogram autocad commands type text something else happens but its simple to add new commands.

    Just ending its pretty easy to change every circle to say 1 layer just use "filter" this would fix up those not done right.

    example
    (defun c:cl ()
    (setvar "clayer" "circles")
    (command "circle")
    )

    Another way just thought of it you can edit the toolbar commands so just add (setvar "clayer" "circles") to circle toolbar option command. make sure every one uses toolbar

Similar Threads

  1. Lisp for Automatic Draw Order Command to a specific Layer.
    By stevsmith in forum AutoLISP, Visual LISP & DCL
    Replies: 31
    Last Post: 9th Jul 2010, 01:34 am
  2. Automatic Layer change from command line in one step
    By sky girl in forum AutoCAD General
    Replies: 2
    Last Post: 7th Jan 2009, 05:50 am
  3. automatic log out?
    By the ber in forum Feedback
    Replies: 5
    Last Post: 21st Mar 2008, 09:06 pm
  4. Automatic CAD
    By prosecannon in forum AutoCAD Drawing Management & Output
    Replies: 8
    Last Post: 29th Aug 2006, 08:39 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts