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
#pragma once | |
#include "frmconfiguration.h" | |
#include "frmparameter.h" | |
#include <ctype.h> | |
namespace AlibreOOConnect { | |
using namespace System; | |
using namespace System::ComponentModel; | |
using namespace System::Collections; |
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
from __future__ import division # This fixes division with integers. For example the 1 / 2 = 0.5 instead of 0 | |
import os # for working with file paths | |
import clr | |
import _winreg | |
from AlibreX import ADUnits, ADDrawingViewType, ADDetailingOption, ADViewOrientation, IAD2DPoint, IADTransformation | |
Win = Windows() | |
def InputChanged(Index, Value): |
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
https://help.alibre.com/articles/#!alibre-help-v27/wrap Pro | |
https://help.alibre.com/articles/#!alibre-help-v27/workspace-preferences-working-with-redlines Pro | |
https://help.alibre.com/articles/#!alibre-help-v27/workspace-preferences-menu-structure-toolbars Pro | |
https://help.alibre.com/articles/#!alibre-help-v27/workspace-preferences-menu-structure-custom-toolbars Pro | |
https://help.alibre.com/articles/#!alibre-help-v27/workspace-preferences-grid-snapping-to-the-grid Pro | |
https://help.alibre.com/articles/#!alibre-help-v27/workspace-preferences-grid-showing-or-hiding-the-grid Pro | |
https://help.alibre.com/articles/#!alibre-help-v27/workspace-preferences-grid-setting-the-grid Pro | |
https://help.alibre.com/articles/#!alibre-help-v27/workspace-preferences-about-split-views Pro | |
https://help.alibre.com/articles/#!alibre-help-v27/using-menus Pro | |
https://help.alibre.com/articles/#!alibre-help-v27/thread-data Pro |
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
Options.append(['Pattern 2D Sketch', WindowsInputTypes.Sketch, None]) | |
Options.append(['Number of Patterns', WindowsInputTypes.Integer, 10]) |
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
namespace FSharpPanelBuilder | |
open System | |
open System.Collections.Generic | |
open Autodesk.Revit | |
open Autodesk.Revit.UI | |
open Autodesk.Revit.Attributes | |
open Autodesk.Revit.DB | |
open Autodesk.Revit.UI.Selection |
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
namespace Tsunami.Server | |
open System | |
open System.IO | |
open System.Linq | |
open System.Net | |
open System.Net.Sockets | |
open System.Text | |
open System.Threading | |
open System.Runtime.Serialization |
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
// Based on the SDK Sampl GeometryCreation_BooleanOperations | |
// This is testing code. Many improvements can be made before use in real work | |
#r @"C:\Program Files\Autodesk\Revit 2016\RevitAPI.dll" | |
#r @"C:\Program Files\Autodesk\Revit 2016\RevitDBAPI.dll" | |
#r @"C:\Program Files\Autodesk\Revit 2016\RevitAPIUI.dll" | |
#r @"C:\Program Files\Mantis\Tsunami.IDEDesktop.dll" | |
open Autodesk.Revit | |
open Autodesk.Revit.UI |
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
using UnityEditor; | |
using UnityEngine; | |
using System.IO; | |
using System.Collections.Generic; | |
public class Scenes : EditorWindow | |
{ | |
[MenuItem("Window/Scenes...", false)] | |
public static void ShowWindow () | |
{ |
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
private void RunScript(Guid id, Color col, double pow, ref object A) | |
{ | |
Rhino.DocObjects.ObjRef obj = new Rhino.DocObjects.ObjRef(id); | |
Rhino.DocObjects.LightObject lobj = obj.Object() as Rhino.DocObjects.LightObject; | |
lobj.LightGeometry.Diffuse = col; | |
lobj.LightGeometry.Intensity = pow; | |
lobj.CommitChanges(); | |
} |
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
$(function () { | |
"use strict"; | |
// for better performance - to avoid searching in DOM | |
var content = $('#content'); | |
var input = $('#input'); | |
var status = $('#status'); | |
// my color assigned by the server | |
var myColor = false; |
NewerOlder