Skip to content

Instantly share code, notes, and snippets.

View imAliAsad's full-sized avatar
:octocat:

Ali Asad imAliAsad

:octocat:
View GitHub Profile
@imAliAsad
imAliAsad / command.py
Last active November 22, 2018 10:52
Important commands for machine learning
p5 generate -b projectName
Use ServerName = (LocalDb)\MSSQLLocalDB
@imAliAsad
imAliAsad / GamepadFlycam.cs
Last active September 6, 2021 17:58
Use gamepad controller to fly free camera in gameview. This is the improved and customized script of Unity's ExtendedFlycam script
using System;
using UnityEngine;
using System.Collections;
public class GamepadFlycam : MonoBehaviour
{
public float cameraSensitivity = 90;
@imAliAsad
imAliAsad / App.cs
Created February 21, 2018 05:37
Create a button in a custom ribbon in Revit and add the functionality to enable/disable the revit addin button
class App : IExternalApplication
{
public static PushButton Pushbutton { get; set; }
public Result OnStartup(UIControlledApplication application)
{
OnButtonCreate(application);
return Result.Succeeded;
}
@imAliAsad
imAliAsad / ExtractFamilyParameterData.cs
Created January 21, 2018 08:01
Extract or read Revit family parameter data and convert its internal ( Imperial ) unit into the metrics unit
/// <summary>
/// Extract all family type properties data
/// </summary>
/// <param name="app"></param>
private MultiValueDictionary<string, Tuple<string, string>> ExtractFamilyParameterInfo(Application app)
{
//Open Revit Family File in a separate document
var doc = app.OpenDocumentFile(FamilyPath);
@imAliAsad
imAliAsad / FParameterData.cs
Last active February 8, 2024 15:13
Read and export all parameter data of a family
public class FParameterData
{
public string Family { get; set; }
public string BuiltinParameter { get; set; }
public string ParameterType { get; set; }
public string ParameterName { get; set; }
public string ParameterValue { get; set; }
public string ParameterGroup { get; set; }
public string BuiltinGroup { get; set; }