pyrevitlabs / pyRevit

Rapid Application Development (RAD) Environment for Autodesk Revit®
http://wiki.pyrevitlabs.io
GNU General Public License v3.0
1.3k stars 332 forks source link

Import Schedule (May have a suggestion for a better alternative) #1679

Closed apsis0215 closed 1 year ago

apsis0215 commented 1 year ago

Describe the bug Hi Ehsan, Having issues with the import CSV- might have a better alternative on the way! CSV data:

Key Name,Data1,Data2,Data3,Data4,Data5,Data6
1,1-Data1,1-Data2,1-Data3,1-Data4,1-Data5,1-Data6
2,2-Data1,2-Data2,2-Data3,2-Data4,2-Data5,2-Data6
3,3-Data1,3-Data2,3-Data3,3-Data4,3-Data5,3-Data6
4,4-Data1,4-Data2,4-Data3,4-Data4,4-Data5,4-Data6

TestFile.csv

Import schedule cannot create parameters:


CRITICAL [Create Schedule from CSV] Missing project parameter. 
Name: "Data1" 
Type: Text 
Category Air Terminals

CRITICAL [Create Schedule from CSV] Missing project parameter. 
Name: "Data2" 
Type: Text 
Category Air Terminals

CRITICAL [Create Schedule from CSV] Missing project parameter. 
Name: "Data3" 
Type: Text 
Category Air Terminals

CRITICAL [Create Schedule from CSV] Missing project parameter. 
Name: "Data4" 
Type: Text 
Category Air Terminals

CRITICAL [Create Schedule from CSV] Missing project parameter. 
Name: "Data5" 
Type: Text 
Category Air Terminals

CRITICAL [Create Schedule from CSV] Missing project parameter. 
Name: "Data6" 
Type: Text 
Category Air Terminals

CRITICAL [Create Schedule from CSV] Revit API does not allow creation of Project Parameters. Please create the missing parameters manually before importing the data from CSV file.

To Reproduce PyRevit > Schedules > Create schedule from CSV image

``

Expected behavior Import schedule, create parameters & Associate with each 'column' in the CSV I was going to ask to have this removed for that very reason- Am working on a Python to create those values in Family Parameters and already have a python to insert and update families of noteblocks! So we don't end up with 100's of parameters.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

pyrevit env

Additional context Add any other context about the problem here.

apsis0215 commented 1 year ago

==> Registered Clones (full git repos) ==> Registered Clones (deployed from archive/image) master | Deploy: "basepublic" | Branch: "master" | Version: "4.8.10.22040+1743" | Path: "C:\Program Files\pyRevit-Master" ==> Attachments master | Product: "Autodesk Revit 2023" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "Autodesk Revit 2022" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2021.1.2" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers master | Product: "2019.2.2 Hotfix" | Engine: IPY277 (277) | Path: "C:\Program Files\pyRevit-Master" | AllUsers ==> Installed Extensions pyRevitWM | Type: Unknown | Repo: "" | Installed: "R:\Revit\Support\pyWM\pyRevitWM.extension" pywm | Type: Unknown | Repo: "" | Installed: "R:\Revit\Support\pyWM\pywm.lib" ==> Default Extension Search Path C:\Users\rallen\AppData\Roaming\pyRevit\Extensions ==> Extension Search Paths R:\Revit\Support\pyWM\pywm.lib R:\Revit\Support\pyWM ==> Extension Sources - Default https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json ==> Extension Sources - Additional ==> Installed Revits Autodesk Revit 2023 | Version: 23.1.0.127 | Build: 20221005_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2023\" Autodesk Revit 2022 | Version: 22.1.10.541 | Build: 20211103_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2022\" 2021.1.2 | Version: 21.1.20.44 | Build: 20201109_1530(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021\" 2019.2.2 Hotfix | Version: 19.2.20.24 | Build: 20190808_0900(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2019\" ==> Running Revit Instances Error: Object reference not set to an instance of an object. Run with "--debug" option to see debug messages