« Room in Area Predicate via Point in Polygon Test | Main | Updated Revit MEP 2013 Material »

August 22, 2012

Comments

From a content perspective it would be better to make the bound box visible at Course Level of detail, and detailed geometry not visible at Course and then vice versus, bounding box invisible at Medium and Fine, and detailed geometry visible. This makes for useful content for the end user, a bit off topic but I thought it was worth mentioning.

Of course, once you've found the bounding box it would not be so hard to change its properties.

hi! i wasnt able to find a tutorial on how to add a GUI to a add-in! a hello world example with a button and a dropdown would be cool! thank you

igor

Dear Igor,

The Revit API does not provide anything specific in that direction. You simply use the standard .NET framework functionality, above all the stuff provided in the System.Windows.Forms namespace. There are numerous samples making use of this functionality to create their own forms, buttons and dropdowns in the Revit SDK and the ADN sample material. Please examine that. You might want to start by looking at the getting started category:

http://thebuildingcoder.typepad.com/blog/getting_started

Here is the last update on this subject:

http://thebuildingcoder.typepad.com/blog/2012/07/obj-model-exporter-with-transparency-support.html#4

Here is a sample making more hardcore use of System.Windows.Forms functionality to create its own form completely programmatically on the fly:

http://thebuildingcoder.typepad.com/blog/2012/05/the-schedule-api-and-access-to-schedule-data.html

You can create buttons and drop down combo boxes analogously.

Cheers, Jeremy.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource