Table of Contents

Method GetToolSetting

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

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

name string

The setting's name, as plugin.json gives it: "textHeight".

Returns

object

A double for a number, an int for an integer, a bool, a string for 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.