One of the tricks in my AU Class discussed how to display a Windows Form in REVIT .. the following code describes adding a form and passing to it the Active REVIT document as a variable so you have access to the doc from the form:
In the NEWLY Placed form :
Public Class Form1
Public myDoc As ThisDocument = Nothing
Call it like so from your Macro:
Dim myForm As New Form1
myForm.myDoc = Me
myForm.ShowDialog()
15f4a3f9-2c4d-4959-b75b-e51883be1be3|0|.0
Tags:
revit,
vsta,
macro
Categories: