Hi all,
How to create client side rule or event for feature gemetry update?.
I want to provide the information messge on Map, when the geomtry is updated for a perticular feature.
Note: I am using AutoCAD Map3D. Geometry update on industry model feature(Toobase model)
Regards,
Dayalan
Hi,
have you checked the developer samples which are installed with Map, such as example #112:
C:\Program Files\Autodesk\AutoCAD Map 3D 2013\Development\Samples\CSharp\112_ClientSideFeatureRules
Good luck,
Rob
Hi
Thanks for reply.
It does not have clear information, I tried, but it is not working for me.
1. When the geometry is edited, i want to trigger some event.
2. Need to prompt message when clicking on update button in the form.
Advance than you.
Regards,
Dayalan
You can create your own plugin and in DocumentPlugIn class you need to make such thing:
public override void OnLoad(object sender, EventArgs e) { .............. FeatureClass fc = this.Document.Connection.FeatureClasses["Name of geometry class"]; fc.Updated += new FeatureEventHandler(Feature_Updated); .............. } private void Feature_Updated(object sender, FeatureEventArgs e) { this.Document.Map.WriteMessage(String.Format("FID:{0} is changed", e.FID)); }