Get the current workspace GUID of the node

Hi I imagine this is something very simple but I cannot find the resource anywhere.

I want to find the current workspace GUID of the current node. That means whenever the user drop down the node, I can read the GUID of the workspace it is in.

This is the closest reference I got so far. However I cannot find Dynamo.Applications.DynamoRevit() and not sure which nuget package/dll can I use to call out this method.

Is there any other alternative way I can find the current DynamoModel instance that I’m in?

Hello,
why you don’t use directly the current workspace to get the Guid?

Hi the link I posted above is using currentworkspace. I use DynamoRevitDS to call this out.