From cb6837b0acb2134bc4dab459101bc7043390b38f Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Wed, 7 Jul 2021 16:10:47 +1000 Subject: [PATCH] Add Windows install docs for BlenderBIM for devs --- .../docs/blenderbim/installation.rst | 22 +++++++++++++++++++ .../docs/ifcsverchok/installation.rst | 2 ++ 2 files changed, 24 insertions(+) diff --git a/src/blenderbim/docs/blenderbim/installation.rst b/src/blenderbim/docs/blenderbim/installation.rst index d7bd0588c3..0e218f7cd4 100644 --- a/src/blenderbim/docs/blenderbim/installation.rst +++ b/src/blenderbim/docs/blenderbim/installation.rst @@ -198,6 +198,28 @@ changes, you'll need to fix your setup manually. But this is relatively rare. $ ln -s src/ifcopenshell-python/ifcopenshell/api /path/to/blender/2.XX/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/api $ ln -s src/ifcopenshell-python/ifcopenshell/util /path/to/blender/2.XX/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/util +On Windows: + +:: + + $ git clone https://github.com/IfcOpenShell/IfcOpenShell.git + $ cd IfcOpenShell + + # Remove the Blender add-on Python code + $ rd /S /Q "\path\to\blender\2.XX\scripts\addons\blenderbim\bim\" + + # Replace them with links to the Git repository + $ mklink /D "\path\to\blender\2.XX\scripts\addons\blenderbim\bim" "src\blenderbim\blenderbim\bim" + + # Remove the IfcOpenShell dependency Python code + $ rd \S \Q "\path\to\blender\2.XX\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\api" + $ rd \S \Q "\path\to\blender\2.XX\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\util" + + # Replace them with links to the Git repository + $ mklink \D "\path\to\blender\2.XX\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\api" "src\ifcopenshell-python\ifcopenshell\api" + $ mklink \D "\path\to\blender\2.XX\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\util" "src\ifcopenshell-python\ifcopenshell\util" + + After you modify your code in the Git repository, you will need to restart Blender for the changes to take effect. In ``Edit > Preferences > Add-ons`` you will see that the version number of BlenderBIM has changed to ``0.0.999999``, diff --git a/src/blenderbim/docs/ifcsverchok/installation.rst b/src/blenderbim/docs/ifcsverchok/installation.rst index 0516d8b55c..c1db44bdf3 100644 --- a/src/blenderbim/docs/ifcsverchok/installation.rst +++ b/src/blenderbim/docs/ifcsverchok/installation.rst @@ -80,7 +80,9 @@ repository, and see the changes in our Blender installation. $ ln -s src/ifcsverchok /path/to/blender/2.XX/scripts/addons/ifcsverchok On Windows: + :: + $ git clone https://github.com/IfcOpenShell/IfcOpenShell.git $ cd IfcOpenShell