# Help Refining Script to Insert Cogo Points from Blocks

**URL:** <https://forum.dynamobim.com/t/help-refining-script-to-insert-cogo-points-from-blocks/93673>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [September 11, 2023, 9:57pm UTC](https://forum.dynamobim.com/t/help-refining-script-to-insert-cogo-points-from-blocks/93673 "2023-09-11T21:57:26Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![patrick.ericson](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick.ericson/32/121411_2.png) [@patrick.ericson](https://forum.dynamobim.com/u/patrick.ericson)\
**Post date:** [September 12, 2023, 7:02pm UTC](https://forum.dynamobim.com/t/help-refining-script-to-insert-cogo-points-from-blocks/93673/14 "2023-09-12T19:02:23Z")

</div>

Sooo, now I’m back from orienteering competition. 🙂  
@V0rticity  
Here is my solution where I filter out all blockreferences named DB and not those named “Tree” and then I create Cogopoints at the DB block reference insertions point

 ![Select BlockReference DB and create Cogopoints_2023-09-12_08-59-30](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/0/d0d7617240e708e9cb82c6f7b35579158d6f6851.png)  
[Select BlockReference DB and create Cogopoints.dyn](https://forum.dynamobim.com/uploads/short-url/aIBhzlHjxLC4oB79DnZSkGXk1SX.dyn) (4.8 MB)

[DB and Tree Block references.dwg](https://forum.dynamobim.com/uploads/short-url/gI6rIszSdnFdgV39Wv8B7hBaer4.dwg) (1.1 MB)

---

_[View the full topic](https://forum.dynamobim.com/t/help-refining-script-to-insert-cogo-points-from-blocks/93673)._
