Autodesk.Revit.DB.View as code block

Is it possible to create a code block version of this?
I want to run this on a player, but i noticed that the “element type” changes from view to a different one from computer to computer and from revit version to revit version. So i wanted to hard code it, if possible?

Thank you.

image

@cesar.tolentino Code Block For View Drafting

Oh wow… It worked. Thank you very much.
I learned something new.

DSCore.Types.FindTypeByNameInAssembly(“View”,“RevitAPI”);

2 Likes