Using Claude to Create a Parametric Table Component

icon

Write a parametric Revit family that creates a rectangular table that offers these instance parameters:

  • Table Height
  • Table Width
  • Table Length
  • Tabletop Thickness
  • Tabletop Material
  • Number of Legs
  • Leg Size -- these should be square
  • Leg Material

Provide this as Python code that can executed using Dynamo 3.x

‣
Result
icon

Dynamo reported this error:

ERROR: Cannot set the parameter which is not value type.

at Autodesk.Revit.DB.FamilyManager.SetValueString(FamilyParameter familyParameter, String value)

at InvokeStub_FamilyManager.SetValueString(Object, Span1) at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) Traceback (most recent call last): File "<string>", line 287, in <module> Autodesk.Revit.Exceptions.InvalidOperationException: Cannot set the parameter which is not value type. at Autodesk.Revit.DB.FamilyManager.SetValueString(FamilyParameter familyParameter, String value) at InvokeStub_FamilyManager.SetValueString(Object, Span1)

at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

‣
Result