Hi all,
I would like to get only exterior wall with a python script.
I did this (see below):
#Import librairies and Namespaces
import clr
import System
import math
clr.AddReference(‘ProtoGeometry’)
clr.AddReference(‘RevitAPI’)
clr.AddReference(‘RevitAPIUI’)
from Autodesk.DesignScript.Geometry import *
#Document and Transaction
clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
from Autodesk.Revit.DB import *
import Autodesk
from Autodesk.Revit.DB.LabelUtils import GetLabelFor
from Autodesk.Revit.DB.ParameterFilterRuleFactory import CreateEqualsRule
from Autodesk.Revit.DB.ElementId import *
#Define the inputdata
Walls = UnwrapElement(IN[0])
#Creating a variable doc which set the active Revit application and document
doc = DocumentManager.Instance.CurrentDBDocument
TransactionManager.Instance.EnsureInTransaction(doc)
#Start the script
#Avoir les murs ayant une fonction du mur
ext=ElementId(BuiltInParameter.FUNCTION_PARAM)
Parameters=ParameterFilterRuleFactory.CreateEqualsRule(ext,(WallFunction.Exterior))
#End the script
TransactionManager.Instance.TransactionTaskDone()
OUT=Parameters
It doesn’t work , Dynamo said that : no module named ElementId
Thank you for your help