Skip to content

Instantly share code, notes, and snippets.

View yiskang's full-sized avatar

Eason Kang yiskang

View GitHub Profile
@yiskang
yiskang / XcodePluginMigration
Created October 24, 2015 14:23
Add Xcode UUID to plugins' Info.plist to support newer Xcode
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
// (C) Copyright 2019 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software
// in object code form for any purpose and without fee is hereby
// granted, provided that the above copyright notice appears in
// all copies and that both that copyright notice and the limited
// warranty and restricted rights notice below appear in all
// supporting documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
@yiskang
yiskang / CmdSectionAnnotationInViews.cs
Created May 31, 2019 03:21
Find view plans where the section annotations appear in Revit
// (C) Copyright 2019 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software
// in object code form for any purpose and without fee is hereby
// granted, provided that the above copyright notice appears in
// all copies and that both that copyright notice and the limited
// warranty and restricted rights notice below appear in all
// supporting documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
@yiskang
yiskang / CmdSectionAnnotationInViewsV2.cs
Created June 13, 2019 03:16
Find view plans where the section annotations appear in Revit
// (C) Copyright 2019 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software
// in object code form for any purpose and without fee is hereby
// granted, provided that the above copyright notice appears in
// all copies and that both that copyright notice and the limited
// warranty and restricted rights notice below appear in all
// supporting documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
@yiskang
yiskang / index.html
Created September 25, 2019 01:35
CSS replacement of marquee example
<!DOCTYPE html>
<html>
<head>
<title>CSS replacement of marquee example</title>
<meta charset="utf-8" content="ref:https://www.sololearn.com/Discuss/905300/what-is-the-replacement-of-marquee-in-html5">
<style type="text/css">
.marquee {
width: 300px;
line-height: 50px;
@yiskang
yiskang / index.html
Last active August 23, 2023 06:56
Autodesk Forge Viewer's AggregatedView demo
<!DOCTYPE html>
<html>
<head>
<title>Multiple 3D Viewer - Autodesk Forge AggregatedView</title>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<!-- The Viewer CSS -->
<link rel="stylesheet" href="https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/style.min.css" type="text/css">
@yiskang
yiskang / OSS-Download.html
Last active January 15, 2020 10:15
Demo how to download Forge OSS object with jQuery
<!DOCTYPE html>
<html>
<head>
<title>Forge OSS object download demo</title>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<!-- The Viewer CSS -->
<style>
@yiskang
yiskang / separateHostOrLinkedElements.js
Created July 3, 2020 08:22
Forge Viewer function to separate host or linked elements in the composite Revit model
function getLeafNodes( model, dbIds ) {
return new Promise( ( resolve, reject ) => {
try {
const instanceTree = model.getData().instanceTree
dbIds = dbIds || instanceTree.getRootId();
@yiskang
yiskang / CustomPropertyPanel.js
Created August 8, 2021 13:55
Autodesk Forge Viewer CustomPropertyPanel for v7.x
/////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Forge Partner Development
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
@yiskang
yiskang / RoomLocatorExtension.js
Last active December 2, 2021 07:30
Find the room where a Forge Viewer object located. (Revit)
/////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Forge Partner Development
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.