Hi guys,
Autodesk.Map.IM.Forms.Plugin class specifiy a Method to read custom tags in the tbp plugin config file:
//Userdefined Parameter (XML Tag) in the *.TBP File
public string Parameter(
string key
)
I've tryed to put a custom tag and read it but I just get a blank string:
my tbp file:
<?xml version="1.0" encoding="utf-8"?>
<PlugIn>
...
...
<mycustomtag>My Value</mycustomtag>
<ApplicationPlugIn ClassName="DimensionApplicationPlugin"/>
</PlugIn>
Then I read it here:
public class DimensionApplicationPlugin : Autodesk.Map.IM.Forms.ApplicationPlugIn
{
public override void OnInitComplete(object sender, EventArgs e){
//Apply config to the manager
string tag this.PlugIn.Parameter("mycustomtag");
}
}
The string "tag" is empty. Is this functionnality working and am I doing something wrong here?