• Stars
    star
    310
  • Rank 134,309 (Top 3 %)
  • Language
    C#
  • License
    MIT License
  • Created about 11 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Autodesk Revit Training material

Revit API Labs Training Material

This repository contains the ADN Revit API Labs, the material we use for our two-day hands-on Revit API training classes.

It includes both the labs themselves, consisting of sample source code exercises in both C# and VB for you to fill in, corresponding instruction documents for both languages, and an accompanying slide deck.

The labs cover three main areas:

  • Introduction for getting started with the Revit API, database, elements and properties
  • User interface programming to create an external application and custom ribbon
  • Family API for programmatic family generation

Tip: For easiest set-up of the labs exercises, extract to the following folder:

C:\RevitTrainingMaterial

Labs

Training Labs – a set of hands-on exercises during the class.

Presentation

Slide deck used for the training.

Sample Drawing

Sample .RVT Revit models used for labs.

Note about Build Warning

If a Revit Application is built with "Any CPU" build configuration, you will receive a warning similar to the following when and the RevitAPI and RevitAPIUI assemblies are referenced:

There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "RevitAPI, Version=XXXX.0.0.0, Culture=neutral, processorArchitecture=x86", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.

To overcome the above warning, we modified the Labs .csproj and .vbproj files to add the following lines.

<PropertyGroup>
  <ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
    None
  </ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>

For more information on this, please look at this blog post:

http://thebuildingcoder.typepad.com/blog/2013/06/processor-architecture-mismatch-warning.html

About this material

  • The material provided here is used for our two-day classroom trainings. You can also use it for self-learning.

  • This introduces you to the fundamentals of the Revit API to get you started. It does not provide a complete coverage of the entire Revit API or .NET Framework.

  • Materials are in both C# and VB.NET. Labs exercises are provided in two languages. The accompanying PowerPoint presentation is mixed.

  • Disclaimer: We are aware that this material is not completely free of errors. We correct them as we encounter them. Please help us by forking this repository, fixing the issues you note and submitting a pull request for us to integrate your fixes back into the main repository. Thank you! We hope this will still be useful for you to get started with Revit API programming.

Good luck!

AEC workgroup Developer Technical Services Autodesk Developer Network

July 2019

Copyright

(C) Copyright 2009-2021 by Autodesk, Inc.

Permission to use, copy, modify, and distribute this software in object code form for any purpose and without fee is hereby granted, provided that the above copyright notice appears in all copies and that both that copyright notice and the limited warranty and restricted rights notice below appear in all supporting documentation.

AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC. DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE UNINTERRUPTED OR ERROR FREE.

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.

More Repositories

1

3dsMax-OSL-Shaders

shared OSL shaders for 3ds Max
225
star
2

3dsMax-Python-HowTos

3ds Max python samples
Python
222
star
3

Maya-Training-Material

Autodesk Maya Training Material
C++
138
star
4

MgdDbg

Inspection tool for AutoCAD Database (DWG) created with .NET
C#
120
star
5

AutoCAD-Net-Wizards

AutoCAD .Net Wizards for Visual Studio
C#
95
star
6

Inventor-Training-Material

Inventor API Training Material and Samples
Visual Basic
94
star
7

ObjectARX-Wizards

AutoCAD / ObjectARX Wizards for Visual Studio
C++
78
star
8

3dsMax-Learning-Path

3ds Max Learning Path
C++
63
star
9

AutoCADDotnetTrainingMaterial

AutoCAD NET Material Previous Versions
44
star
10

3dsMax-Explode-Geometry

3ds Max Explode Geometry plug-in
C#
42
star
11

Maya-Cpp-Wizards

A new Maya C++ Wizards
C
40
star
12

Civil3DSnoop

Tool to inspect AutoCAD Civil 3D Database
Visual Basic
38
star
13

Maya-Net-Wizards

Maya .Net Wizards for Visual Studio
C#
36
star
14

