[MSCE C#] how to set Global Origin

hi

I am trying to place an element in C# Addin .Net, but since the default global origin of the seed file is not (0,0,0). I am unable to place the element at the correct coordinates. I tried to change the global origin with this code, but it didn't work. Could anyone help me with this problem? 

Thanks

DgnModel dgnModel = Session.Instance.GetActiveDgnModel();
dgnModelRef.GetModelInfo().GlobalOrigin.Set(0,0,0);
dgnModel.SaveModelSettings();

Parents Reply Children
No Data