protected override void DoCommandAction() { // UCF/TCL location constraints foreach (LibElemInst inst in LibraryElementInstanceManager.Instance.GetAllInstantiations().Where(i => Regex.IsMatch(i.InstanceName, InstantiationFilter))) { LibraryElement libEl = Objects.Library.Instance.GetElement(inst.LibraryElementName); PrintLocationConstraint getLoc = new PrintLocationConstraint(); getLoc.Location = inst.AnchorLocation; getLoc.SliceNumber = inst.SliceNumber; getLoc.InstanceName = HierarchyPrefix + inst.InstanceName; getLoc.BEL = libEl.BEL; getLoc.Mute = Mute; CommandExecuter.Instance.Execute(getLoc); // copy output if (getLoc.OutputManager.HasUCFOutput) { OutputManager.WriteWrapperOutput(getLoc.OutputManager.GetUCFOuput()); } } }
protected override void DoCommandAction() { int tileCount = 0; foreach (Tile t in TileSelectionManager.Instance.GetSelectedTiles()) { ProgressInfo.Progress = ProgressStart + (int)((double)tileCount++ / (double)TileSelectionManager.Instance.NumberOfSelectedTiles * ProgressShare); PrintLocationConstraint cmd = new PrintLocationConstraint(); cmd.InstanceName = InstanceName; cmd.Location = t.Location; cmd.SliceNumber = SliceNumber; CommandExecuter.Instance.Execute(cmd); // copy output if (cmd.OutputManager.HasUCFOutput) { OutputManager.WriteWrapperOutput(cmd.OutputManager.GetUCFOuput()); } } }