Archive for category Revit

On the door handiness in Autodesk Revit

I was working on semi – automated solution to enter door handiness in Revit models. The existing solutions are either quite expensive (like Reforma Swing Direction) or has weird assumptions.

My intial setup is Dynamo and the Dynamo Door Set Handing module from http://archi-lab.net/. It has fine tutorials, so you only need to create your model in Dynamo.

The weird thing on door handines is it is different in some countries.

  • Door handiness in Germany is defined as hinge position on the door, when one is pulling the door to open. if the hinges are on the left side, the door is left-handed, and if the hinges are on the right side, the door is right-handed. I will refer it ad “DIN – style”.
  • The IFC, together with ISO 16739 defines door handiness as the position of “positive Y axis”, which is definitelly the position of door handle when puling.  I will refer it as “ISO – style”.
  • Americans use ISO style, but also has “reversed” option. I still have no idea on this option, as “reversed right” is “left”.

So, what’s to do?

Read the rest of this entry »

Tags: , , ,

Revit and IronPython: the early bird

ODS module does not work on IronPython, and i don’t know the way to add Revit modules to regular Python.Whatever …

''' cut-n-paste from the net
 @author: ejs
 '''
 import clr
 import sys
 clr.AddReference('RevitAPI')
 clr.AddReference('RevitAPIUI')
 from Autodesk.Revit.DB import *
 from Autodesk.Revit.DB.Architecture import *
 from Autodesk.Revit.DB.Analysis import *
 
 #sys.path.append(r'C:\Python\3.4\Lib\site-packages')
 
 #from odslib import ODS
 
 #ods = ODS()
 
 uidoc = __revit__.ActiveUIDocument
 doc = __revit__.ActiveUIDocument.Document
 
 cView = uidoc.ActiveView
 
 collector = FilteredElementCollector(doc)
 collector = FilteredElementCollector(doc).OfClass(ViewSchedule);
 
elems=collector.ToElements()
 n_elems=len(elems)
 
 for elem in elems:
     if cView.Id == elem.Id: Read the rest of this entry »

Case story: move the location of Revit Server 2012 models

Here is the other issue: due to the fast install of Revit Server 2012, the location of model was not important. After the server’s role was changed to “Central” instead of ‘Caching”, i wanted model be stored in more predictable location.

Again, I had no wish to reinstall the whole server, including w2008r2 server.
Read the rest of this entry »

Case story: change role of Revit Server 2012 without reinstall

Our company was running a caching Revit Server 2012 instance, to be able to work on a project. The central server was set in the kingdom of far away and was serving three architectural offices.
Recently we had to take care of the model created and the Revit Server 2012 instance itself. I hate to touch working system, but i had to.
Read the rest of this entry »