setting parameters by user

setting parameters by user

Anonymous
Not applicable
352 Views
2 Replies
Message 1 of 3

setting parameters by user

Anonymous
Not applicable

Hi All,

I am new to Revit-API. After one month of trying, I was able to write my first code, here is a description of the code that I have written:

My code places the structural families that I have created, inside the building elements like walls & slabs and matches the family primary parameters with the parameters of the corresponding building element. for example, I can easily read the height of a wall that I am placing my family in it and set the height of my family to this value.

But the problem is, I have defined some other parameters for my family that I want them to be set by the user before placing the family inside the wall. for example, my family has a parameter for controlling the number of bars.

So I want to create something like a dialogue box that after selecting the wall this dialogue box pops up and the user can input values in it for these parameters. can anyone help me by just telling me what classes and methods should I study to create this box that I can input values in it and it passes these values to my code!

 

Thanks in advance.

0 Likes
353 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

To make it clear I just want to create something like this box that I can input values in it and it passes these values to my code: BOX.png

0 Likes
Message 3 of 3

JimJia
Alumni
Alumni

If you wish to implement the add-in yourself and are not yet experienced in the use of the Revit API, I would suggest that you start by working through the getting started material:

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

https://www.autodesk.com/developer-network/platform-technologies/revit 

 

 


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes