# OOTB for Point.MidPoint

**URL:** <https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990>\
**Category:** Revit\
**Created:** [July 20, 2023, 2:15pm UTC](https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990 "2023-07-20T14:15:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![H\_H\_arucker](https://avatars.discourse-cdn.com/v4/letter/h/e99b99/32.png) [@H\_H\_arucker](https://forum.dynamobim.com/u/H_H_arucker)\
**Post date:** [July 20, 2023, 2:15pm UTC](https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990/1 "2023-07-20T14:15:14Z")

</div>

Hello all,  
I am new to Dynamo and sadly restricted per job requirements to Revit2019 and Dynamo 2.0.4. I am trying to have a dyn that will remove duplicate ducts (they are not triggering the warning for duplicate items). I found a few examples that might work but they use Point.Midpoint node that isn’t available in my version. Looking for an out-of-box, or version-compatible, replacement for it.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/d/8dbe4d12942c7ab28a26dc43b1de48fc7feef526.png)

One possible workaround I saw here:[Delete duplicated objects - #43 by sdzbrian](https://forum.dynamobim.com/t/delete-duplicated-objects/21226/43) but I don’t know how to incorporate it as a stand-in.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/d/bdb226bba435b7569bd3fc74abd32cdc2f9eea10.jpeg)

---

<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:** [July 20, 2023, 2:19pm UTC](https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990/2 "2023-07-20T14:19:20Z")

</div>

Looking at the unresolved node, the first port would be the startPoint input of the Line.ByStartPointEndPoint node. The second port would be the endpoint of the Line.ByStartPointEndPoint node. The line output would wire into the Curve.PointAtParameter node and the result of that is the same as the output of the Point.MidPoint node.

PS: No reason to not be in 2019 by now. You’re missing about one and a half YEARS of security updates at this point, which is putting every company working on the project at risk. About a month ago a common component had a vulnerability patch required, and while it might not have been in 2020 or 2019, it also might not have been patched due as the version is no longer supported. You’re only certain to be secure if you’re in a supported build. For a list of advisories see here: [Security Advisories | Autodesk Trust Center](https://www.autodesk.com/trust/security-advisories)

---

<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:** [July 20, 2023, 2:39pm UTC](https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990/3 "2023-07-20T14:39:30Z")

</div>

Hi there doesnt exist an OOTB for midpoint, but you could probably find many in custom package there could work on that even for 2019. but be in 2019 and dynamo could give some trouble as things had change a lot from there…but could you show an image with the graph where you want it incorporate

---

<div class="post-metadata">

**Author:** ![H\_H\_arucker](https://avatars.discourse-cdn.com/v4/letter/h/e99b99/32.png) [@H\_H\_arucker](https://forum.dynamobim.com/u/H_H_arucker)\
**Post date:** [July 20, 2023, 2:58pm UTC](https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990/4 "2023-07-20T14:58:55Z")

</div>

This is a dyn from [Check Element Duplicate Dynamo Revit | Hồ Văn Chương](https://chuongmep.com/Check-Element-Duplicate-Dynamo-Revit). hoping I can just change the categories to Ducts instead of Pipes-Hydralic Separation Symbols.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/1/e13ac4237e0173f3f06e9d430d5ff0cce9d868e7.png)

---

<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:** [July 20, 2023, 3:15pm UTC](https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990/5 "2023-07-20T15:15:49Z")

</div>

arha what the python do ? think thats one for @chuongmep as i can read that language…

---

<div class="post-metadata">

**Author:** ![H\_H\_arucker](https://avatars.discourse-cdn.com/v4/letter/h/e99b99/32.png) [@H\_H\_arucker](https://forum.dynamobim.com/u/H_H_arucker)\
**Post date:** [July 20, 2023, 3:21pm UTC](https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990/6 "2023-07-20T15:21:09Z")

</div>

So just replace Point.MidPoint with Line.ByStartPointEndPoint and Curve.PointAtParameter nodes? I assume I would still need the code block for 0.5 to still be there?

Yes, we are making it work as best we can but those concerns, as well as others, have been voiced; powers that be, however, elected to keep with 2019 for some reason.

---

<div class="post-metadata">

**Author:** ![H\_H\_arucker](https://avatars.discourse-cdn.com/v4/letter/h/e99b99/32.png) [@H\_H\_arucker](https://forum.dynamobim.com/u/H_H_arucker)\
**Post date:** [July 20, 2023, 3:23pm UTC](https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990/7 "2023-07-20T15:23:02Z")

</div>

Dang it. As I saw you had suggested the OOTB option in the last post, I hoped it had worked out and I could get insight on in.

---

<div class="post-metadata">

**Author:** ![H\_H\_arucker](https://avatars.discourse-cdn.com/v4/letter/h/e99b99/32.png) [@H\_H\_arucker](https://forum.dynamobim.com/u/H_H_arucker)\
**Post date:** [July 20, 2023, 3:24pm UTC](https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990/8 "2023-07-20T15:24:49Z")

</div>

Here is the Python code.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/3/63fcb5885ad81486c8e5fda9c57624675466dcc8.png)

---

<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:** [July 20, 2023, 3:34pm UTC](https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990/9 "2023-07-20T15:34:37Z")

</div>

yes try insert that instead of the midpoint node and think it could work

---

<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:** [July 20, 2023, 3:56pm UTC](https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990/10 "2023-07-20T15:56:31Z")

</div>

> [@H\_H\_arucker](#):
>
> powers that be, however, elected to keep with 2019 for some reason.

I recommend adding a ‘unsupported version’ tax on proposals going forward. Reasoning: to mitigate the risk of your entire network getting ransomed. Soon as you do that the powers that be start to allow things to change quick.

> [@H\_H\_arucker](#):
>
> So just replace Point.MidPoint with Line.ByStartPointEndPoint and Curve.PointAtParameter nodes? I assume I would still need the code block for 0.5 to still be there?

Yes, and including the code block of 0.5 or a number node with the same.

---

<div class="post-metadata">

**Author:** ![H\_H\_arucker](https://avatars.discourse-cdn.com/v4/letter/h/e99b99/32.png) [@H\_H\_arucker](https://forum.dynamobim.com/u/H_H_arucker)\
**Post date:** [July 20, 2023, 4:05pm UTC](https://forum.dynamobim.com/t/ootb-for-point-midpoint/91990/11 "2023-07-20T16:05:15Z")

</div>

Not a bad idea @jacob.small  
Hazzah! That works, thank you!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/2/22e46420a5340d9c23555dd0b2c73e8ff23fd119.png)
