Retrieve wall thickness

is it possible to retrieve the wall thickness through Dynamo

There’s a wall.thickness node in clockwork :slightly_smiling_face:

I think it is not available.


Oh that’s weird. I might be mistaken about the package then. I was convinced it was clockwork.

Well it’s doable with a really simple python script, so if no one solves this, then I can help you when I get my laptop started :slightly_smiling_face:

I found the width property in API but I don’t know how to use ot.


Yep, that’s the one you need.

Loop through all your unwrapped walls and retrieve the property using dot notation, and then return the value. That’s it :slightly_smiling_face:

I did this much. don’t know what is next.


The image you posted gives us 0 information. We have no idea what is in that python node and no clue what the error is.

I need to retrieve the width of the wall. I collected all walls through nodes. i don’t know what is next.
my code is below

Version:0.9 StartHTML:00000097 EndHTML:00002163 StartFragment:00000199 EndFragment:00002125 # Enable Python support and load DesignScript library
import clr
from Autodesk.DesignScript.Geometry import *
from Autodesk.Revit.DB import *
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument

The inputs to this node will be stored as a list in the IN variables.

w = UnwrapElement(IN[0])
s = w.Width

Place your code below this line


Assign your output to the OUT variable.

#OUT = list

import clr

#Import the Revit API
import Autodesk
from Autodesk.Revit.DB import *

#Start scripting here:

walls = UnwrapElement(IN[0])

output = []

for i in walls:
	output.append(UnitUtils.ConvertFromInternalUnits(i.Width, DisplayUnitType.DUT_MILLIMETERS))

OUT = output

I was convinced @Andreas_Dieckmann had this in his portfolio :slight_smile:

I can see theres one in Steam but it returns the width in meters:


The Clockwork node you were looking for is probably FamilyType.CompoundStructureLayers.

Hmm, maybe :slight_smile:

I was sure there was a node called Wall.Width :sweat_smile:

You can use node “Convert Between Units” to convert from m to mm or cm.