Method GetToolSetting
GetToolSetting(string)
Reads a setting the tool declares in its plugin.json, as the user last set it in Load/Unload Applications, or its default. Only on the channel of the tools, with the token of the tool; the app answers at once, whatever its window is doing, in a run or out of one.
public object GetToolSetting(string name)
Parameters
namestringThe setting's name, as plugin.json gives it: "textHeight".
Returns
- object
A
doublefor a number, anintfor an integer, abool, astringfor a text or the name of a choice; null for a text with no value.
Exceptions
- ArgumentNullException
Thrown when the name is null.
- CadRemoteException
Thrown when the tool declares no such setting, or this is not the channel of the tools.