Extracting Package names if used in a .dyn

Hi

Does any body know if theres a Node out there capable of extracting package names if nodes from the package is used in the .dyn?

Thanks in advance

Jesper

Hi Erik

A picture is worth a thousand words, below picture better explains what i was looking for.

 

Hi Jesper,

Try this.

You can definitely do it for custom nodes (meaning *.dyf files) but I don’t think it’s possible for zero touch nodes. The below is something I cobbled up during lunch break:

This is an extremely inefficient method because it involves managing huge amounts of strings. It’d probably be a lot better if you can replace some of the string operations with proper XML parsing.

Edit:

Here’s a slightly optimized version with Lunchbox’s “DataSets.GetXMLNode” node:

1 Like

Briliant Dimitar! this is exact the data extraction I was looking for.

Thanks!!

 

Hi All

The final result with room for improvement like always :wink:

DynTableOfContentExcel

One step closer to automatically create a table of content for my .dyn library. :slight_smile: