A SketchUp, Rhino, or Revit file contains the information about what you actually see in the drawing or model: the symbols you place and the locations where you place them. When you add a plant to a Land F/X project and then place it in a CAD drawing or 3D model, the file contains the information on the actual placement of that plant. If you know how to code, start with Revit Macros. In this post, we’ll cover option #1 and learn some basics on how Dynamo can help you tap into the Revit API without writing a single line of code. It goes without saying that the best way to learn Dynamo is to dive in and learn by doing.
- [Instructor] To work with and edit the Revit document…that Dynamo is operating in, we need to understand…what the document manager and…transaction manager classes are,…both of which are found in the Revit API.…The document manager class allows us to access…the document within the Revit project file…that Dynamo is working in.…The document object represents the open Revit project file…and therefore stores access to all the Revit elements…as well as managing all the Revit data and views.…The transaction manager class is required to make changes…inside the Revit document.…
So for example, if we want to move a family…or create a wall, we first need to start a transaction,…make the model change, and then end the transaction.…All the changes we make are committed to the model…once the transaction ends.…If we try to edit the model outside of a transaction,…this will cause an error, as Revit will refuse the request.…I currently have the Dynamo and Revit exercise files…open for this video.…In the Python script node, this is where we left off…
To incorporate a Trimble® SketchUp® design, import the SKP file into a Revit family. Then load the family into a Revit project.
Note:Revit supports the import of files from Trimble® SketchUp® 8 and earlier releases. Files from later releases of Trimble® SketchUp® are not supported.
Before importing a SKP file from Trimble® SketchUp® into Revit, do the following:
Make sure you import the geometric data needed for the Revit capability that you plan to use. See About Imported Geometry.
Review Limitations of SketchUp Data Imported to Revit.
Review Best Practices When Importing Masses.
To import SKP files
Create an in-place family in a Revit project, or create a family in the Family Editor.
See Families.
Click Insert tabImport panel (Import CAD).
In the Import CAD Formats dialog, navigate to the folder that contains the SKP file.
For Files of Type, select the SKP file type.
Select the file to import.
Specify the desired import settings.
The following settings are recommended:
Colors: Preserve
Layers: All
Import Units: Auto-Detect
Positioning: Auto - Origin to Origin
Place at: Level 1 or Ref. Level
Orient to View
Click Open.
You may need to do the following to see the Trimble® SketchUp®-based form:
Switch to a 3D view.
To improve visibility, on the View Control Bar, for Visual Style, select (Shaded).
Click Work Plane panel (Set) on the Architecture tab, the Structure tab, or the Systems tab. In the Work Plane dialog, select a plane.
Type ZF (Zoom to Fit) to adjust the drawing area to show the entire form.
If you are creating a mass family, click Massing & Site tabConceptual Mass panel (Show Mass Form and Floors).