Layer filter selector

Discussion in 'AutoCAD' started by Neil W, Mar 1, 2005.

  1. Neil W

    Neil W Guest

    Has anyone created or found a script that will allow a user to select and
    apply a layer filter to the properties bar without having to open layer
    manager? It is cumbersome to have to open layer manager everytime I need to
    set a different layer filter.

    Perhaps a VBA app could be made with a drop down to pick a
    filter and apply it to the layer tools bar. Any ideas?
     
    Neil W, Mar 1, 2005
    #1
  2. Hi Neil,

    Set FileDia to 0 and Cmddia to 0 then type Layer at the command line.
    Follow the prompts and see if you can set a filter from there. It you can
    it is extremely easy to add this to a toolbar.

    Also have a look at Terry Dotson's LOSWITCH.
    www.dotsoft.com

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Mar 1, 2005
    #2
  3. Neil W

    Neil W Guest

    Thanks for the suggestions Laurie. Terry's utility seems to be intended for
    using layer states, while I am wanting to work with filters.

    As to the command line variables, I can see how I could make a tool to
    invoke the layer manager, but that is already available on the layer manager
    tool bar. The objective is to circumvent the layer manager altogether and
    simply select a filter and apply it to the layer drop down list.
     
    Neil W, Mar 1, 2005
    #3
  4. Neil W

    Neil W Guest

    I see now you were suggesting to use the -layer command which invokes
    command line to access layer managment. However there appear to be no
    command line options for layer filters.

    Would have been nice!
     
    Neil W, Mar 1, 2005
    #4
  5. Neil W

    Neil W Guest

    I have loaded your application and it does do the job Tony. Your program
    demonstrates that it is possible to access the layer filters through
    programming, contrary to what one poster thought. Since I am not proficient
    in programming, I will ask if it would be difficult to create a means to
    select the existing filters with a dialogue (VBA form?). I am not asking
    that you do this, only whether it would be complicated. If it would not be
    alot to ask, would you be willing to outline the approach you would take?

    Since you created your program in LISP, was there an obstacle to using VBA,
    or was it because you are more proficient in LISP?

    Thank you for taking the time!
     
    Neil W, Mar 2, 2005
    #5
  6. Yes you can make a dialog to select a layer filter, but I thought
    that you wanted to do it via the command line, or a custom menu
    (so for example, a pull down menu or sub-menu might have your
    commonly used layer filters).

    As far as doing it in LISP, that's only a wrapper for the ObjectARX
    code (which is exposed via ActiveX so it can be used from LISP
    or from VB/A), so it can be done in either language.
     
    Tony Tanzillo, Mar 2, 2005
    #6
  7. Neil W

    Neil W Guest

    Thanks Tony. I'll have to dig into it to see if I can make it work.
     
    Neil W, Mar 2, 2005
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.