Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
in reply to: Jef_E

Hi Jef_E

I found something close in what I'm looking in this post.

Can you help me in figuring out how to extract the Category Name from a Library?

I have this code but I just stuck thinking too much

Thank you in advance if you can help me on this matter

 

Dim oPartDoc = ThisDoc.Document
        
        Dim oAssetLib As AssetLibrary
        oAssetLib = oPartDoc.Item("CategoryName")

        Dim oAsset As Asset
        oAsset = oAssetLib.MaterialAssetCategories.Item(1)

        For Each oValue As AssetCategory In oAsset
            Debug.Print(oValue.DisplayName)

        Next