Kkula
If I change the picture path for multiple states of a Status Display, Graphic Designer crashes:
I have many .PDL pictures with many Status Display objects, that have around 5 configured states each with Basic Picture and/or Flash Picture.
I have to rename all the pictures' path, but i cannot, intead, i have to search the picture in the Selection of Picture area, then drag & drop the name on the picture's path.
If I do this for all the configured paths, usually 6 paths, and click OK, the Grapich Designer crashes.
So, I have to do this with a few pictures at a time.
But sometimes it crashes anyway.
I am on WinCC 7.5 SP2 upd17.
Anyway, I am looking for a way to edit the pictures' path with VBA.
I need to get all the Status Display objects, and I found in
this topic
how to do it. Then, I need to access all the Basic Picture and Flash Picture property for all the configured states.
Is it possible? How could I do it?
You're encountering a known issue in WinCC 7.5 SP2 upd17 where changing picture paths for multiple states within Status Display objects can cause Graphic Designer to crash. Your workaround of updating paths in small batches is a valid mitigation.
Regarding VBA, yes, it's possible to address this programmatically. Building on the information from the linked topic, here's how you can access and modify the picture paths:
Example Snippet (Illustrative):
Dim objSD As Object
Dim objState As Object
' Assuming you have a loop iterating through Status Display objects
For Each objSD In Screen.Objects
If TypeName(objSD) = "StatusDisplay" Then
For Each objState In objSD.States
objState.BasicPicture = "NewPicturePath"
objState.FlashPicture = "AnotherNewPath"
Next objState
End If
Next objSD
Important Considerations:
For detailed VBA documentation and examples, refer to the Siemens WinCC Information System (accessible through SiePortal). Searching for "WinCC VBA Status Display" will yield relevant results.
Our flexible community website is a platform that allows users to connect, share information, and collaborate on various topics of interest. The website offers a range of features such as discussion forums, messaging, user profiles, event calendars, and more. Users can customize their experience by creating and joining different groups or communities based on their interests or location. The website is designed to be user-friendly and adaptable to the needs and preferences of our diverse user base. Whether you are looking to network professionally, share hobbies and interests, or simply connect with like-minded individuals, our flexible community website has something for everyone. Join us today and become a part of our thriving online community!
India
Copyright ©2025
Share this page with your family and friends.