Export Selected 3d Views to NWC

I found an earlier form with a custom node that allowed you to export the active view to an NWC. Im trying to modify the code so that i can select the view i want to export instead of exporting the active view. Im just started learning how to code and i really dont know where to start.

I want to add something like this so i get a new input.

Here is the code:

import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *

Import ToDSType(bool) extension method

clr.AddReference(“RevitNodes”)
import Revit
clr.ImportExtensions(Revit.Elements)

Import geometry conversion extension methods

clr.ImportExtensions(Revit.GeometryConversion)

Import DocumentManager and TransactionManager

clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
from System.Collections.Generic import *

Import RevitAPI

clr.AddReference(“RevitAPI”)
import Autodesk
from Autodesk.Revit.DB import *

import System

import math

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

coll = FilteredElementCollector(doc).OfClass(ProjectLocation)

output =
path = IN[0]
name = IN[1]
#path = Autodesk.Revit.DB.FilePath(pathName)
Options = Autodesk.Revit.DB.NavisworksExportOptions()
Options.ExportScope = NavisworksExportScope.View
Options.ViewId = uidoc.ActiveView.Id
doc.Export(path,name , Options)
TransactionManager.Instance.EnsureInTransaction(doc)

TransactionManager.Instance.TransactionTaskDone()
doc.Regenerate()
#OUT = dir(Autodesk.Revit.DB.NavisworksExportOptions.ExportScope)
OUT = 0