EBDN - Community - Question & Answers

  Monday, 08 April 2019
  3 Replies
  1.3K Visits
0
Votes
Undo
Hello,

given is a Potential Item in EB Tree and an associatet connector on a Visio sheet.
Looks like this:
2019-04-08 13_14_38-Standard _ 01 (Design-Modus) - Visio Professional.png

i need to delete association between my Pot Object Item and my connection between Terminals 1 and 2.
I know, that I first have to select the symbol in Visio.


paramList.AddRecord(1012, null); // <-- 1012 = OpExecSheetSelectSymbol
paramList.AddRecord(8, symbolId); // <-- 8 = ArgExecSheetRef2Symbol
paramList.AddRecord(53, 2001); // <-- 53 = ArgExecSheetOperationMode, 2001 = ModExecSheetSelectSymbolsDo


(Add Record is an extension Method)
paramList is an IList of ExecuteSheetRecordData

then I can delete the Association via

paramList.AddRecord(1006, null); // <-- 1006 = OpExecSheetDelAssocSym
paramList.AddRecord(8, symbol.Id); // <-- 8 = ArgExecSheetRef2Symbol
paramList.AddRecord(7, item.Id); // <-- 7 = ArgExecSheetRef2Obj


this works fine for Deviceitems and so on, but not for Potentials.

The only way that works is to select the potential -sink-shape, potential-tag-shape, ... (same SheetBops, but Itemd found with formula R-3\";\";Ao;", ";" from my symbol item.


But how to delete the Potential <--> Symbol Association if I only have a connector associatet with the Potential as in my example?