SetTextPublishingDefinition
Posted: 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
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