first plug in

first plug in

Anonymous
Not applicable
1,050 Views
3 Replies
Message 1 of 4

first plug in

Anonymous
Not applicable

I am a Beginner for the programming , while start my first plug in its pretty good to work on it but same time because of the with out any knowledge in programming i am struggle in lot of area if their is any prepare guide way for learning the programming please let us know. While Build my first program i have receive the below error it may be simple one but i can't get where is the problem please help to solve that .

 

ERROR

Visual studio cannot start debugging because the debug target'D';\3D Scan\Lab1placeGroup\Lab1placeGroup\Lab1placeGroup\bin\Debug\Lab1placeGroup.exe' is missing. Please build the project and retry, or set the Outputpath and Assemblyname properties appropriately to point at the correct location for the target assembly.

 

 

0 Likes
Accepted solutions (1)
1,051 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Welcome to programming and the Revit API!

 

I would suggest that you learn the basics of programming first, before diving into the .NET environment.  A very suitable starting point is Python, with lots of beginner’s tutorials.

 

Once you have a minimum of generic programming basics, learning some fundamentals of .NET is helps before starting to work with the Revit API.

 

Also, before you start working with the Revit API, you need to know a little bit about Revit and BIM itself, from an end user point of view, or the API will not make much sense.

 

Here is a recent little note on what to do before getting started with the Revit API:

 

http://thebuildingcoder.typepad.com/blog/2018/06/extensible-storage-and-renaming-a-family-in-a-proje...

 

Once you have that under the hood, here are lots more suggestions on getting started with the Revit API:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#2

 

Good luck and have fun!

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @Anonymous,

Just follow the following steps

1.In visual Studio,write your code.

2.Build the solution

3.After building the solution,you will get your .dll file in your LAB1PLACEGROUP folder.

4.open Notepad

5.Create addin manifest file . In your addin file Make sure that

         i)you gave proper class name <FullClassName>Your namespace name.Class1</FullClassName>

        ii)You should give proper assembly name(i.e)the path where your .dll file is located(not .exe file) 

                        <Assembly>Desktop\MY PROJECT\MY PROJECT\bin\Debug\MY PROJECT.dll</Assembly>

        iii)save the addin file in specific folder  as mentioned in Revit my first plugin  

6.In Visual Studio,GO to View -->Solution Explorer -->Right Click C# LAB1PLACE GROUP -->select properties -->choose Debug option -->Choose Start External program and browse for Revit.exe file(C:\Program Files\Autodesk\Revit 2019\Revit.exe)

7.Start debugging. Revit should open and your code should work.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

Message 4 of 4

Anonymous
Not applicable
Hi, jeremytammik
Thank you for your suggestion . I will follow the progress by learning the
Basics of Python .

0 Likes