Message 1 of 3

Not applicable
10-31-2012
04:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
The API PickObject function doesn't work anymore with Revit 2013.
I tried to edit the code with help of the migrating blog post of Jeremy's, but without succes.
This is the code:
SheetFilter selFilter = new SheetFilter(); Selection sel = uiapp.ActiveUIDocument.Selection; pickedRef = sel.PickObject(ObjectType.Element, selFilter, "Select sheet."); Element elema = pickedRef.Element;
Its the pickedRef.Element; wich gives me an error.
Does someone know how to fix this?
Thanks!
Regards,
Joost
Solved! Go to Solution.