Revit Architecture

Posts: 12
Registered: ‎11-06-2012
Message 1 of 1 (165 Views)

Open external file (Hyperlink)

165 Views, 0 Replies
11-06-2012 08:14 AM


I need open a file Excel through Revit. Similar hyperlink.

I created this code, but does not open:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Net;
using System.Windows.Forms;
using System.Windows.Threading;
using System.Data.OleDb;
using System.Diagnostics;

using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Architecture;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Selection;
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.Attributes;

    public class OpenExcelTesoura : IExternalCommand
        static void Main()
            OpenMicrosoftExcel(@"X:\Biblioteca\06 - REVIT\Componentes Revit\Damiani\Estrutural\Treliças\TESOURAS DAMIANI.xlsm");
        static void OpenMicrosoftExcel(string f)
            ProcessStartInfo startInfo = new ProcessStartInfo();
            startInfo.FileName = "WINEXCEL.EXE";
            startInfo.Arguments = f;

How do I do?


Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.