AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IM Plugin: custom tag in tbp file.

0 REPLIES 0
Reply
Message 1 of 1
poulet1212
710 Views, 0 Replies

IM Plugin: custom tag in tbp file.

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>

Spoiler
 

 

 

 

 

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");

 

}

}

Spoiler
 

 

 



The string "tag" is empty. Is this functionnality working and am I doing something wrong here?


 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost