# Override in View doesn't override anymore

**URL:** <https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [September 13, 2023, 12:04pm UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734 "2023-09-13T12:04:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![EV\_92](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@EV\_92](https://forum.dynamobim.com/u/EV_92)\
**Post date:** [September 13, 2023, 12:04pm UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/1 "2023-09-13T12:04:49Z")

</div>

Hello,

before deployment I wanted to make sure that the script works on our test projects.  
My script was working perfectly fine yesterday, nothing changed. (I only copied the script to a different location).  
However, when I ran it today, the color override doesn’t do it’s job anymore and I even get an error.  
What might have caused this? I’m truly baffled what happened.

output today

 ![clearance1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/1/0184905e0b30039df651dc9467d38e86feb4168a.png)  
output yesterday  
 ![clearance2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/7/079f18d86f5933205e59d9020b0ccbc9e346b2a3.png)  
script  
 ![clearance3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/f/9f57b164533e3a58b51a81c3cede9f9a166af4de.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 13, 2023, 12:39pm UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/2 "2023-09-13T12:39:17Z")

</div>

Check filters and view style/display in the new project.

---

<div class="post-metadata">

**Author:** ![EV\_92](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@EV\_92](https://forum.dynamobim.com/u/EV_92)\
**Post date:** [September 13, 2023, 12:39pm UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/3 "2023-09-13T12:39:48Z")

</div>

the project didn’t change since yesterday it’s on my local machine.

---

<div class="post-metadata">

**Author:** ![pyXam](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pyxam/32/163009_2.png) [@pyXam](https://forum.dynamobim.com/u/pyXam)\
**Post date:** [September 13, 2023, 8:06pm UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/4 "2023-09-13T20:06:55Z")

</div>

What are the error messages?

---

<div class="post-metadata">

**Author:** ![EV\_92](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@EV\_92](https://forum.dynamobim.com/u/EV_92)\
**Post date:** [September 18, 2023, 7:43am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/5 "2023-09-18T07:43:29Z")

</div>

> DirectShape.ByGeometry,1,“DirectShape.ByGeometry operation failed. The referenced object is not valid, possibly because it has been deleted from the database, or its creation was undone.”,null
> 
> Element.OverrideInView,1,“Internal error, please report: Dereferencing a non-pointer. href=DereferencingNonPointer.html”,null

The thing is I only get it when I run the thing in the Player. If I open the script and run it form there, there’s a 50/50 chance it will show what I want.  
There aren’t any graphical overrides or view templates used. I’m just baffled what the issue is.

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [September 18, 2023, 7:46am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/6 "2023-09-18T07:46:24Z")

</div>

Smells like element binding to me.

Try replacing the direct shape node near the end and see if it works.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 18, 2023, 7:54am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/7 "2023-09-18T07:54:33Z")

</div>

Post a .dyn which reproduces the issue so we can have a look.

---

<div class="post-metadata">

**Author:** ![EV\_92](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@EV\_92](https://forum.dynamobim.com/u/EV_92)\
**Post date:** [September 18, 2023, 7:58am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/8 "2023-09-18T07:58:25Z")

</div>

[clearance\_zone\_V1.dyn](https://forum.dynamobim.com/uploads/short-url/cUyTAfYgsPJ62iUcsmwVfTjLRoN.dyn) (84.1 KB)  
[clearance\_zone\_V2.dyn](https://forum.dynamobim.com/uploads/short-url/oYCP159hXuOas4Z5oRJsY4MivJc.dyn) (81.0 KB)

I don’t necessarily want to create and save a new family each time from the solid, the users only need it for a visual check.

---

<div class="post-metadata">

**Author:** ![EV\_92](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@EV\_92](https://forum.dynamobim.com/u/EV_92)\
**Post date:** [September 18, 2023, 8:14am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/9 "2023-09-18T08:14:42Z")

</div>

`Importinstance.ByGeometry` seems to work without issue (also in Player), but I’m still suspicious. Does `DirectShape` have some specific property which interferes somehow with the override?

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [September 18, 2023, 8:37am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/10 "2023-09-18T08:37:16Z")

</div>

Hi @EV_92 try as here with synrhezise or try with spring, and try a flatten before union. probably it could work

 ![Skærmbillede 2023-09-18 103520](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/c/9c6f09fd77620623ba86cf5f72e0f4f81ff315b1.png)

and something with OOTB

 ![Skærmbillede 2023-09-18 104415](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/b/0b9ab5c90f2e9a7bf9361e441bbc375d5175965b.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 18, 2023, 9:00am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/11 "2023-09-18T09:00:17Z")

</div>

Not element binding as no bindings are saved in the file. From what I can see the 75% transparency is causing the issue, as you’ve already got a transparency on the object style. This is my test in Revit 2024 and the V1 graph:  
 ![Clearance Display](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/e/becba65ba66eb05abc6a676ebf915a6620238e76.gif)

Select the element in Revit and look at the manual override, if it’s there then the graph is working. Try to reduce it to 0 and see if it shows up. From my testing a value of 10% makes it effectively invisible.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 18, 2023, 9:03am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/12 "2023-09-18T09:03:45Z")

</div>

In unrelated news, you may to consider assigning a ‘needs clearance review’ on items which are inside the clearances; much more efficient on the end users and allows you to help transition them to seeing the potential of data driven design.

Also you may want to review what happens at the corners of your offset - not sure I know many building clearances which allow discarding such areas entirely.

---

<div class="post-metadata">

**Author:** ![EV\_92](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@EV\_92](https://forum.dynamobim.com/u/EV_92)\
**Post date:** [September 18, 2023, 9:21am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/13 "2023-09-18T09:21:29Z")

</div>

I re-run the V1 code on the same project and now I get this as output. No transparency, no color.

 ![grafik](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/9/09ddd2e0896a12da78f8b5f382015df38933273a.png)

My next step is, to color them in differently if there’s a collision between them. (But something with my lacing is wrong, it only recognizes the first two colliding instances)

I’m in the EU, this specific clearance zone is defined by the facade area, therefore the corners are not a point of interest in this case :).

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 18, 2023, 10:28am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/14 "2023-09-18T10:28:05Z")

</div>

Which Revit version are you in? Can you show how the graph runs in a clean file from no template, similar to what I produced? If you select the direct shape and check the overrides, is anything there?

---

<div class="post-metadata">

**Author:** ![EV\_92](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@EV\_92](https://forum.dynamobim.com/u/EV_92)\
**Post date:** [September 18, 2023, 10:38am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/15 "2023-09-18T10:38:43Z")

</div>

24.1.10.25  
20230830\_0315(x64)  
2024.1.1

This a completely new project without any template, with V1 I get white blocks.

[https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/3/234f12554731a3126bbb749da480305111e589a3.mp4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/3/234f12554731a3126bbb749da480305111e589a3.mp4)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [September 18, 2023, 11:28am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/16 "2023-09-18T11:28:26Z")

</div>

yeah i would say check for ovveride as Jacob mention…does it work if you give a default materiel…

 ![Skærmbillede 2023-09-18 132451](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/c/9cdbf7772f78079221babe6b267c46f78e446fe8.png)

[clearance\_zone\_V1.dyn](https://forum.dynamobim.com/uploads/short-url/yForKy0jCzyk5kI6bPA9YP3YWGm.dyn) (90.0 KB)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 18, 2023, 11:45am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/17 "2023-09-18T11:45:41Z")

</div>

Set transparency to 0 as in my example and try again, I think you’ll get results that way. The default for the category or object type (direct shape) you’re using displays the object transparent; you’re making it further transparent which is causing it to become 100% very quickly.

---

<div class="post-metadata">

**Author:** ![EV\_92](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@EV\_92](https://forum.dynamobim.com/u/EV_92)\
**Post date:** [September 18, 2023, 11:50am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/18 "2023-09-18T11:50:31Z")

</div>

nope, if I set the transparency to 0 I still get the same result. weird.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 18, 2023, 11:53am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/19 "2023-09-18T11:53:10Z")

</div>

Is consistent colors on?

---

<div class="post-metadata">

**Author:** ![EV\_92](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@EV\_92](https://forum.dynamobim.com/u/EV_92)\
**Post date:** [September 18, 2023, 11:57am UTC](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734/20 "2023-09-18T11:57:11Z")

</div>

with consistent color the whole thing is grey, with hidden lines is white.

[Next page](https://forum.dynamobim.com/t/override-in-view-doesnt-override-anymore/93734.md?page=2)
