Hi,
pls. help me to complete this code.
refer snap-1 has function to setpropeties

Refer snap-2 myerror

and this my code:
private void button1_Click(object sender, EventArgs e)
{
string dsds = "\\D7489\\Drawings\\Instrumentation\\test\\CABLE TRAY LAYOUT-ICB-EAST";
Site sitemgr1 = MiddleServiceProvider.SiteMgr.ConnectSite();
PlantConnection modelconn1 = sitemgr1.ActivePlant.PlantModel;
Deliverable ds = (Deliverable)EntityHelper.GetObjectByPath(dsds);
DeliverableBase ds1 = (DeliverableBase)EntityHelper.GetObjectByPath(dsds);
string DCC = "xxxx-xxxx";
var allprop = ds1.GetProperties();
ds1.SetProperties(IEnumerable < DeliverableProperty > propertiesList, string newValue)
foreach (var property in propertiesList)
{
property.PropertyValue = newValue;
}
}
Abhishek YadavPosted Aug 31, 2023, 7:37 AM
To set a property in the custom property list of a drawing, you can use the SetProperties method of the DeliverableBase class. Here is an example of how you can do it:
Here, you need to replace "PropertyName1" and "NewValue1" with the actual property name and the desired new value for that property. You can add more properties to the
propertiesListas needed. Finally, call theSetPropertiesmethod to set the properties with the specified new value.