Skip to content

DYN-9927: Template files#16861

Merged
johnpierson merged 7 commits intoDynamoDS:masterfrom
Chloepeg:DYN-9927-Templates
Feb 12, 2026
Merged

DYN-9927: Template files#16861
johnpierson merged 7 commits intoDynamoDS:masterfrom
Chloepeg:DYN-9927-Templates

Conversation

@Chloepeg
Copy link
Copy Markdown
Contributor

@Chloepeg Chloepeg commented Jan 29, 2026

Purpose

This pr addresses Jira task 9927 https://jira.autodesk.com/browse/DYN-9927
We have created 3 different templates for Dynamo.
A guide about how to create a standard Dynamo script
A workflow template for import and export workflow
A custom node and its guide.

How_to_create_a_dynamo_file_Thumbnail Custom_node_Thumbnail_1 Dynamo_Workflow_Thumbnail_1

Declarations

Check these if you believe they are true

Release Notes

-3 Dynamo template files
-1 Dynamo custom node file
-Ressource files for the templates

Reviewers

@johnpierson
@jnealb
@zeusongit

FYIs

@achintyabhat

-3 Dynamo template files
- 1 Dynamo custom node file
- Ressource files for the templates
@github-actions github-actions Bot changed the title Template files DYN-9927: Template files Jan 29, 2026
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-9927

@QilongTang QilongTang requested review from a team, Copilot and johnpierson January 29, 2026 23:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces template files for Dynamo to help users learn standard workflows and custom node creation. The templates include example files for geometry and CSV import/export, a custom node for curve validation, and supporting resource files.

Changes:

  • Added three Dynamo template files demonstrating standard workflows
  • Added a custom node (Curve_Validate.dyf) with comprehensive curve validation logic
  • Added resource files (SAT geometry and CSV examples) to support the templates

Reviewed changes

Copilot reviewed 5 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
doc/distrib/templates/Geometry_Import_Example.sat SAT geometry file for import workflow demonstration
doc/distrib/templates/Geometry_Export_Example.sat SAT geometry file for export workflow demonstration
doc/distrib/templates/Curve_Validate.dyf Custom node implementing curve validation with null checks, type validation, length tolerance, and closure rules
doc/distrib/templates/CSV_Import_Example.csv CSV file with example data for import workflow
doc/distrib/templates/CSV_Export_Example Text file with example export data

Comment thread doc/distrib/templates/Curve_Validate.dyf Outdated
Comment thread doc/distrib/templates/Curve_Validate.dyf Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Member

@johnpierson johnpierson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look really nice. I have comments inline below on each file (some repeated).

But generally, we want to:

  • Avoid the phrase script and use graph throughout. Unless we are referring to a python script or similar.
  • Use Title casing throughout in headings.
  • Remove the "Legal Notice" code block as this is not present on any other samples that are distributed. At this time it reads "This code may not be published or duplicated" which is the complete opposite of what a template is to be used for.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Graph Thumbnail

Export so it is a node only view. Examples are in the samples folder.
Image

Nomenclature:

  • Avoid use of word script throughout and change to "graph" in all occurences.

Title Case

  • For proper titles, let's use Title Case Example "Script Name" instead of "Script name"

Template File Naming

Lets name Templates with a prefix so they sort in the browser.
Eg. Template_00_HowToCreateADynamoGraph

CamelCase is used throughout the samples, so lets stick with that instead of the _

Script Information change to "Graph Information"

Let's also switch to using notes instead of open-ended code blocks. This results in outputs that exist in the graph and are unused, which is not a best practice. Example below:

Image

2. Node Naming Standards

Change the "Typical do rules" and "Typical do not rules" to this:

Image

`
/*
Do:
Rename key nodes only (inputs, rules, outputs, decision logic)
Use notes to add context to your script
Use capitalisation consistently (e.g. Title Case or camelCase, not mixed)
*/

/*
Do Not:
Rename every node in the graph
Leave important nodes with default names if they affect logic
Use vague names like "Data", "Stuff", "Fix", "Test"
*/;
`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Graph Thumbnail

Export so it is a node only view. Examples are in the samples folder.
Image

Nomenclature:

  • Avoid use of word script throughout and change to "graph" in all occurences.

Title Case

  • For proper titles, let's use Title Case Example "Script Name" instead of "Script name"

Template File Naming

Lets name Templates with a prefix so they sort in the browser.
Eg. Template_01_ImportExportWorkflow

CamelCase is used throughout the samples, so let's stick with that instead of the _

Script Information change to "Graph Information"

Let's also switch to using notes instead of open-ended code blocks. This results in outputs that exist in the graph and are unused, which is not a best practice. Example below:

Image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Graph Thumbnail

Export so it is a node only view. Examples are in the samples folder.
Image

Graph Bounds

There is a stray note in the way bottom left making the graph quite large.
Image

Nomenclature:

  • Avoid use of word script throughout and change to "graph" in all occurences.

Title Case

  • For proper titles, let's use Title Case Example "Script Name" instead of "Script name"

Template File Naming

Lets name Templates with a prefix so they sort in the browser.
Eg. Template_03_CustomNodes

CamelCase is used throughout the samples, so let's stick with that instead of the _

Script Information change to "Graph Information"

Let's also switch to using notes instead of open-ended code blocks. This results in outputs that exist in the graph and are unused, which is not a best practice. Example below:

Image

Chloepeg and others added 4 commits February 5, 2026 16:59
Update Dynamo template files and relocate to correct folders.

.dyn template files are now in the en-US folder, with additional resources and .dyf file moved to the data folder.
@johnpierson johnpierson self-requested a review February 11, 2026 16:09
Copy link
Copy Markdown
Member

@johnpierson johnpierson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i believe we all are set on this

@johnpierson johnpierson merged commit 8e5dae2 into DynamoDS:master Feb 12, 2026
22 checks passed
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants