Is it possible to change string value of Plugin String?

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Is it possible to change string value of Plugin String?

Post by RMan »

I was looking to give users a better description of a 3D Model not displaying but I don't see a function to SetLocalStr

I can do this to get the ID number of it and find out what the string value is.
lID = AxPXV_Control1.Inst.Str2ID("u3d.3DSceneFailed.str")
sString = AxPXV_Control1.Inst.GetLocalStr2(lID)

But I don't see a corresponding GetLocalStr or GetLocalStr2? Am I missing something or are we not able to change the message displayed in English?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Is it possible to change string value of Plugin String?

Post by Sasha - Tracker Dev Team »

Hello RMan,

If you wan to set your custom string to the command, then you should use the Title property of the IUIX_Cmd:
https://sdkhelp.pdf-xchange.com/vi ... _Cmd_Title
You can obtain the IUIX_Cmd from the IUIX_CmdManager Cmds property by ID:
https://sdkhelp.pdf-xchange.com/vi ... Collection

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Re: Is it possible to change string value of Plugin String?

Post by RMan »

Thanks but unfortunately it isn't a command I'm trying to update and I can't get the commands from the plugin it appears.

Set oUiInst = AxPXV_Control1.Inst.GetExtension("UIX")
Set oCmnd = oUiInst.CmdManager.Cmds.Find(sCommandName)

Works for the main commands
sCommandName = "cmd.view.rotate"

But fails for the plugin strings I see.
sCommandName = "u3d.cmd.rotate"
sCommandName = "u3d.3DSceneFailed.str"

Or am I missing a step that we need to get an interface to the plugin and then to the CmdManager for that? The only thing I really saw for the PlugIn was GetPluginSettings and I didn't figure that would help out.

I also tried seeing if I could create my own English dictionary for the plugin. Not sure is I did it wrong or I'm guessing for English it only uses the built-in strings and doesn't even look for an optional dictionary file.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Is it possible to change string value of Plugin String?

Post by Sasha - Tracker Dev Team »

Hello RMan,

I've reproduced your behavior and it seems that it has to do something with the U3D plugin. I just checked the same with the Bookmarks Plugin - I can get and modify it's commands.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply