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

PyRevit-Colurized Groups Bugs #989

Closed
Robbo1234 opened this issue Aug 31, 2020 · 1 comment
Closed

PyRevit-Colurized Groups Bugs #989

Robbo1234 opened this issue Aug 31, 2020 · 1 comment

Comments

@Robbo1234
Copy link

Robbo1234 commented Aug 31, 2020

Describe the bugrunning

Getting this error we running PyRevit-Colurised Group

IronPython Traceback:
Traceback (most recent call last):
 File "C:\Users\rob.cross\AppData\Roaming\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Modify.panel\edit3.stack\Groups.pulldown\ColorizeGroupTypes.pushbutton\script.py", line 198, in <module>
 File "C:\Users\rob.cross\AppData\Roaming\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Modify.panel\edit3.stack\Groups.pulldown\ColorizeGroupTypes.pushbutton\script.py", line 188, in colorize_grouptypes_in_views
NameError: global name '__title__' is not defined


Script Executor Traceback:
IronPython.Runtime.UnboundNameException: global name '__title__' is not defined
 at IronPython.Runtime.Operations.PythonOps.GetVariable(CodeContext context, String name, Boolean isGlobal, Boolean lightThrow)
 at IronPython.Compiler.LookupGlobalInstruction.Run(InterpretedFrame frame)
 at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
 at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
 at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
 at Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame frame)
 at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
 at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
 at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
 at PyRevitLabs.PyRevit.Runtime.IronPythonEngine.Execute(ScriptRuntime& runtime)

pyRevit Env Report:

==> Registered Clones (full git repos)
==> Registered Clones (deployed from archive/image)
master | Deploy: "basepublic" | Branch: "master" | Version: "4.8.2" | Path: "C:\Users\rob.cross\AppData\Roaming\pyRevit-Master"
==> Attachments
master | Product: "Autodesk Revit 2021" | Engine: 277 | Path: "C:\Users\rob.cross\AppData\Roaming\pyRevit-Master" | Manifest: "C:\Users\rob.cross\AppData\Roaming\Autodesk\Revit\Addins\2021\pyRevit.addin"
master | Product: "Autodesk Revit 2020" | Engine: 277 | Path: "C:\Users\rob.cross\AppData\Roaming\pyRevit-Master" | Manifest: "C:\Users\rob.cross\AppData\Roaming\Autodesk\Revit\Addins\2020\pyRevit.addin"
master | Product: "2019.2.2 Hotfix" | Engine: 277 | Path: "C:\Users\rob.cross\AppData\Roaming\pyRevit-Master" | Manifest: "C:\Users\rob.cross\AppData\Roaming\Autodesk\Revit\Addins\2019\pyRevit.addin"
master | Product: "2018.3.3 Security Fix" | Engine: 277 | Path: "C:\Users\rob.cross\AppData\Roaming\pyRevit-Master" | Manifest: "C:\Users\rob.cross\AppData\Roaming\Autodesk\Revit\Addins\2018\pyRevit.addin"
master | Product: "2017.2.5 Security Fix" | Engine: 277 | Path: "C:\Users\rob.cross\AppData\Roaming\pyRevit-Master" | Manifest: "C:\Users\rob.cross\AppData\Roaming\Autodesk\Revit\Addins\2017\pyRevit.addin"
master | Product: "2016.1.9 Security Fix" | Engine: 277 | Path: "C:\Users\rob.cross\AppData\Roaming\pyRevit-Master" | Manifest: "C:\Users\rob.cross\AppData\Roaming\Autodesk\Revit\Addins\2016\pyRevit.addin"
master | Product: "2015 Release 2 (Subscription only release)" | Engine: 277 | Path: "C:\Users\rob.cross\AppData\Roaming\pyRevit-Master" | Manifest: "C:\Users\rob.cross\AppData\Roaming\Autodesk\Revit\Addins\2015\pyRevit.addin"
master | Product: "2014 Update Release 3" | Engine: 277 | Path: "C:\Users\rob.cross\AppData\Roaming\pyRevit-Master" | Manifest: "C:\Users\rob.cross\AppData\Roaming\Autodesk\Revit\Addins\2014\pyRevit.addin"
==> Installed Extensions
==> Default Extension Search Path
C:\Users\rob.cross\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
J:\Revit Plug-ins\pyRevit\pyL_R-master
==> Extension Sources - Default
https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
Autodesk Revit 2021 | Version: 21.0.0.383 | Build: 20200220_1100(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021"
Autodesk Revit 2020 | Version: 20.2.20.31 | Build: 20200426_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2020"
2019.2.2 Hotfix | Version: 19.2.20.24 | Build: 20190808_0900(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2019"
2018.3.3 Security Fix | Version: 18.3.3.18 | Build: 20190510_1515(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2018"
2017.2.5 Security Fix | Version: 17.0.1169.0 | Build: 20190508_0315(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2017"
2016.1.9 Security Fix | Version: 16.0.1218.0 | Build: 20190508_0715(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2016"
2015 Release 2 (Subscription only release) | Version: 15.0.1103.0 | Build: 20140905_0730(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2015"
2014 Update Release 3 | Version: 13.11.4 | Build: 20140709_2115(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2014"
==> Running Revit Instances
PID: 50332 | 2019.2.2 Hotfix | Version: 19.2.20.24 | Build: 20190808_0900(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2019"
==> User Environment
Microsoft Windows 10 [Version 10.0.18363]
Executing User: COADY\rob.cross
Active User:
Admin Access: No
%APPDATA%: "C:\Users\rob.cross\AppData\Roaming"
Latest Installed .Net Framework: 4.8
No .Net Target Packs are installed.
No .Ne-Core Target Packs are installed.
pyRevit CLI 4.8.2.0
@eirannejad
Copy link
Collaborator

eirannejad commented Sep 3, 2020

Change line 188 to with revit.Transaction("Colorize Group Type"): for now. I have fixed this in the code for the next release. Thanks!

eirannejad added a commit that referenced this issue Sep 3, 2020
eirannejad added a commit that referenced this issue Sep 3, 2020
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