- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I want to extract rivet data such as room ID, room name, level on which rooms belong etc. using a button on windows from.
I have gone through Rivet API addin procedure added a manifest file & successfully able to open a window in Rivet software.
If anyone can just help me with syntax to be used to extract say just one type of data like room ID and display into a listview on the window using click of a button rest of other data I will do it myself.
I have attached below the code to open my window in Rivet.
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
{
[Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
public class Class1 : IExternalCommand
{
public Autodesk.Revit.UI.Result Execute(ExternalCommandData revit,
ref string message, ElementSet elements)
{
{
Form1 f1 = new Form1();
f1.Show();
}
{
}
return Autodesk.Revit.UI.Result.Succeeded;
}
}
Below is the screen shot for the window opened in Rivet.
I have gone through many posts & tutorials but I could not find the solution for the above problem.
Thanks in advance for your help.
Regards
-Faisal
Solved! Go to Solution.