How to embed or link a generic family inside a custom node package?

I created a custom node package that will insert a simple 2d line generic family to the X-Z plane of a Revit document. The generic family needs to be loaded into the document before Dynamo runs the node. Is there any way I can embed the generic family inside the package? or make an external link to load the family? like, share the family from Google Drive?

Oh this just got interesting… you can bundle content with a package by putting it in the extras folder. However you can’t quickly identify where that will be stored outside of the base file… @Michael_Kirschner2 is there a way in the Dynamo core API to identify where a package is loaded from?

yes:
Add PackagePaths as Parameter of ExecutionSession by mjkkirschner · Pull Request #10836 · DynamoDS/Dynamo (github.com)

2 Likes

@Joseph_C_Lee what Dynamo version are you using?

1 Like

I need to check. The version I am using is not the latest one with Revit 19.

2021-04-10_10-45-25

2.0.3.8811

Might not work in that version based on the dates… I’ll give it a shot tomorrow in 2021 and 2.0.4 (the latest for Revit 2019 - you might want to upgrade by downloading the installer on DynamoBuilds.com).

1 Like

I will submit a ticket for software upgrade to IT department on Monday.

1 Like