This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Copyright(c) 2015, Konrad Sobon | |
# @arch_laboratory, http://archi-lab.net | |
import clr | |
clr.AddReference('ProtoGeometry') | |
from Autodesk.DesignScript.Geometry import * | |
# Import RevitAPI | |
clr.AddReference("RevitAPI") | |
import Autodesk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Copyright(c) 2015, Konrad K Sobon | |
# @arch_laboratory, http://archi-lab.net | |
import clr | |
clr.AddReference('ProtoGeometry') | |
from Autodesk.DesignScript.Geometry import * | |
# Import Element wrapper extension methods | |
clr.AddReference("RevitNodes") | |
import Revit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RevitAddIns> | |
<AddIn Type="Command"> | |
<Assembly>TotalLength.dll</Assembly> | |
<ClientId>280BB447-F630-48B0-99BE-6A776AC7B5C8</ClientId> | |
<FullClassName>TotalLength.CurveTotalLength</FullClassName> | |
<Text>MeasureLength</Text> | |
<VendorId>Konrad K Sobon</VendorId> | |
<VisibilityMode>AlwaysVisible</VisibilityMode> | |
</AddIn> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright(c) 2015, Konrad K Sobon | |
# @arch_laboratory, http://archi-lab.net | |
# Import Element wrapper extension methods | |
import clr | |
clr.AddReference("RevitNodes") | |
import Revit | |
clr.ImportExtensions(Revit.Elements) | |
# Import DocumentManager and TransactionManager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright(c) 2015, Konrad K Sobon | |
# @arch_laboratory, http://archi-lab.net | |
# Import Element wrapper extension methods | |
import clr | |
clr.AddReference("RevitNodes") | |
import Revit | |
clr.ImportExtensions(Revit.Elements) | |
# Import RevitAPI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright(c) 2015, Konrad K Sobon | |
# @arch_laboratory, http://archi-lab.net | |
# Import Element wrapper extension methods | |
import clr | |
clr.AddReference("RevitNodes") | |
import Revit | |
clr.ImportExtensions(Revit.Elements) | |
# Import RevitAPI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Rhino as rc | |
from scriptcontext import doc | |
def GetColor(inStr): | |
splitStr = inStr.split(',') | |
if len(splitStr) != 1: | |
r = int(splitStr[0]) | |
g = int(splitStr[1]) | |
b = int(splitStr[2]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"_id" : ObjectId("59284763fa9bb6d845fefc60"), | |
"itemCount" : [ | |
{ | |
"_id" : ObjectId("59284786fa9bb6d845fefc62"), | |
"worksets" : [ | |
{ | |
"name" : "Workset1", | |
"count" : 5354, | |
"_id" : ObjectId("59284786fa9bb6d845fefc71") |