# Python - DWG Export with Layer Specified

**URL:** <https://forum.dynamobim.com/t/python-dwg-export-with-layer-specified/92916>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [August 16, 2023, 10:25am UTC](https://forum.dynamobim.com/t/python-dwg-export-with-layer-specified/92916 "2023-08-16T10:25:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishalghuge2500](https://avatars.discourse-cdn.com/v4/letter/v/7ea924/32.png) [@vishalghuge2500](https://forum.dynamobim.com/u/vishalghuge2500)\
**Post date:** [August 16, 2023, 10:25am UTC](https://forum.dynamobim.com/t/python-dwg-export-with-layer-specified/92916/1 "2023-08-16T10:25:38Z")

</div>

hi Everyone,  
I have one question - can we export all Revit elements to dwg with specified layer name by using python.  
(I’m not a coder)  
something like this

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/8/8886a95977d3077bdd92359d3c88481565be1805.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/f/3f867b807ff527f42eb4f4437905bbd48536a2f0.png)  
(Manually exported) ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/06c1f03c6547ae8054ba6ac13deea7907214bf4d.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:** [August 16, 2023, 1:35pm UTC](https://forum.dynamobim.com/t/python-dwg-export-with-layer-specified/92916/2 "2023-08-16T13:35:57Z")

</div>

Yes, but you’d have to code it.
