AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Map3D Infrastructure- How create rule or invoke event

3 REPLIES 3
Reply
Message 1 of 4
dr5156
522 Views, 3 Replies

Map3D Infrastructure- How create rule or invoke event

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

Regards,
Dayalan
3 REPLIES 3
Message 2 of 4
hence_the_name
in reply to: dr5156

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

http://raumpatrouille3d.blogspot.ch/
Message 3 of 4
dr5156
in reply to: hence_the_name

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

Regards,
Dayalan
Message 4 of 4
Anonymous
in reply to: dr5156

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));
}

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost