# Change Section View Detail Level from Coarse to Medium

**URL:** <https://forum.dynamobim.com/t/change-section-view-detail-level-from-coarse-to-medium/88807>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [April 21, 2023, 12:54am UTC](https://forum.dynamobim.com/t/change-section-view-detail-level-from-coarse-to-medium/88807 "2023-04-21T00:54:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hoang.Le](https://avatars.discourse-cdn.com/v4/letter/h/ecc23a/32.png) [@Hoang.Le](https://forum.dynamobim.com/u/Hoang.Le)\
**Post date:** [April 21, 2023, 12:54am UTC](https://forum.dynamobim.com/t/change-section-view-detail-level-from-coarse-to-medium/88807/1 "2023-04-21T00:54:03Z")

</div>

Hi guys  
I’m trying to get my dynamo script to change the Detail Level of Section View from Coarse to Medium. This looks like the wrong way to go about it but I haven’t been able to figure out what the correct way is.  
Any ideas on how should I go about this? Thanks a lot guys.

 ![Dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/a/fa027b5b2ceb4cb8c747cde97f2df4ce2e857990.png)

---

<div class="post-metadata">

**Author:** ![newshunhk](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@newshunhk](https://forum.dynamobim.com/u/newshunhk)\
**Post date:** [April 21, 2023, 1:50am UTC](https://forum.dynamobim.com/t/change-section-view-detail-level-from-coarse-to-medium/88807/2 "2023-04-21T01:50:32Z")

</div>

maybe it is a builtin parameter so you need to access it by api  
you an try this:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/f/dff122bde63fc3588d74f1a18a572d8f93efe19a.png)

```auto
import clr
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager 
from RevitServices.Transactions import TransactionManager 

clr.AddReference("RevitAPI")

import Autodesk 
from Autodesk.Revit.DB import *

doc = DocumentManager.Instance.CurrentDBDocument

elem = UnwrapElement(IN[0])

TransactionManager.Instance.EnsureInTransaction(doc)

output = elem.get_Parameter(BuiltInParameter.VIEW_DETAIL_LEVEL).Set(IN[1])

TransactionManager.Instance.TransactionTaskDone()

OUT = output

```

---

<div class="post-metadata">

**Author:** ![Hoang.Le](https://avatars.discourse-cdn.com/v4/letter/h/ecc23a/32.png) [@Hoang.Le](https://forum.dynamobim.com/u/Hoang.Le)\
**Post date:** [April 21, 2023, 2:45am UTC](https://forum.dynamobim.com/t/change-section-view-detail-level-from-coarse-to-medium/88807/3 "2023-04-21T02:45:08Z")

</div>

Hey thanks

I find that the Python script works when selecting an existing View in the project but if it’s a newly created SectionView.ByCoordinateSystemMinPointMaxPoint in dynamo then it doesn’t seem to like it. (e.g. I have to select the SectionView id 98673 after it has been created in Dynamo)

 ![Dynamo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/2/92168e4d4d3603567cd11eac8077a0af120c30f3.png)

---

<div class="post-metadata">

**Author:** ![Hoang.Le](https://avatars.discourse-cdn.com/v4/letter/h/ecc23a/32.png) [@Hoang.Le](https://forum.dynamobim.com/u/Hoang.Le)\
**Post date:** [April 21, 2023, 2:52am UTC](https://forum.dynamobim.com/t/change-section-view-detail-level-from-coarse-to-medium/88807/4 "2023-04-21T02:52:48Z")

</div>

Ah I got it, has to get the SectionView item out of the list. Silly me

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/8/783a075c0fd1f27710984bdb4af199dd0d446316.png)
