teocomi / HelloDynamo

Examples of custom Dynamo nodes
MIT License
23 stars 9 forks source link

Difference results on building your source code #2

Closed huythach closed 7 years ago

huythach commented 7 years ago

I built your source code, and imported to a Dynamo project, but result nodes are different from yours. Please see the attached file. dynamo_customnode

teocomi commented 7 years ago

Hi, it seems that you imported the nodes manually, you should instead let Dynamo load them as packages. I've updated the code just now to make it more clear. If you set the Start Action in Visual Studio, upon Debug it will automatically copy the dlls to the Dynamo Packages folder (using the Post Build Events), and it will then display correctly in Dynamo.

image

image

huythach commented 7 years ago

How did you set Post-build event? I also set Start Action as yours, then import HelloNodeModel.dll file to a Dynamo project, but the result is different. 2

teocomi commented 7 years ago

You don't need to manually import the dll, it's loaded automatically by Dynamo. Please refer to the images above which show how to set up the Post built event, alternatively pull the latest changes to this repo.