Model Review Plugin Help

Model Review Plugin Help

Anonymous
Not applicable
1,169 Views
7 Replies
Message 1 of 8

Model Review Plugin Help

Anonymous
Not applicable

Hi everyone. I have the development guide (all 4 pages) and am struggling snapping a form into the window. I'm reasonably new to C# so I am working through the issues but I can't seem to find how to make my dialog appear. I have checked the SamplePlugin and that doesn't even work!

 

Code Sample:

        public class WallCheck : IPluginCheck
        {
            public void Configure(System.Windows.Forms.IWin32Window window, ICheckData data)
            {
                frmWallCheck oWallCheckForm = new frmWallCheck();
                oWallCheckForm.ShowDialog(window);
            }

....}

 

I have a form frmWallCheck that I would like to "snap in" to the interface. Any guidance?

 

Chris

 

0 Likes
Accepted solutions (1)
1,170 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable
Accepted solution

It looks like you're on the right path.

 

What happens when you try that? Does it not pop-open the window?

The sample plugin does work for me (at least I tested the configuration, and it did pop open the config window).

 

-MattModelReviewPlugin.PNG

0 Likes
Message 3 of 8

Anonymous
Not applicable

Hi Matt,

 

Thanks for the reply. I was under the impression that when I used that portion of the code it would appear as a tab not be a part of the configure button (I'm a noob). I have that working. Now I am investigating passing parameters from the form back to the check. I'm sure I will have more ????'s.

0 Likes
Message 4 of 8

Ning_Zhou
Advocate
Advocate

looks like Model Review API was available before? still available now?

0 Likes
Message 5 of 8

Anonymous
Not applicable

It appears to still be there in the latest version (2014).

0 Likes
Message 6 of 8

Ning_Zhou
Advocate
Advocate

thanks Mat, i didn't notice that, so where are the related files like guideline, etc., in Revit SDK?

 

0 Likes
Message 7 of 8

Anonymous
Not applicable

I think if you look in the Autodesk Revit Model Review 2014 installation folder, there's a folder called "Plugin-Source".

In there is a Sample Plugin as well as a document called "Developing_ModelReview_Plugins.pdf".

 

Of course, you'll also need the Revit SDK (because any interaction you have with Revit will be through that).

 

Best Regards,

Matt

0 Likes
Message 8 of 8

Ning_Zhou
Advocate
Advocate
found it, looks like it's the only (?) plugin which also provide its own API, thanks Mat.
0 Likes