Restrict change to certain properties
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We are developing a plug-in/add-in for AutoCAD 2023 using C# / .NET. Our goal is to restrict users from editing certain properties in the property window.
We've noticed that when a property is modified in the dialog, only the "OnLockModeChanged" event seems to trigger. Interestingly, the OnObjectModified event doesn't fire (except when saving the document).
So far, our only workaround has been to call e.Veto() within the OnLockModeChanged event.
Moreover, neither the OnCommandWillStart nor the OnCommandEnded events trigger when properties are changed.
Any ideas?