Skip to content

Instantly share code, notes, and snippets.

{
"psFormat": "table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}"
}
{
"psFormat": "table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}"
}
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
true_list = IN[0]
false_list = IN[1]
bool_list = IN[2]
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
#Determine if FamilyInstance is Mirrored by Yna_Db
#https://forum.dynamobim.com/t/group-is-mirrored-or-not/14588/33
OUT = [UnwrapElement(x).Mirrored for x in IN[0]]
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB impt *
clr.AddReference("RevitServices")
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
id = DesignOption.GetActiveDesignOptionId(doc)
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
list = IN[0]
replace = IN[1]
bool_list = IN[2]
@StudioLE
StudioLE / AutoCAD Setup.js
Last active December 5, 2024 11:04
AutoCAD Setup
// Display start tab and not a new drawing on Startup
// https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-open-AutoCAD-without-opening-Drawing1.html
Command: STARTUP
Value: 2
// Disable drawing thumbnails when hovering a tab
// https://forums.autodesk.com/t5/autocad-forum/how-to-turn-off-file-tab-hover-preview/m-p/6347588#M126228
Command: FILETABPREVIEW
Value: 0
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
test = IN[0]
true_list = IN[1]
false_list = IN[2]
b = brick;
footprint = Rectangle.ByWidthLength(b.Width, b.Length);
surface = Surface.ByPatch(footprint);
base = surface.Thicken(6/5, false);
p1 = [Imperative]
{
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configurations>Debug;Debug One;Release</Configurations>
</PropertyGroup>
<PropertyGroup>
<!-- Please remove the targets you don't need in order
to exclude Revit versions your add-in won't support
use the list below for matching Revit version with .NET target
2014 | net40