Below is the example of using the OpenDim operation to open a repository dictionary. The request contains moniker of the object that is a dictionary. The response contains the opened dictionary instance moniker. Any additional data is not obtained.
The C# example uses the FindObjectById function, which code is given in the Getting Object Description by Its Identifier section.
{
"OpenDim" :
{
"tObject" :
{
"id" : "S1!M!116"
},
"tArg" :
{
"openArgs" : ""
}
}
}
{
"OpenDimResult" :
{
"id" :
{
"id" : "S1!M!S!S1"
}
}
}
public static OpenDimResult OpenDimension(MbId mb, string id)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOpen = new OpenDim()
{
tArg = new OpenDimArg()
{
openArgs = new DmOpenArgs()
},
tObject = new OdId() { id = mb.id + "!" + FindObjectById(mb, id).k }
};
//Open dictionary
var tResult = somClient.OpenDim(tOpen);
return tResult;
}
See also: