Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Get View Properties C#

Solved1.00K views10th March 2023Automation C++ view properties
9
Ross Elliott [DevOps Advocate]819 6th March 2023 0 Comments

Hi,

I want to get the assigned Visio file for each of my Views. I can see this in the View’s general properties, ‘Visio File:’ but I can’t seem to find a method to retrieve it in the help file.

I’ve seen in docs an IDmsView declaration but I can’t get any script in my DMS using it to validate. I think I might need to add a .Library dll reference but i’m not sure.

Is there an engine method to retrieve this value?

Thanks,

Ross

Ross Elliott [DevOps Advocate] Selected answer as best 10th March 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
9
João Severino [SLC] [DevOps Catalyst]13.02K Posted 6th March 2023 4 Comments

Hi Ross,

To answer the first part of your question, you should be able to use the interface and properties described in this help page Interface IDmsView more specifically the Property Properties for the custom properties but at the present time that does not include the assigned Visio file name.

For the Visio file name you can use the following SLNet call should work for the Visio file

private static string GetVisioFileName(IEngine engine, IDmsView view)
{
var request = new GetInfoMessage(InfoType.ViewInfo);
var responses = engine.SendSLNetMessage(request).OfType<ViewInfoEventMessage>();

var viewInfo = responses?.FirstOrDefault(r => r.ID == view.Id);
return viewInfo?.VdxFileName;
}

This should work for your use case but I do have to add a disclaimer here that these kinds of SLNet calls are internal calls and typically not recommended to use since there is no official support and may be subject to change in the future.

Regarding the second part of your question, you must include the reference to the Class Library in your script.

The easiest way would be to develop your script inside Visual Studio and add the NuGet Package for Class Library.
See Skyline.DataMiner.Core.DataMinerSystem.Automation and Skyline.DataMiner.Core.DataMinerSystem.Common

Edited as per the comment of Jens

Ross Elliott [DevOps Advocate] Posted new comment 10th March 2023
Jens Vandewalle [SLC] [DevOps Enabler] commented 6th March 2023

João, please correct me if I’m wrong, but I don’t think that the current Class Library does support getting the visio which is assigned to a certain view?

João Severino [SLC] [DevOps Catalyst] commented 6th March 2023

Hi Jens, you are correct.
I misunderstood the question from Ross and thought it was about all properties in general.
Indeed it is currently not possible to retrieve the assigned Visio file name from within the IDmsView object

João Severino [SLC] [DevOps Catalyst] commented 6th March 2023

Updated the answer to now include an SLNet call that is capable of retrieving the Visio file name
Also created an internal task to add out-of-the-box support for this in the future.

Ross Elliott [DevOps Advocate] commented 10th March 2023

Great, thanks Joao.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs