SetTextPublishingDefinition

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

Moderators: remi77, Daniel, jacs

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

SetTextPublishingDefinition

Post by cam » Thu Feb 23, 2017 7:11 am

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

Who is online

Users browsing this forum: No registered users and 1 guest