How can I delete an
association between an ObjectItem in tree and a Symbol-ObjectItem
Object Kind can be Potential, Wire or Cable
I have tried SheetBop "aucOpExecSheetDelAssocSym", but this does not work in EB 2019 Patch 10... (No runtime error, no User-Log or traceview message) The
association was not deleted.
(same example worked in older EB versions)
"OpExecSheetAssocSym" seems to work and to override an existing
Association
My sample Code
sheetBops.AddRecord(1006, null); // <-- aucOpExecSheetDelAssocSym
sheetBops.AddRecord(8, shapeItemId); // <-- aucArgExecSheetRef2Symbol
sheetBops.AddRecord(7, objectItemId); // <-- aucArgExecSheetRef2Obj
with
public static void AddRecord(this IList<ExecuteSheetRecordData> sheetBops, int qualifier, object value)
=> sheetBops.Add(new ExecuteSheetRecordData() { Qualifier = qualifier, Value = value });
and
ExApp.ExtendedUtils.ExecuteSheetOperation(sheet, ref sheetBops);
is there any other way / best practice to Delete / Create an Association between Ao/Do of ObjectKind Potential, Wire or Cable?
Thanks a lot!