Hello everybody. Hope somebody could help me
In objectArx Editor object has ModelessOperationWillStart . But how could I use this in my vb net ?
ObjectBrowser doesn't show it ?!!!
Janet.
Solved! Go to Solution.
Solved by Alexander.Rivilis. Go to Solution.
Solved by Alexander.Rivilis. Go to Solution.
This topic so old but today I've found another solution without using ObjectARX for checking OPM start/stop property editing. It is look like this solution can be used with AutoCAD 2010+:
using Autodesk.AutoCAD.Runtime; using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.EditorInput; using Autodesk.AutoCAD.Internal.PropertyInspector; using System.Runtime.InteropServices.ComTypes; // This line is not mandatory, but improves loading performances [assembly: CommandClass(typeof(Rivilis.OPMReactors))] namespace Rivilis { public class OPMReactors { [CommandMethod("OPMReactorsStart")] public void OPMReactorsStart() { Document doc = Application.DocumentManager.MdiActiveDocument; if (doc == null) return; Editor ed = doc.Editor; PropertyInspectorEventManager pim = PropertyInspectorEventManager.Instance(); pim.propertyWillChange += propertyWillChange; pim.propertyChanged += propertyChanged; } [CommandMethod("OPMReactorsStop")] public void OPMReactorsStop() { PropertyInspectorEventManager pim = PropertyInspectorEventManager.Instance(); pim.propertyWillChange -= propertyWillChange; pim.propertyChanged -= propertyChanged; } private void propertyChanged(object sender, PropertyInspectorEventArgs e) { Document doc = Application.DocumentManager.MdiActiveDocument; if (doc == null) return; Editor ed = doc.Editor; ed.WriteMessage("\npropertyChanged"); } private void propertyWillChange(object sender, PropertyInspectorEventArgs e) { Document doc = Application.DocumentManager.MdiActiveDocument; if (doc == null) return; Editor ed = doc.Editor; ed.WriteMessage("\npropertyWillChanged"); } } }
Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"
Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn