It sure is. I am working on putting together my first package. This will be one of my nodes but for now, have at it.
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import *
from RevitServices.Transactions import TransactionManager
Refresh = IN[0]
doc = DocumentManager.Instance.CurrentDBDocument
vId = UnwrapElement(doc.ActiveView.ToDSType(True))
#The inputs to this node will be stored as a list in the IN variables.
#vId = UnwrapElement(IN[0])
TransactionManager.Instance.EnsureInTransaction(doc)
doc.ActiveView.EnableTemporaryViewPropertiesMode(vId.Id)
TransactionManager.Instance.TransactionTaskDone()
#Assign your output to the OUT variable.
OUT = vId