pyrevitlabs / pyRevit

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

context 3d view issue #1181

Closed thumDer closed 3 years ago

thumDer commented 3 years ago

Describe the bug

It seems that active-3d-view context not working as expected. Once it is put in the bundle file the button will never be active, not even on a 3d view. If I remove the context from the bundle file and reload pyRevit the ExternalCommand for the button breaks. Please see attached video

Screenshots https://user-images.githubusercontent.com/54556708/109784409-58216480-7c0b-11eb-8669-792c3f963a31.mp4

Desktop:


==> Registered Clones (full git repos)
dev | Branch: "develop" | Version: "4.8.5:d0ec4d4" | Path: "C:\pyRevit\git\dev"
tabcolor | Branch: "dev/bettertabcolor" | Version: "4.8.5:a32a459" | Path: "C:\pyRevit\git\tabcolor\tabcolor"
==> Registered Clones (deployed from archive/image)
main | Deploy: "base" | Branch: "master" | Version: "4.8.5" | Path: "C:\pyRevit\main"
==> Attachments
main | Product: "Autodesk Revit 2021" | Engine: IPY277 (277) | Path: "C:\pyRevit\main"
main | Product: "2020.2.2 (Full Install)" | Engine: IPY277 (277) | Path: "C:\pyRevit\main"
main | Product: "2019.2.1" | Engine: IPY277 (277) | Path: "C:\pyRevit\main"
main | Product: "2018.3.3 Security Fix" | Engine: IPY277 (277) | Path: "C:\pyRevit\main"
==> Installed Extensions
pyNexTools | Type: Unknown | Repo: "https://gitlab.com/tderi/pynextools" | Installed: "C:\_stuffz\pyRevit\Extensions\pyNexTools.extension"
==> Default Extension Search Path
C:\Users\tamas.deri\AppData\Roaming\pyRevit\Extensions
==> Extension Search Paths
C:\_stuffz\pyRevit\Extensions
==> Extension Sources - Default
https://github.com/eirannejad/pyRevit/raw/master/extensions/extensions.json
==> Extension Sources - Additional
==> Installed Revits
Autodesk Revit 2021 | Version: 21.1.20.44 | Build: 20201109_1530(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2021\"
2020.2.2 (Full Install) | Version: 20.2.11.3 | Build: 20200206_0915(x64) | Language: 1033 | Path: "C:\Program Files\Autodesk\Revit 2020\"
2019.2.1 | Version: 19.2.10.7 | Build: 20190225_1515(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\"
==> Running Revit Instances
PID: 31004 | 2019.2.1 | Version: 19.2.10.7 | Build: 20190225_1515(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2019"
PID: 27756 | 2019.2.1 | Version: 19.2.10.7 | Build: 20190225_1515(x64) | Language: 0 | Path: "C:\Program Files\Autodesk\Revit 2019"
==> User Environment
Microsoft Windows 10 [Version 10.0.19041]
Executing User: IN-EX\tamas.deri
Active User: IN-EX\tamas.deri
Admin Access: Yes
%APPDATA%: "C:\Users\tamas.deri\AppData\Roaming"
Latest Installed .Net Framework: 4.8
Installed .Net Target Packs: v3.5 v4.0 v4.5 v4.5.1 v4.5.2 v4.6 v4.6.1 v4.7 v4.7.1 v4.7.2 v4.X
Installed .Net-Core Target Packs: v3.1.401
pyRevit CLI 4.8.5.0```
eirannejad commented 3 years ago

I tested and don't see any issues. Are you putting this in your context file?

context: active-3d-view
eirannejad commented 3 years ago

Completely revamped the context filter related to this conversation

Fixed and will be published with next release