Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Attach a window a document

1 REPLY 1
Reply
Message 1 of 2
Anonymous
258 Views, 1 Reply

Attach a window a document

Hi everybody,

 

I have a problem, I would thank if someone can help me. In my application I have to open a window attach to the opened document. The problem it is if I have two opened documents, I don't know how I can attach a window to a window. 

 

Thanks,

 

Javi

1 REPLY 1
Message 2 of 2
jeremytammik
in reply to: Anonymous

Dear Javi,

 

When you say document, are your referring to a Revit project RVT?

 

When you say window, are your referring to a .NET Windows form?

 

If so, the solution presumably involves retrieving the Revit main window handle and setting that as a parent window on the form.

 

This has been discussed and used many times by The Building Coder.

 

Here are the first and last posts (out of 17 total) mentioning the `JtWindowHandle` class:

 

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report