Message 1 of 4
Specify Coordinates at Point, Relocate Project does not trigger IUpdater
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have setup an IUpdater to monitor the X,Y,Z coordinates of certain elements which triggers on Element.GetChangeTypeGeometry(). I then grab the current position of each element using something like the following.
void Foo(Element element, ProjectLocation projectLocation = null)
{
if (element.Location is LocationPoint locationPt)
{
double x, y, z;
if (projectLocation != null)
{
var projectPosition = projectLocation.GetProjectPosition(locationPt.Point);
x = projectPosition.EastWest;
y = projectPosition.NorthSouth;
z = projectPosition.Elevation;
}
else
{
var pt = locationPt.Point;
x = pt.X;
y = pt.Y;
z = pt.Z;
}
// do stuff here ..
}
}This works great except the user clicks "Specify Coordinates At Point" or "Relocate Project". That command modifies all the project position values but the IUpdater fails to trigger. Is there any way to detect when these commands are run? If not, is there anything that can be done to the IUpdater that would make it fire after these events?
