[Revit] Change objects reference level without moving it (Updated with a GUI)

Here is a new update of my [Revit] Change fittings reference level without moving it with :

  1. Updated to be used in pyRevit
  2. A new WPF GUI with a new option to select a level from your project list
  3. Better error handling which makes it easier to use

Find the short video tutorial here :

 

En lire plus et voir la vidéo...

[Revit] Rotate elements in any direction script

More than 2 years ago I made an article to show a way to rotate element using Revit API. Using external events in a modeless form as described in my previous article you can for example make a GUI to get axis and angle from user inputs. It is also using ISelectionFilter as described in this previous article. The new thing is that I use a standard class to store rotation parameters. This way parameters are dynamically feed to methods which are run in external events.

 

En lire plus...

Déménagement

Nous avons changé d'adresse!

Dorénavant pour nous envoyer un courrier, vous pourrez le faire à:

 

Cyril Waechter BIM Insight

Rue Virginio-Malnati 101

1217 Meyrin (GE)

 

Le téléphone ne change pas: +41 22 519 22 34

[Revit API] Simple Modeless Form (External Event Handler) in pyRevit

 I struggled for a while to make a modeless form. Why did I need it ? Because each time I was trying to get user to select object after WPF appear I was going out of Revit API thread and got this very common exception «Autodesk.Revit.Exceptions.InvalidOperationException: Attempting to create an ExternalEvent outside of a standard API execution». As Jeremy Tammik says :

    One of the most frequently raised questions around the Revit API is how to drive Revit from outside, e.g., from a separate thread, a modeless

    dialogue, or a stand-alone executable.

En lire plus...

[Revit] Add sizes to a pipe segment using python + Dynamo + Excel


I didn’t want to use Dynamo as I really prefer line code programming to visual programming. But in fact Dynamo :

    has a very active community
    is open source too
    use python as main scripting language
    is great for debugging python script as you don’t need to include every single line in a try/except block
    is much user friendly than as it is now included with Revit 2017.1 and by the way this new Dynamo Player makes it usable by anyone
    scare many people less than line code so they can easily modify to adapt it to their objectives

Lire la suite...