GithubHelp home page GithubHelp logo

dynamosamples's Introduction

Build

Image

Dynamo Samples

A collection of samples demonstrating how to develop libraries for Dynamo.

These samples make use of the Dynamo NuGet packages. NuGet should take care of restoring these packages if they are not available on your system at build time.

Building the Samples

Requirements

  • Visual Studio 2022
  • .NET8

Instructions

  • Clone the repository.
  • Choose a branch:
    • The master branch of Dynamo Samples corresponds to the master branch of Dynamo. To build against a specific version, choose that version's branch or tag. i.e. 0.8.0, 0.9.0, etc.
  • Open DynamoSamples.sln with Visual Studio.
  • Build using the Debug/Any CPU configuration.
  • The dynamo_package folder at the root of the repository will now have the built libraries. The Dynamo Samples folder in that directory can be copied directly to your Dynamo packages directory:C:\Users\<you>\AppData\Roaming\Dynamo Core\<version>\packages.
  • To install the sample view extension the SampleViewExtension\bin\debug folder (or release) should contain
    • SampleViewExtension.dll which should be copied to your root Dynamo build location
    • SampleViewExtension_ViewExtensionDefinition which should be copied to the viewExtensions folder inside your root Dynamo build location
  • Run Dynamo. You should find SampleLibraryUI and SampleLibraryZeroTouch categories in your library and the View tab inside of Dynamo should now contain Show View Extension Sample Window.

dynamosamples's People

Contributors

alfarok avatar aparajit-pratap avatar avidit avatar dependabot[bot] avatar johnpierson avatar mjkkirschner avatar mmisol avatar pinzart90 avatar qilongtang avatar rk-lakshmanan avatar sharadkjaiswal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynamosamples's Issues

DynamoSamples uses a different version of NUnit compared to Dynamo (Dynamo.All)

Windows 10 (x64)
Visual Studio 2017 (15.6.3)
NUnit VS Adapter 2.1.1.0
Revit 2018 installed (for ASM libraries)

At the time of writing, the master branch of Dynamo is using nunit.framework.dll version 2.6.2.12296.

However, the master branch of DynamoSamples (in the sample library tests) is referencing the NUnit package version 2.6.3.

Due to this versioning difference, running DynamoSamples/SampleLibraryTests will result in a FileLoadException from Visual Studio's NUnit 2.1.1.0 test runner.

image

To resolve this issue, ensure that DynamoSamples copies out the nunit.framework.dll v2.6.3 into the Dynamo binary folder (overwriting Dynamo's v.2.6.2)

image

This whole issue of NUnit assembly resolution might have been specific to my (possibly incorrectly configured) build DynamoSamples and Dynamo environment. However, I thought I would share this problem, with the hope that it can save frustration for anyone else in the future.

Samples not working in Dynamo Sandbox correctly...

Hi,

I'm looking to get going with the examples in this repo, but I am running into errors. I'm specifically interested in View Extensions, but when I compile and copy into the Dynamo Root folder, the View Extension example doesn't seem to work and there are a few hangups on some other nodes.

Any help would be greatly appreciated...

I'm using Dynamo 1.3, windows 10 and testing in Dynamo Sandbox, building in VS 2017 community and copied the latest Master from here.

image

Thanks in advance,
D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.