# Auto Select Civil 3D Objects from Dynamo Object List

**URL:** <https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918>\
**Category:** Civil 3D\
**Tags:** dynamo, civil3d\
**Created:** [January 24, 2020, 7:49am UTC](https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918 "2020-01-24T07:49:07Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [January 24, 2020, 7:49am UTC](https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918/1 "2020-01-24T07:49:08Z")

</div>

Hello everyone,

I have created a property set in Civil 3D. This Property set can i use as filter using the following script:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/f/df5859354fa883588194709f2fa840de184fc468.png)

Now i would like to automatically select the entire list in my Civil 3D Environment.  
sort of “Select Objects” but then automatically.

Thanks in advance!

- Daan

---

<div class="post-metadata">

**Author:** ![Paolo\_Emilio\_Serra1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paolo_emilio_serra1/32/12902_2.png) [@Paolo\_Emilio\_Serra1](https://forum.dynamobim.com/u/Paolo_Emilio_Serra1)\
**Post date:** [January 24, 2020, 7:52am UTC](https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918/2 "2020-01-24T07:52:40Z")

</div>

Do you mean you want to assign the Property Set to all the objects first?  
In that case set the variable AECPSDAUTOATTACH to On at the command line.  
All the objects (even the newly created after) of the object types assigned to the Property Set will appear in the list.

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [January 24, 2020, 8:14am UTC](https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918/3 "2020-01-24T08:14:38Z")

</div>

No, i would like to have Civil 3D Select all the objects which this list outputs.  
No overwriting or manipulating data through Dynamo is needed.

---

<div class="post-metadata">

**Author:** ![Paolo\_Emilio\_Serra1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paolo_emilio_serra1/32/12902_2.png) [@Paolo\_Emilio\_Serra1](https://forum.dynamobim.com/u/Paolo_Emilio_Serra1)\
**Post date:** [January 24, 2020, 8:59am UTC](https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918/4 "2020-01-24T08:59:20Z")

</div>

Python + Civil3DToolkit

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

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [January 24, 2020, 11:30am UTC](https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918/5 "2020-01-24T11:30:46Z")

</div>

Wow this is exactly what i am looking for, are you able to share this code in text?

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [January 24, 2020, 1:39pm UTC](https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918/6 "2020-01-24T13:39:32Z")

</div>

@Paolo_Emilio_Serra1 Could you maybe share this Python File? I rewrote your script but i am getting an error:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/4/949cb7f8165aa059a8bab7503f1aaeea1069e568.png)

---

<div class="post-metadata">

**Author:** ![Brendan\_Cassidy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/brendan_cassidy/32/7685_2.png) [@Brendan\_Cassidy](https://forum.dynamobim.com/u/Brendan_Cassidy)\
**Post date:** [January 24, 2020, 3:18pm UTC](https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918/7 "2020-01-24T15:18:52Z")

</div>

I would suggest you re-look at your python code because you may have forgot a “)” somewhere.

---

<div class="post-metadata">

**Author:** ![raf.nelissen2ZW9P](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@raf.nelissen2ZW9P](https://forum.dynamobim.com/u/raf.nelissen2ZW9P)\
**Post date:** [June 5, 2020, 3:57pm UTC](https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918/8 "2020-06-05T15:57:54Z")

</div>

Same problem here. Python Script returns an error…  
Can we make this work…?

 ![selectionbijpropertysetdata](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/2/12b337c1ce30dbef4b29bcc94329b02107f6d1b2.png)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [June 5, 2020, 4:00pm UTC](https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918/9 "2020-06-05T16:00:28Z")

</div>

Looks like a typo error. Could you copy paste the python code here.

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [June 5, 2020, 4:32pm UTC](https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918/10 "2020-06-05T16:32:41Z")

</div>

Or try the solution here, it accomplishes the same thing (select by handle).

> [@Select Objects in Drawing](https://forum.dynamobim.com/t/select-objects-in-drawing/50208):
>
> Does anyone know of a way to select objects in a drawing, similar to how QSELECT works? I want to be able to select objects based on additional criteria that you can’t do with QSELECT, such as property set data. By “select” I mean actually grabbing and highlighting objects in the drawing, just like if you click on them.

---

<div class="post-metadata">

**Author:** ![raf.nelissen2ZW9P](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@raf.nelissen2ZW9P](https://forum.dynamobim.com/u/raf.nelissen2ZW9P)\
**Post date:** [June 8, 2020, 7:42am UTC](https://forum.dynamobim.com/t/auto-select-civil-3d-objects-from-dynamo-object-list/45918/11 "2020-06-08T07:42:18Z")

</div>

Thanks Zachri!  
Your solution worked perfectly.  
Raf.
