Results 1 to 3 of 3

Thread: Creating "Toggle" Buttons

  1. #1
    Member
    Join Date
    2013-10
    Posts
    4
    Login to Give a bone
    0

    Question Creating "Toggle" Buttons

    Is it possible for an average user to create, basically, an On/Off button that can be placed on the Quick Access toolbar? A similar example would be the Revit "Thin Lines" button. I have that on my Quick Access bar..... one click turns it on, click again turns it off.

    We turn a lot of things on and off through Visibility Graphics all day long.... (plates, rebar, voids, etc...). Right now it takes us 4 clicks (VG/Filter/Deselect Item/OK) ..... to turn the plates off. Same process to turn them back on. Will the Revit API allow a user to create a 1-click toggle button (and place it on the Quick Access Toolbar) that does this? If so, how advanced a task would it be to create this?

    Thanks!

  2. #2
    Active Member
    Join Date
    2011-11
    Location
    Saint-Omer, Pas-de-Calais, France
    Posts
    58
    Login to Give a bone
    0

    Default Re: Creating "Toggle" Buttons

    You can create such toggle buttons with the API. Here is a post of Jeremy showing how to do: http://thebuildingcoder.typepad.com/...le-button.html. You create the button in a ribbon panel and after that, the user can move it in the quick access bar.

    Next you need to add code to turn off/on visibility. For that there is a sample in the SDK (VisibilityControl).

    Difficult for an average user, easy for a developer. But I believe there is some visibility stuff you can not control with the API.

  3. #3
    Member
    Join Date
    2013-10
    Posts
    4
    Login to Give a bone
    0

    Default Re: Creating "Toggle" Buttons

    Very good... thank you!

Similar Threads

  1. Replies: 7
    Last Post: 2007-09-26, 08:53 PM
  2. AutoCAD 2006 - Missing all the buttons on "Dimension" toolbar
    By jonathanschade in forum AutoCAD CUI Menus
    Replies: 3
    Last Post: 2007-03-23, 11:57 PM
  3. AutoCAD 2005 custom toolbar buttons show as "?"
    By jim.dozorec in forum AutoCAD Customization
    Replies: 8
    Last Post: 2006-07-18, 07:20 PM
  4. Full Time "Properties" toggle palette window
    By amagill in forum Revit Architecture - General
    Replies: 0
    Last Post: 2006-06-16, 01:18 PM
  5. Can I program the "Back" and "Forward" mouse buttons for ADT3.3?
    By jhohman in forum AutoCAD Customization
    Replies: 2
    Last Post: 2004-12-29, 06:57 PM

Posting Permissions

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