Tag Archives: APache

Revit Editor iPhone App

14 Mar

In a previous post I showed how to Edit Revit Data Through the Web using Apache, PHP, and MySQL. The webpage ran on mobile devices, but I have thrown together an iPhone specific version of the webpage for mobile field data collection.

After editing the model through the web, you can see your changes on the full site.

The address for the iPhone App is HERE.

Here is what the app looks like. One note, after clicking submit in the app you will see a screen that says “undefined.” This is because I am still missing a final page. I am thinking to either take you back to the form or show the results of your edit. I haven’t modified the page because it is built of the same script as my full website. For these examples I piggy back on other apps I have built to make for a rapid development.


Modify Revit Model Data Through the Web

10 Jan

In my post on Programming for Architects I mention how I can use PHP to edit Revit model data.  In this post, I will briefly explain how this is done and point you to a very simple website demonstrating the results.

1) Export your Revit model to a datababse using RevitDBLink. If you don’t care about bringing the results back in you can export a single schedule to CSV and create a database table from that, or export the whole model any way you wish.

2) Download a WAMP stack. WAMP stands for Windows, Apache, MySQL and PHP. You can get the entire stack here:  WAMP Server.

3) Create a webpage in the WWW directory that has a form and whatever else you want to display. The form should call a PHP file. Mine calls insert.php to change the values and a popup.php file to display data. Name the HTML file index.html.

4) Create a PHP file that updates the database.  This is where you need to be able to code, or at least copy and modify code from the web.

5) Start Apache and browse to http://localhost/           to see it in action.

I have a very simple example running on my website. Click on a room to see the current properties. Change the values and click submit. Reclick on a room to see the changes. Currently, this edits the database in real time but requires a user to open Revit and bring the database back in. I see this as a good thing because it adds a layer of protection. It allows the user to import a specific table (rooms) and preview the changes prior to importing.

Happy Hacking.