Results 1 to 8 of 8

Thread: Import excel cells within Revit schedule

  1. #1
    Member
    Join Date
    2005-06
    Posts
    19
    Login to Give a bone
    0

    Default Import excel cells within Revit schedule

    Hello!
    There are many examples of code we can get via the codes samples and draft.net folders at autodesk web site. It seems quite amazing....I don't have the smallest idea about the way one's could implement what I have in mind (very easy in my mind maybe not in reality) that is to import excell data within Revit schedules. Here (in France) we always deal with excel to communicate with the client (public/private). I mean when we receive a huge excel sheet whith all the areas inside I can tell that we dream about a kind of "Import excel external tool"..
    Any code or info about this?

  2. #2
    AUGI Addict
    Join Date
    2003-11
    Location
    New Zealand
    Posts
    1,116
    Login to Give a bone
    0

    Default Re: Import excel cells within Revit schedule

    The example that exports data to excel shows you the basis for going the other way. I'd google for general .net excel examples as well.

    Guy

  3. #3
    Member
    Join Date
    2005-06
    Posts
    19
    Login to Give a bone
    0

    Default Re: Import excel cells within Revit schedule

    Guy,
    I can't understand how to make this operation... Inserting a row within a schedule!!!
    I mean the export sample seems "easier" to build than an import command. I have the feeling that the API allows to retrieve elements properties but it's not so easy to create elements. There are some indications about BuiltInParameters from the RevitApi help but the list is far to be complete, and as a very anonym user I can't suscribe to ADN to be informed...

  4. #4
    Revit Forum Manager Steve_Stafford's Avatar
    Join Date
    2001-12
    Location
    Irvine, CA
    Posts
    7,567
    Login to Give a bone
    0

    Default Re: Import excel cells within Revit schedule

    Quote Originally Posted by valamar2005-site
    ...I can't understand how to make this operation... Inserting a row within a schedule!!!...
    I believe FK answered this in another thread?

    Quote Originally Posted by FK
    Note that as of this release there is no interactive going back-and-forth between Revit and the API program.
    Technically data isn't part of a schedule, it is part of objects and schedules display the data. The exception is calculated parameters that exist only in a schedule. Even those are not fields you act on, they act when other data is supplied.

    So if you want to fill in a value in a schedule you really need to fill in the data from the object. Within the Revit interface a schedule allows you to enter data but it wouldn't surprise me at all if a schedule is inert from a programming perspective?

    Adding a row to a schedule is a command you see on the options bar but that is tied to Rooms for example and it really is creating an object as well. A schedule key appears to be the only data row that you can add that doesn't specifically involve a new physical object in Revit.

    Just speculating...
    Last edited by Steve_Stafford; 2005-06-18 at 03:39 PM.

  5. #5
    Member
    Join Date
    2005-06
    Posts
    19
    Login to Give a bone
    0

    Default Re: Import excel cells within Revit schedule

    Thank you for the wise advice...
    And sorry for repeating myself. Maybe those things are a little bit too complex for me!

  6. #6
    AUGI Addict
    Join Date
    2003-11
    Location
    New Zealand
    Posts
    1,116
    Login to Give a bone
    0

    Default Re: Import excel cells within Revit schedule

    interactive going back-and-forth between Revit and the API program.
    What fedor means here (I think) is that you can't access the Revit document perform an operation then get an updated document from the API. You need to run the command again to get the new document.

    Remember Autodesk have made it clear this version of the API is strongly orientated for structural analysis. Expect to see more general functionality exposed via the API in future versions (we hope).

    Guy

  7. #7
    100 Club
    Join Date
    2004-06
    Location
    Wakefield, West Yorks, UK
    Posts
    102
    Login to Give a bone
    0

    Default Re: Import excel cells within Revit schedule

    This thread relates to a similar thread in Revit Building General

    As I understand it the Structural API can modify the objects already defined in the model either by replacing the objects or by updating the parameters (I am not sure which)

    This means that the API must be able to control the objects or the object parameters.

    As the schedule reflects the object parameters then adding a line would be similar to adding an object (depending on whether the line in the schedule is subject to filtering)

    Changing the values in the schedule would be equivalent to updating the parameters of the object.

    It would therefore appear that the API should be able to do this but I guess like everyone else we need some examples from Autodesk

    If anyone can provide details on how to do this it would be greatly appreciated.

    Regards

    James Lupton

  8. #8
    Autodesk Revit Developer
    Join Date
    2004-02
    Location
    Waltham
    Posts
    468
    Login to Give a bone
    0

    Default Re: Import excel cells within Revit schedule

    We implement "read" portions of the API first, and then slowly and warily tread into "write" because Revit models are complex interconnected beasts that you can't just go ahead and modify from the inside.

    For instance, a schedule is not a sheet of numbers - it's a view of the model. So if you insist on putting some numbers in, you've got to change the model to reflect them, and that has to be meaningful.

Similar Threads

  1. Replies: 1
    Last Post: 2013-06-08, 04:52 AM
  2. Merging Cells in an Excel File
    By jgardner.79905 in forum AutoLISP
    Replies: 4
    Last Post: 2010-07-27, 03:00 PM
  3. Excel cells in AutoCAD
    By giannou in forum AutoLISP
    Replies: 42
    Last Post: 2009-12-09, 12:51 PM
  4. How to Import EXCEL file into Revit?
    By tsong in forum Revit Architecture - General
    Replies: 4
    Last Post: 2007-10-02, 08:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •