Just some samples of code I use in PyRevit. Your miles may vary.
Contents:
elementId to element
Element to ElementId
Get a property of an element
Query an element for it's mark or other parameter
Find all elements of a type in active view
Location of point elements