1
Automation Interface, Add-Ins and Tools / Re: Changing value of TaggedValue
« on: August 08, 2023, 02:48:39 am »
Thanks q, that works

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
diagram = package.Diagrams.AddNew( packageName + " Diagram", "SysML1.4::Requirement")
diagram_styleEx = str(diagram.StyleEx)
if "ShowNotes=1" in diagram_styleEx:
diagram_newStyleEx = diagram_styleEx.replace("ShowNotes=0", "ShowNotes=1")
diagram.StyleEx = diagram_newStyleEx
else:
diagram_styleEx += "ShowNotes=1"
diagram.StyleEx = diagram_styleEx
diagram.Update()
eaRepository.RefreshModelView(package.PackageID)