Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a schedule from CSV #861

Closed
knwlss opened this issue Mar 24, 2020 · 5 comments
Closed

Creating a schedule from CSV #861

knwlss opened this issue Mar 24, 2020 · 5 comments

Comments

@knwlss
Copy link

knwlss commented Mar 24, 2020

Trying to create a schedule from CSV. It used to work perfectly fine before (version 4.7.4), but now all I manage to get is an empty schedule. The information from the cells is not imported.

  1. Created a schedule in Excel and exported it to CSV.
    image
  2. Created text project parameters with the same titles.
    image
  3. Used pyRevit tool to create the schedule in the same category and... nothing. The schedule is created, but parameters from the category are not included in the schedule automatically.
    image
    image

I can't wrap my head around this issue - is it a bug or I'm doing something wrong?

@eirannejad
Copy link
Collaborator

Would you mind sharing the schedule so I can test? I might have broken something.

@knwlss
Copy link
Author

knwlss commented Mar 24, 2020

@eirannejad
Copy link
Collaborator

Great! Let me test

eirannejad added a commit that referenced this issue Mar 27, 2020
@eirannejad
Copy link
Collaborator

Okay. CSV stands for Comma-Separated-Value meaning that the field values for each record is separated usually by a comma. Your CSV file looks like this:

Screen Shot 2020-03-27 at 15 55 00

The values are separated by ; so the script basically reads all of the Data1;Data2;Data3;Data4 string as the first field name as it was expecting , as delimiter by design.

I'd like to keep the CSV formatting in pyRevit consistent and always use comma. So It's be great if you can export your CSVs the same way from Revit. Make sure to select comma as delimiter:

Screen Shot 2020-03-27 at 16 00 56

@knwlss
Copy link
Author

knwlss commented Mar 28, 2020

Amazing! The solution is very simple indeed. Thank you, Ehsan, and many thanks for the great product and its continuous improvement. You are awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants