Dynamo Script that detects Cursor position in Revit active view

From “Getting Started” to “NodeModel Case Study - Custom UI”.

isnt there a quick way to automatically do that with a node? sorry im not used to using python nor C# at all

The outline above is what is needed to learn to do this. Once you learn, it’s quick. There isn’t a ‘do all this work for me’ button though, so unfortunately you’ll need to learn the basics and go though the prep.

Hi , can you share the error with a screenshot ?

  • check that you have PythonNet package version 1.1.1, as Jacob mentioned
  • try to restart Revit after the error
  • try to change the namespace: eg __namespace__ = "CustomSelectionElem_XX"

I would advise against using the CPython 3 engine as it contains somes bugs (specially with Net Interfaces)

Unfortunately no, the workaround work only with faces ObjectType.Face