public IEnumerable <string> RequestSelectionOfType(string selectionMessage, SelectionType selectionType, SelectionObjectType objectType) { IAppInteraction appInteraction = AppResolver.Resolve <IAppInteraction>(); var descs = appInteraction.PickElements(); return(descs); }
public IEnumerable <string> RequestSelectionOfType(string selectionMessage, SelectionType selectionType, SelectionObjectType objectType) { IAppInteraction appInteraction = AppResolver.Resolve <IAppInteraction>(); Point3d pt = appInteraction.PickPoint(); return(new string[] { string.Format("{0};{1};{2}", pt.x, pt.y, pt.z) }); }
public SteelSelection(SelectionType selectionType, SelectionObjectType selectionObjectType, string message, string prefix, IEnumerable <string> selectionIdentifier, IEnumerable <PortModel> inPorts, IEnumerable <PortModel> outPorts) : base(selectionType, selectionObjectType, message, prefix, selectionIdentifier, inPorts, outPorts) { AppResolver.Resolve <IAppInteraction>().DocumentOpened += Controller_DocumentChanged; }
public override void Dispose() { base.Dispose(); AppResolver.Resolve <IAppInteraction>().DocumentOpened -= Controller_DocumentChanged; if (dynamoModel != null) { var hwm = dynamoModel.CurrentWorkspace as HomeWorkspaceModel; if (hwm != null) { hwm.RunSettings.PropertyChanged -= model_PropertyChanged; } } }
protected SteelSelection(SelectionType selectionType, SelectionObjectType selectionObjectType, string message, string prefix) : base(selectionType, selectionObjectType, message, prefix) { AppResolver.Resolve <IAppInteraction>().DocumentOpened += Controller_DocumentChanged; }