Monday, January 5, 2015

Turning artwork to mesh for import to Revit

This is a tutorial on making meshes for the Mesh Import app, which lets us bring meshes into Revit's project environment. This is one way of making a mesh.

The free online app, Tinkercad, lets one import an SVG and turn it into a solid.


Find or make an image and turn it into SVG format is an easy way to do it.

In Tinkercad, select your SVG:

Give it some parameters and click "Import":

You get this:

Download the OBJ:

Using the Revit add-in Mesh Import, import the new OBJ file:

 You get this:
Same thing in Revit with edge lines turned off

Use the art as you wish in your project:

Thursday, January 1, 2015

Getting Revit to start while debugging API apps with Visual Studio 2013

To debug Revit API apps with Visual Studio 2013, one has to start Revit 2015 and then run the DLL created.

Out of the box, one will get this crash of Revit before Revit even gets open:

As indicated in Jeremy Tammik's blog, the answer is to switch to managed compatibility mode.

Thence, Revit will start as expected under Visual Studio's debugger.