Git Product home page Git Product logo

rhinocommontemplatepackage's People

Contributors

piac avatar sbaer avatar maxsu avatar

Stargazers

 avatar Abhishek Shinde avatar Mike A. avatar  avatar Ivelin Peychev avatar Junichiro Horikawa avatar Lars van Vianen avatar Brian Ringley avatar Patrick Drewello avatar  avatar

Watchers

Will Pearson avatar  avatar  avatar David Rutten avatar Bob McNeel avatar Marlin Prowell avatar Matthew Sorensen avatar Pascal Golay avatar James Cloos avatar Dale Fugier avatar Scott Davidson avatar John Morse avatar Luis E. Fraguada avatar Gijs avatar Menno Deij - van Rijswijk avatar Ivelin Peychev avatar Frank Fralick avatar Lowell Walmsley avatar Morteza Karimi avatar Dan Rigdon-Bel avatar Cécile Lamborot avatar Jeff LaSor avatar Mikolaj Jarski avatar  avatar  avatar  avatar Jessesn avatar Luna M avatar Ehsan Iran-Nejad avatar  avatar  avatar Greg Arden avatar Trav avatar John Croudy avatar  avatar Bozo avatar Andrés Jacobo avatar  avatar Lars Rivinius avatar  avatar  avatar K avatar Mathias Fuchs avatar Marika Almgren avatar  avatar Abhishek Shinde avatar Praneet Mathur avatar

rhinocommontemplatepackage's Issues

Confirm that Plugin Updating is Automatic

Hi @piac, @dbelcher

In @dbelcher's Your First Plugin with C# guide, it's recommended to reinstall the plugin each time we rename a command (see L108).

I'd like to update that line to reflect the current practice, which seems to be:

  1. We do need to manually install the plugin on first build + debug run
  2. During subsequent debug runs we don't need to reinstall the plugin after renaming commands

Before I do that, I just want to confirm that this is indeed the behavior. If so, which RhinoCommonTemplatePackage commit caused this? Was it caused by a Rhino update?

Thanks!

Remove unnecessary references

System.Data
System.Data.DataSetExtensions
System.Xml
System.Xml.Linq

all seem pretty unusual for standard RhinoCommon plug-ins. Let's remove those from the project references

Command class name vs. Command name (Lowell's)

All I really care about is the Command name, not the name of any class.
I can just change the string for the name.
(Lowell's feedback)

It seems we might want to tweak the wizard so that it would accept to have the same name of the plug-in. Later, We can change the command class name to something unique, if the name is already taken.

A little bit more work but will allow people to figure out just one name.

Add a line to AssemblyInfo

In order to make C# plug-in compatible with the Rhino Installer Engine, the "RhinoCommon templates for v5" might need a new line in the AssemblyInfo.cs:
[assembly: AssemblyInformationalVersion("2")]

Use automatic properties for the command/plug-in instances

The static properties that let you access the singleton instances of the command and plug-in classes should be written as automatic properties. Here's a sample

public class MyPlugIn : Rhino.PlugIns.PlugIn
{
  ///<summary>Gets the only instance of the MyPlugIn plug-in.</summary>
  public static MyPlugIn Instance { get; private set; }

  public MyPlugIn()
  {
    Instance = this;
  }

  // You can override methods here to change the plug-in behavior on
  // loading and shut down, add options pages to the Rhino _Option command
  // and mantain plug-in wide options in a document.
}

Update for VS 2019

Rhino Templates cannot currently be loaded into VS 2019. I suspect this is owing to a flag in the manifest file rather than any limitation in VS 2019.

Please update accordingly.

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.