Skip to content

Commit cbe2580

Browse files
committed
COREUPDATE: pyRevit 4.5
2 parents 9c6ae17 + e7ce9c9 commit cbe2580

File tree

4,324 files changed

+287398
-234816
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,324 files changed

+287398
-234816
lines changed

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,28 @@ lib/*
1212
!lib/README.md
1313
!lib/enum
1414
!lib/customcollections
15+
!lib/requests
16+
!lib/urllib3
1517

1618
# ignore pyCharm workspace settings
1719
.idea/workspace.xml
1820

21+
# ignore visual studio files
22+
.vs\*
23+
obj\*
24+
pyrevitlib/pyrevit/loader/addin/277/Source/\.vs/
25+
pyrevitlib/pyrevit/loader/addin/277/Source/pyRevitLoader/bin/
26+
pyrevitlib/pyrevit/loader/addin/277/Source/pyRevitLoader/obj/
27+
pyrevitlib/pyrevit/loader/addin/272/Source/\.vs/
28+
pyrevitlib/pyrevit/loader/addin/272/Source/pyRevitLoader/bin/
29+
pyrevitlib/pyrevit/loader/addin/272/Source/pyRevitLoader/obj/
30+
pyrevitlib/pyrevit/loader/basetypes/pyRevitBaseTypes/\.vs/
31+
pyrevitlib/pyrevit/loader/basetypes/pyRevitBaseTypes/pyRevitBaseTypes/bin/
32+
pyrevitlib/pyrevit/loader/basetypes/pyRevitBaseTypes/pyRevitBaseTypes/obj/
33+
1934
# ignore sphinx build files
2035
docs/_*
36+
!docs/_static
2137

2238
# ignore release files
2339
release/*.exe

.idea/codeStyleSettings.xml

-9
This file was deleted.

.idea/dictionaries/ehsanirannejad.xml

-3
This file was deleted.

.idea/inspectionProfiles/profiles_settings.xml

-9
This file was deleted.

.idea/misc.xml

-26
This file was deleted.

.idea/modules.xml

-8
This file was deleted.

.idea/pyRevit.iml

-23
This file was deleted.

.idea/vcs.xml

-6
This file was deleted.

dev/move to rpw.txt

-8
This file was deleted.

dev/toolswithtutors.txt

-20
This file was deleted.

docs/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sphinx-build -b html docs docs/_builds

docs/_static/css/custom.css

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
.wy-nav-content {
2+
max-width: none;
3+
}
4+
5+
.document {
6+
max-width: 800px;
7+
}
8+
9+
a {
10+
color: #23303d;
11+
}
12+
13+
a:hover,
14+
a:active {
15+
color: #f39c12;
16+
}
17+
18+
a:visited {
19+
color: #23303d;
20+
}
21+
22+
.icon.icon-home {
23+
width: 200px;
24+
}
25+
26+
.version {
27+
display:none;
28+
}
29+
30+
.s1, .sd {
31+
color: #f39c12;
32+
}
33+
34+
.admonition.note {
35+
background-color: #23303d;
36+
color: white;
37+
}
38+
39+
.rst-content .note .admonition-title {
40+
background-color: #f39c12;
41+
color: white;
42+
}
43+
44+
.rst-content dl:not(.docutils) dt {
45+
display: inline-block;
46+
margin: 6px 0;
47+
font-size: 90%;
48+
line-height: normal;
49+
background: #23303d;
50+
color: #f39c12;
51+
border-top: solid 0px;
52+
padding: 6px;
53+
position: relative;
54+
}
55+
56+
.rst-content dl:not(.docutils) dt code.descclassname {
57+
color: #c1c1c1;
58+
}
59+
60+
.rst-content dl:not(.docutils) dt code.descname {
61+
color: white;
62+
}
63+
64+
.rst-content dl.method dt code.descname,
65+
.rst-content dl.staticmethod dt code.descname,
66+
.rst-content dl.attribute dt code.descname {
67+
color: #23303d;
68+
}
69+
70+
.rst-content dl:not(.docutils) dt .headerlink {
71+
color: white;
72+
}
73+
74+
.wy-nav-side {
75+
background: #23303d;
76+
}
77+
78+
.wy-side-nav-search {
79+
background-color: #f39c12;
80+
}
81+
82+
.wy-side-nav-search input[type=text] {
83+
border-color: white;
84+
}
85+
86+
.wy-side-nav-search>a,
87+
.wy-side-nav-search .wy-dropdown>a,
88+
.wy-menu-vertical a:hover {
89+
color: #fff !important;
90+
}
91+
92+
.wy-menu-vertical a:active {
93+
background-color: #f39c12;
94+
}
95+
96+
.wy-menu-vertical a:visited {
97+
color: #b3b3b3;
98+
}
99+
100+
.wy-nav-top {
101+
background: #23303d;
102+
}
103+
104+
.wy-nav-top a {
105+
color: white;
106+
}
107+
108+
.pre {
109+
font-size: 13px;
110+
}
25.7 KB
Loading

docs/_static/images/bundle.png

25.6 KB
Loading

docs/_static/images/bundleicon.png

259 Bytes
Loading

docs/_static/images/charts1.png

23.4 KB
Loading

docs/_static/images/charts2.png

8.87 KB
Loading

docs/_static/images/charts3.png

17.9 KB
Loading

docs/_static/images/charts4.png

54.2 KB
Loading

docs/_static/images/commandbundle.png

21.3 KB
Loading
11.7 KB
Loading

docs/_static/images/extension.png

55 KB
Loading

docs/_static/images/groupbundle1.png

42.2 KB
Loading

docs/commandbutton.rst

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
Keyboard Shortcuts
2+
==================
3+
4+
.. _shiftclick:
5+
6+
Shift-Click: Alternate/Config Script
7+
------------------------------------
8+
9+
Each pyRevit command bundle can contain two scripts:
10+
11+
``*script.py`` is the main script.
12+
13+
``*config.py`` is the Alternale/Config script.
14+
15+
SHIFT-clicking on a ui button will run the alternate/config script.
16+
This alternate script is generally used to configure the main tool.
17+
Try Shift clicking on the Match tool in pyRevit > Modify panel and see the configuration window.
18+
Then try Shift clicking on the Settings tool in pyRevit panel slide-out and see what it does.
19+
20+
If you don't define the configuration script, you can check the value of ``__shiftclick__``
21+
in your scripts to change script behaviour. This is the method that the
22+
Settings command is using to open the config file location in explorer:
23+
24+
.. code-block:: python
25+
26+
if __shiftclick__:
27+
do_task_A()
28+
else:
29+
do_task_B()
30+
31+
32+
33+
Ctrl-Click: Debug Mode
34+
----------------------
35+
36+
CTRL-clicking on a ui button will run the script in DEBUG mode and will allow the script to print all debug messages.
37+
You can check the value of ``__forceddebugmode__`` variable to see if the script is running in Debug mode to change script behaviour if neccessary.
38+
39+
.. code-block:: python
40+
41+
if __forceddebugmode__:
42+
do_task_A()
43+
else:
44+
do_task_B()
45+
46+
47+
48+
Alt-Click: Show Script file in Explorer
49+
---------------------------------------
50+
51+
ALT-clicking on a ui button will show the associated script file in windows explorer.
52+
53+
54+
55+
Ctrl-Shift-Alt-Click: Reload Engine
56+
-----------------------------------
57+
58+
If you're using pyRevit Rocket mode, this keyboard combination will force pyRevit
59+
to discard the cached engine for this command and use a new fresh engine. If you are
60+
developing scripts for pyRevit and using external modules, you'll need to use this
61+
keyboard combination after changes to the imported module source codes. Since the
62+
modules are already imported in the cached engine, you'd need a new fresh engine
63+
to reload the modules.
64+
65+
66+
67+
Shift-Win-Click: Show Script file in Explorer
68+
---------------------------------------------
69+
70+
Shows the context menu for the pyRevit command. See image below:

0 commit comments

Comments
 (0)