May every moment inspire me.

study things

Revit API 시작하기 - Hello World (Revit 2021 실행)

my_jennyee 2022. 3. 14. 16:12

1. Visual Studio 2022 설치

--> Community / .NET 다운 용으로 다운 받으면 됨.

 

2. Hello world 시작하기

https://knowledge.autodesk.com/ko/support/revit/learn-explore/caas/CloudHelp/cloudhelp/2014/KOR/Revit/files/GUID-8EB25D2A-3CAF-486A-BA8E-C2BEF3DB68F6-htm.html

 

Walkthrough: Hello World | Revit | Autodesk Knowledge Network

Walkthrough: Hello World Use the Revit Platform API and C# to create a Hello World program using the directions provided. For information about how to create an add-in application using VB.NET, refer to Hello World for VB.NET . The Hello World walkthrough

knowledge.autodesk.com

 

3. VS 켜서 새로만들기, Template은 .NET, .dll 용으로 시작하기.

 

4. .NET 버전은 최신으로 맞추는 것이 좋음.

 

5. Reference에서 RevitAPI.dll 과 RevitAPIUI.dll 참조 추가하기.

debug는 x64 64비트로 하는 것이 좋음.

 

6. dll 만들기.

 

7. Revit에서 연결해줄 수 있는 add in 파일 만들어주기.

C:\ProgramData\Autodesk\Revit\Addins\2021

(주의) add in 파일이 text document 포맷이 되지 않도록 주의!

8. addin 파일도 저장하고, VS도 build 되었는지 확인!

 

레빗을 켜보면! add in 설치 완료!

728x90