Ergebnis 1 bis 4 von 4

Thema: Variable columns in Excel

  1.    #1
    Moderator Avatar von DaveP
    Registriert seit
    January 10, 2011
    Ort
    St Paul, MN
    Beiträge
    3.525
    Aktuelle Ortszeit
    09:36 AM

    Not allowed! Not allowed!

    Variable columns in Excel

    I'm working on a graph that will read an Excel file and create Family Types.
    I've got everything working (I'll share if you want it) but the problem I'm having is every time we get a spreadsheet from a new client, everything is in different columns.
    So what I'd like to be able to do is either read the column headers and have Dynamo figure out what that column is, or maybe have a second Tab in the spreadsheet that would call out
    Column F Width
    Column G Depth
    Column H Height
    Column Q Type Name
    And then somehow have Dynamo translate that into which column to use to pass that parameter
    But I can't think of a good way to do that without a thousand wires flying all over.
    Klicke auf die Grafik für eine größere Ansicht

Name:	Equipment Graph.PNG
Hits:	7
Größe:	88,5 KB
ID:	40300
    Maybe somehow create a dictionary?

  2.    #2
    Forum Addict Avatar von elton williams
    Registriert seit
    December 7, 2010
    Ort
    Gold Coast
    Beiträge
    2.881
    Aktuelle Ortszeit
    12:36 AM

    Not allowed! Not allowed!
    Couldnt you just provide the client with a template excel file?
    What you want would negate some of the human error though, and im sure its possible but its a bit beyond my dynamo skills atm

  3.    #3
    Member
    Registriert seit
    December 11, 2010
    Ort
    Astana
    Beiträge
    313
    Aktuelle Ortszeit
    08:36 PM

    Not allowed! Not allowed!
    Suppose that the names of the columns are different each time, then manually opening the spreadsheet and determining the required columns cannot be avoided. I would add 4 input number nodes to the script to override the column indices retrieved from the Excel file, if required.

  4.    #4
    Member Avatar von Bjorn_K
    Registriert seit
    April 8, 2011
    Ort
    Rotterdam, Netherlands
    Beiträge
    454
    Aktuelle Ortszeit
    04:36 PM

    Not allowed! Not allowed!
    Assuming at least the names are something you know this should work:

    Klicke auf die Grafik für eine größere Ansicht

Name:	multiple_header_search.png
Hits:	3
Größe:	1,14 MB
ID:	40307

    Might want to make a little interface where people can enter the Column names if they differ. I would not play with the order there, knowing which property is in which position after you rejigged it will let you do all the other things you want.

    If the names of the columns are something you can rely on, you can just use this to fire&forget in all cases.

    I used this last year without any trouble at all while dealing with a customer whose data-archive was such a mess I'm reluctant to call it an archive.

Ähnliche Themen

  1. Variable Floor Help
    Von Kyle Roseman im Forum Architecture and General Revit Questions
    Antworten: 13
    Letzter Beitrag: September 6th, 2019, 04:13 PM
  2. Antworten: 1
    Letzter Beitrag: August 25th, 2017, 10:25 PM
  3. Renaming From Excel - After Sorting Data in Excel
    Von cellophane im Forum Dynamo BIM
    Antworten: 8
    Letzter Beitrag: January 18th, 2016, 01:24 PM
  4. Antworten: 3
    Letzter Beitrag: June 6th, 2015, 11:18 AM
  5. Variable 'If' Statement
    Von Nevin im Forum Architecture - Family Creation
    Antworten: 1
    Letzter Beitrag: June 5th, 2014, 06:25 AM

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •