Ejemplo n.º 1
0
        public IEnumerable <string> RequestSelectionOfType(string selectionMessage, SelectionType selectionType, SelectionObjectType objectType)
        {
            IAppInteraction appInteraction = AppResolver.Resolve <IAppInteraction>();
            var             descs          = appInteraction.PickElements();

            return(descs);
        }
Ejemplo n.º 2
0
        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) });
        }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
        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;
                }
            }
        }
Ejemplo n.º 5
0
 protected SteelSelection(SelectionType selectionType,
                          SelectionObjectType selectionObjectType, string message, string prefix)
     : base(selectionType, selectionObjectType, message, prefix)
 {
     AppResolver.Resolve <IAppInteraction>().DocumentOpened += Controller_DocumentChanged;
 }