SetTextPublishingDefinition

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

Moderators: remi77, Daniel, jacs

cam
Master Corporal
Master Corporal
Posts: 31
Joined: Fri Oct 02, 2009 8:46 am
TopSolid Module: TopSolid'Cam
TopSolid Version: 7.10
Location: Germany

SetTextPublishingDefinition

Postby 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

Return to “Specific Development”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest