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

Create Schedule from CSV File #1588

Closed
Kuhndog444 opened this issue Aug 15, 2022 · 82 comments
Closed

Create Schedule from CSV File #1588

Kuhndog444 opened this issue Aug 15, 2022 · 82 comments
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] Enhancement Enhancement request [class->Improved #{number}: {title}] Tools Issues related to pyRevit commands [subsystem]

Comments

@Kuhndog444
Copy link

Hello,

First of all I wanted to say, pyRevit is AWESOME!!!

I haven't had a problem with anything I've used so far except for this issue I'm having:

I'm trying to create a Schedule from a CSV File. It works fine in Revit 2021 when there's only one (1) Column but as soon as there are more than one column, this error comes up::

image

Different Parameter names work as well as long as it's only one column.

I tried to get it to work in Revit 2022 and had the same issue but with a different error:

image

I read through the issues here and you had sent another (Jariverag) to the pyRevit Forums for a similar issue, I looked through the pyRevit forums and couldn't find anything close to this issue.

I have attached my csv file below for your reference:

test csv.csv

As you can see, the parameters exist in the project(s):

image

Could you please help? Any help would be appreciated and would be excellent!

@eirannejad eirannejad added Tools Issues related to pyRevit commands [subsystem] Investigating Waiting for information from contributor or other party labels Sep 4, 2022
@jmcouffin
Copy link
Contributor

@Kuhndog444
first things first:
Looking at your csv there is an issue:
the first column must be the 'Key Name' as per the instruction of the tool

Key Name,Comments
1,asdf4
2,asdf5
3,asdf6
4,asdf7
5,asdf8
6,asdf9
7,asdf10
  • All parameters must be created and assigned to the proper category
  • also make sure you are running Revit in english, the tools is not regionalized

now to the interesting part -> Revit 2022+
Parameter API was largely remodeled in 2021 2022 and 2023
https://apidocs.co/apps/revit/2022.1/WhatsNew.htm#RevitAPIChanges2022-APIChanges
So the code in itself will not work

I did try to fix it with this PR
If you want to try it, just replace the 2 files of the PR in your %appdata%/pyrevit-Master folder and let me know if all goes well.
I tested it against 2020->2023 without issues

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2022

📦 New work-in-progress (wip) builds are available for 4.8.13.22249+0204-wip

@eirannejad
Copy link
Collaborator

eirannejad commented Sep 6, 2022

Thank you @jmcouffin for the PR. I made a few modifications and also fixed the function that was checking for parameters. Previously only project parameters were supported but now any parameter that shows up in the Revit Schedule parameter selector, is now accessible.

@eirannejad eirannejad added Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] Enhancement Enhancement request [class->Improved #{number}: {title}] and removed Investigating Waiting for information from contributor or other party labels Sep 6, 2022
@jmcouffin
Copy link
Contributor

Tested and approuved @eirannejad 😃 🚀 🎸

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.22261+1757-wip

@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2022

📦 New work-in-progress (wip) builds are available for 4.8.13.22276+0126-wip

@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2022

📦 New work-in-progress (wip) builds are available for 4.8.13.22276+1630-wip

@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2022

📦 New work-in-progress (wip) builds are available for 4.8.13.22340+1831-wip

@jmcouffin
Copy link
Contributor

@eirannejad are you usually closing issues with commits or keeping them as a backlog for next release notes?

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.22361+1659-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.22361+1659-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.22361+1659-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.22362+1614-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.22363+0119-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.22363+0123-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.22363+2256-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.22364+2220-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.22364+2352-wip

@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23004+2125-wip

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23009+1716-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23010+1940-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23018+1043-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23019+2135-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23114+0751-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23114+0900-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23117+1019-wip

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23122+0740-wip

@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2023

📦 New work-in-progress (wip) builds are available for 4.8.13.23126+1635-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23131+1009-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23137+0756-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23137+0809-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23139+0632-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23144+0857-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23144+0943-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23144+0957-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23144+1030-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23161+1332-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+0849-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+0858-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+0910-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+0908-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+1046-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+1150-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23163+1153-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23164+0946-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23165+1014-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23166+0843-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23170+0833-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23170+1018-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23170+1041-wip

@github-actions
Copy link
Contributor

📦 New work-in-progress (wip) builds are available for 4.8.13.23177+1038-wip

@github-actions
Copy link
Contributor

github-actions bot commented Jul 1, 2023

📦 New public release are available for 4.8.13.23182+2215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] Enhancement Enhancement request [class->Improved #{number}: {title}] Tools Issues related to pyRevit commands [subsystem]
Projects
None yet
Development

No branches or pull requests

3 participants