Create/send geometry from Viktor to Revit

Hi! I’m wondering if there is a workflow to send geometry info from Viktor app to Revit AND automatically create geometry in Revit. All suggestions will be appreciated. Thanks!

More specifically, the use case:

Background:

I have a Viktor app for generative design. Users can import an .ifc file containing site info, set their preferences, and then the app generates and shows many possible building massing options, each one with a few simple blocks as building masses. It works well till this point.

After the generation of options, it is expected that users can choose one of the generated option which is interesting to them, send it to Revit, and work further from there (adding more details, adjusting the size or location of masses, etc.).

So, what I need is a good workflow to send/create geometry to Revit.

What’s expected in Revit:

  • It would be the best if 2D polygons or maybe 3D building elements representing building masses can be created in Revit x-y plane, so that the users see intuitively what the design is like, plus they have the freedom to model and adjust their buildings on top of that;
  • At the very least, the dimensions of the blocks and their relative locations (doesn’t need to be RD coordinates) show be sent to Revit;
  • Preferably the users don’t need to do a lot of work, e.g. the whole exporting-to-revit process is completed conveniently with only one or two clicks of button.

Other relevant info:

  • The building options as output of the Viktor app are essentially a collection of polygons (or, lists of coordinates of their vertices) and heights.

Hi amy.jxz

First of all, this sounds like an awesome engineering project. We recently build something that might actually suit your use-case quite well.

We have created a Revit Plugin that can exchange information with the VIKTOR platform. It has been open-sourced and the repo can be found here: github/viktor-platform/pyrevit-plugin.

Note that for most cases, the user-action starts in Revit instead of VIKTOR, but other than that it should enable you to do the following for the flows you mention:

  1. I have a Viktor app for generative design. Users can import an .ifc file containing site info, …

    The plugin supports a “Push” data button that allows you to push an .ifc file from Revit directly to a particular entity (where it will now be available to be selected in a FileField)

  2. … set their preferences, and then the app generates and shows many possible building massing options, each one with a few simple blocks as building masses.

    This just happens in the VIKTOR app as normal. Ensure that the User saves their work!

  3. After the generation of options, it is expected that users can choose one of the generated option which is interesting to them, send it to Revit, and work further from there

    The plugin can be updated to also include a “Pull” data button that retrieves data from the VIKTOR platform (i.e. retrieve the chosen option).

Note that the “Pull” data button does not exist in the base plugin, but there has been a Hackathon team recently (they are referenced in the repo) that has implemented an example of this that does roughly the following:

  • Pull the params from VIKTOR
  • Post-process these params to convert them into Revit-native objects/geometries.

I hope this helps to get on your way to build an awesome User-friendly workflow.