- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm looking to create a python script which will select objects based on their parameter values, the objects will then be the highlighted active selection in the Revit UI for the user to do something with.
To start this off, I'm writing a basic script to select an object. I'm writing this as a Python script within Dynamo.
So in Dynamo I use the 'Select Model Element' node which returns an object, I'm now trying to select that object in python using:
selob = Selection.SetElementIds(selobject.Id)
But when I run the script I get the error:
TypeError SetElementIds() takes exactly 2 arguements (1 given).
But looking at the API documentation for the Selection Class, the SetElementsIds method only appears to require one arguement.
http://www.revitapidocs.com/2015/cf8c11bb-f0c7-6d50-cbdf-41d0a010d9d6.htm
Am I missing something?
Thanks.
Solved! Go to Solution.