SetTextPublishingDefinition

All topics about specific development with COM interface, LIP language, API in VB, ...

Moderators: remi77, jacs, Daniel

cam
Master Corporal
Master Corporal
Posts: 39
Joined: Fri Oct 02, 2009 9:46 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 7.8
Location: Germany

SetTextPublishingDefinition

Unread post by cam »

Hi,
how can I "Publish Text..." the material parameter "Material Name" by C# in my part document ?

// docID = DocumentId of the currently edited part
ElementId material_name = TopSolidHost.Elements.SearchByName(docID, "$TopSolid.Cad.Design.DB.Documents.ElementName.MaterialManagement");
String val = "Materialname";
SmartText st = new SmartText(val);
TopSolidHost.Parameters.SetTextPublishingDefinition(material_name, st);

if I code like this, I run into the "EndModifikation" failure

Chris
Greetings
Chris
Post Reply