Is there any way to add NLS text refs programmatically by custom Add-In script inside VB or PG2 graphic editor ?
I need to convert all static texts in several hundreds VB graphics into NLS texts and convert all graphics to PG2 then. Doing that NLS job manually would be quite challenging.
I rack my brain there must be some way to add NLSID into Expression Builder in VB graphic by Add-In script, since VB Add-In can easily set/modify properties of all graphic elements as in attached example.
Or is there a way to modify gr.element Properties in PG2 by any script, e.g. export to XML / modify XML / import XML back to PG2 ?
Thank you for ideas.
Voted best answer
Hello,
probably it's easier in VB than PG2...
When you edit a VB display you get the source code under OperateITData\Temp\ActiveGraphics or OperateITTemp\ActiveGraphics, depending on whether you are working on a server or client.
Create a display with your NLS and see how the source code is built.
Refer to a display with only static texts.
If you understand how to change your text code, then it's possible to change the VB source code when entering Edit, but it's only possible manually display by display, not automatically all displays....
/Ronny
Add new comment