Results 1 to 5 of 5

Thread: Reset Material to ByCategory

  1. #1
    AUGI Addict sfaust's Avatar
    Join Date
    2004-01
    Location
    Littleton, CO (Denver Metro)
    Posts
    1,535
    Login to Give a bone
    0

    Default Reset Material to ByCategory

    Once a material parameter is set in a family is there a way to set it back to <ByCategory> via API?

    The parameter.set method takes an ElementID, but won't take 'Nothing' as an argument...
    Last edited by sfaust; 2011-04-14 at 05:31 PM.

  2. #2
    Member
    Join Date
    2015-08
    Posts
    16
    Login to Give a bone
    0

    Default Re: Reset Material to ByCategory

    Did you every find out how to do this? I'm looking to do the same thing.

    Regards,
    Brett

  3. #3
    Member
    Join Date
    2010-09
    Posts
    5
    Login to Give a bone
    0

    Default Re: Reset Material to ByCategory

    If I remember correctly you'll need to create an element id with a value of -1 and set the parameter value to that id. So if you had the Parameter object named 'param' it would be something like this:

    ElementId id = new ElementId(-1);
    param.Set(id);

    -Tim

  4. #4
    Member
    Join Date
    2015-08
    Posts
    16
    Login to Give a bone
    0

    Default Re: Reset Material to ByCategory

    excellent works perfectly!

  5. #5
    Member
    Join Date
    2016-03
    Posts
    3
    Login to Give a bone
    0

    Default Re: Reset Material to ByCategory

    5 versions later (2016), you can just type in <By Category> (exactly like that) and it will change it back.

Similar Threads

  1. Reset F3 and F8 keys
    By Coloradomrg in forum AutoCAD Customization
    Replies: 6
    Last Post: 2015-01-13, 02:48 PM
  2. Host Sweeps material not showing up on a material schedule
    By wadeshuey in forum Revit Architecture - General
    Replies: 9
    Last Post: 2011-09-23, 07:13 PM
  3. Material Takeoff does not substract Painted Material
    By joel.196524 in forum Revit Architecture - General
    Replies: 7
    Last Post: 2009-07-30, 02:15 PM
  4. Reset Tag Number
    By ccarr in forum AutoCAD Civil 3D - Alignments
    Replies: 2
    Last Post: 2009-01-03, 03:18 PM
  5. Reset a toolbar
    By robert.1.hall72202 in forum AutoCAD CUI Menus
    Replies: 7
    Last Post: 2005-07-22, 07:46 AM

Posting Permissions

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