revit-api-chms

A collection of the Revit API CHM Windows Help Files from the Revit SDKs
34
star
15

3dsMax-MCG-Samples

A library of useful compounds and tools for Max Creation Graph.
MAXScript
31
star
16

Maya-Locator

Maya Locator Library (Example) - Plug-in of the Month, October 2012
C++
27
star
17

AutoCAD-Slide-Library-Manager

AutoCAD Slide Library Manager
C#
24
star
18

Maya-dx11Shader-Sample

Maya-dx11Shader-Sample
C++
22
star
19

ObjectARXTrainingMaterial

ObjectARX Training Material
20
star
20

Maya-Net-Wpf-DarkScheme

Maya .Net Dark Scheme for WPF
C#
19
star
21

Maya-CustomConstraint

Maya CustomConstraint Sample
C++
14
star
22

Plant3DTraining

C#
14
star
23

3dsMax-SampleCode

C++
12
star
24

ScriptPro-installer

ScriptPro 2.0 is a batch processing utility that applies a set of commands to multiple drawings.
11
star
25

AutoCAD-SendCommand

Samples showing how SendCommand works in AutoCAD 2014 and 2015
10
star
26

A360ViewerSamples

JavaScript
8
star
27

3dsMax-WindowMatic

3ds Max sample code showing how to capture an outside window process, into a 3ds Max viewport
C++
7
star
28

Vault-Plugin-Wizard

This wizard helps you to create an Autodesk Vault plugin more easily.
C#
7
star
29

apps.exchange.packager

Cross platform scripts to produce installers for the Autodesk http://apps.exchange.autodesk.com store
Python
7
star
30

Termlicensing

C#
7
star
31

3dsMax-Bake-Radiosity

C++
6
star
32

3dsMax-Menu-Sample

.NET API Menu sample
C#
6
star
33

PIOTM-QRCode

Create single hatch QR code on AutoCAD
C#
6
star
34

EntitlementAPI

Samples related to Entitlement API for Autodesk Exchange Store
C#
5
star
35

MotionBuilder-Training-Material

Autodesk MotionBuilder Training Material http://www.autodesk.com/developmotionbuilder
5
star
36

Associative-Fillet-sample-application

A realistic Associative Fillet ObjectARX sample application
C++
5
star
37

ObjectARX-Natvis

MSVC Debugger Type Formatting (Natvis files) for AutoCAD ObjectARX
4
star
38

iLogicRuleExporter

Utility to export all Rules from the Active assembly to *.iLogicVb files
Visual Basic .NET
4
star
39

EntitlementAPI_Inventor

Shows how to use the entitlement API from an Inventor AddIn
C#
3
star
40

Exchange-IPNListener-Sample

An ASP.Net sample demonstrating how to connect and receive the Autodesk Exchange Store IPN notification.
C#
3
star
41

Inventor-Attribute-Helper

The latest version is here https://github.com/brianekins/AttributeHelper
Visual Basic .NET
2
star
42

ADN-Field-Android-Sample

A demo on some workflows to handle Issues using Field API
Java
2
star
43

Vault_Thinclient_Integration

C#
2
star
44

MaterialProfiler

An Inventor Material Profiler Add-In
C#
2
star
45

map-resource-explorer

C#
2
star
46

ADN-Android-Samples

Various Android related samples
Java
2
star
47

3dsMax-OSL-Shaders-TestSuite

3ds Max OSL Shaders tests and content
MAXScript
1
star
48

.NETwrappersCustomEntity

Tutorial to create managed wrappers for custom ARX functions and objects
1
star
49

ADN-WinRT-Samples

Various WinRT/Windows App Store Samples
C#
1
star
50

Fiber_removal_AutoCAD2015

1
star
51

AdnGallery

Node.js gallery website
JavaScript
1
star
52

AdnNodeServer

A Node.Js Server demo running Apprentice to fetch data from Inventor files
C#
1
star