Results 1 to 2 of 2

Thread: Reset a Elements Graphic Overrides

  1. #1
    I could stop if I wanted to scowsert's Avatar
    Join Date
    2006-08
    Location
    Olympia, WA
    Posts
    418
    Login to Give a bone
    0

    Default Reset a Elements Graphic Overrides

    So I can change the override of an element with this.

    elem.SetProjectionLineWeight(1);

    How to I remove my override? Looking at the 2014 api I see "Value of the projection surface line weight for the override. InvalidPenNumber means no override is set"

    I've tried

    elem.SetProjectionLineWeight();
    elem.SetProjectionLineWeight(null);

    Any hints?

  2. #2
    I could stop if I wanted to scowsert's Avatar
    Join Date
    2006-08
    Location
    Olympia, WA
    Posts
    418
    Login to Give a bone
    0

    Default Re: Reset a Elements Graphic Overrides

    Quote Originally Posted by scowsert View Post
    So I can change the override of an element with this.

    elem.SetProjectionLineWeight(1);

    How to I remove my override? Looking at the 2014 api I see "Value of the projection surface line weight for the override. InvalidPenNumber means no override is set"

    I've tried

    elem.SetProjectionLineWeight();
    elem.SetProjectionLineWeight(null);

    Any hints?
    Never mind me. Just don't push them through. That was easy enough.

    OverrideGraphicSettings ogs = new OverrideGraphicSettings();

    using (Transaction t = new Transaction(doc,"Set Element Override"))
    {
    t.Start();
    doc.ActiveView.SetElementOverrides(id, ogs);
    t.Commit();
    }

Similar Threads

  1. 2012: Link not following graphic overrides?
    By patricks in forum Revit Architecture - General
    Replies: 2
    Last Post: 2012-02-06, 11:40 PM
  2. Graphic Overrides
    By harkeychad in forum Revit Architecture - General
    Replies: 2
    Last Post: 2008-12-30, 05:12 PM
  3. Show Elements that have Graphics Overrides Applied in Reveal Hidden Elements Mode
    By revit.wishlist1942 in forum Revit Architecture - Wish List
    Replies: 0
    Last Post: 2008-03-04, 04:06 PM
  4. DWG Graphic Overrides
    By ford347 in forum Revit Architecture - General
    Replies: 5
    Last Post: 2007-01-18, 06:27 PM
  5. Reset Dimension Overrides
    By treyscadservices in forum AutoCAD LT - General
    Replies: 2
    Last Post: 2005-06-24, 05:04 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
  •