Monday, May 19, 2014

.NET and Reference Versions

Ran into this error today when migrating our company addins to 2015:

The type or namespace name 'Autodesk' could not be found (are you missing a using directive or an assembly reference?

The first thing I tried was to remove the "RevitAPI.dll" and "RevitAPIUL.dll" references and re-add them (I had already confirmed they were being loaded from the 2015 install location). This step failed to correct my issue. Turns out it was a simple oversight on my part; Revit 2015 requires .NET 4.5 and the reference dlls are compiled in that version... my upgraded project had its "Target Framework" set to version 4, simply changing this to 4.5 corrected the problem.

Monday, April 28, 2014

Beware the In Place Family

I have been working to have my latest Revit add on published to the Exchange app store and came across a bug in my code.

The app basically processes all walls (or all selected walls) and allows you to manage the wall join condition (allow/disallow joins) here is a link to the page describing the app: http://krispcad.blogspot.com.au/2014/03/krispcad-wall-join-manager.html.

All was working hunky dory in my test projects so I submitted the app confident of a quick approval. What I got instead was a message telling me that my app throws an error :( Sure enough, when I tested the app with the sample project it threw the error. Turns out that checking that the walls collected are of the correct Category was not enough as the sample project also included an in place family in the wall category... so my code was throwing an error when I was casting my collection's objects to "Walls", the in place family is a "FamilyInstance" and cannot be cast to "Wall".

A simple fix of including an "ElementClassFilter" for a type of "Wall" solved the issue... hopefully my new app will be available on the store in the next few days.

Sunday, March 9, 2014

KrispCAD Wall Join Manager

This post provides instructions on how to use my Wall Join Manager app that is being published on the app store:

Update: the app is now live: http://apps.exchange.autodesk.com/RVT/en/Detail/Index?id=appstore.exchange.autodesk.com%3akrispwalljoinmanager_windows32and64%3aen

Update 2: the app was republished today to include support for the 2015 releases of Revit. If you have previously purchased and downloaded the app you should be able to download the new version with your Autodesk log-in.

Wall Join Manager

This is s simple tool that allows you to align several text notes to another selected text note. To run the command simply follow these instructions:
  1. Optionally select the walls on which you want to change the wall joins.
  2. Run the "Wall Join Manager" command from the Add-Ins ribbon panel.
  3. Select "Join Type", either "Allow" or "Disallow" joins.
  4. Select whether to change the wall join status on one end or both ends of the walls.
  5. Select which walls to apply the changes to. By default if you preselect walls that option will be checked, otherwise you can specify all walls in the project or all in the current view.
  6. Optionally specify whether to filter the walls by one or more wall types.
  7. Click "OK" to apply the changes.
Wall Join Manager - Options Dialog


Privacy Policy

This developer of this app does not collect or retain any personal data.