Hello,
On closing OpenRoads Designer and OpenRail Designer, I receive the dialog box asking me to Abort, Retry, or Ignore and that an exception log has been filed.
Exception caught in source file e:\builds\cif10102104\Source\Cif\src\managed\ui\tools\PrimitiveCommand\PrimitiveCommand.cs at method OnModelMotionInternal ================================================================================ Exception : The instance is not persisted. In Assembly : Bentley.CifNET.Objects.4.0 Stack Trace : at Bentley.CifNET.Objects.Engine.Instance.GetECInstanceFromProvider() at Bentley.CifNET.Objects.Engine.Instance.AddInstanceAsDeletedAndPerformCascadeDelete(InternalChangeSet changeSet, Boolean rootIsExplicitlyDeleted) at Bentley.CifNET.Objects.Engine.Instance.BuildChangeSet(InternalChangeSet changeSet, PersistDepth persistDepth) at Bentley.CifNET.Objects.Engine.ObjectSpace.PersistChanges(ObjectKeyInternal ecKey, PersistDepth persistDepth) at Bentley.CifNET.Objects.Engine.ObjectSpace.PersistChanges(Object obj, PersistDepth persistDepth) at Bentley.CifNET.Objects.Engine.ObjectSpace.Bentley.CifNET.Objects.IObjectTracker.PersistChanges(Object obj) at Bentley.CifNET.GeometryModel.Tool.GeometryCommand.ObjectSpaceHolder.PersistChanges(Object obj) at Bentley.CifNET.GeometryModel.SnapRules.PointEntryCreator.RemoveSnapRuleAndSetCoordinates(DPoint3d pointCoordinates, IObjectTracker objectTracker, PointEntity2d pointEntity) at Bentley.CifNET.GeometryModel.SnapRules.PointEntryCreator.SetPointSnapInternal(DPoint3d pointCoordinates, SnapDescriptor snapDescriptor, IObjectTracker objectTracker, PointEntity2d pointEntity, Boolean checkCircularDependency, Boolean addSnapRule) at Bentley.CifNET.GeometryModel.SnapRules.DistanceAlongEntryCreator.SetDistanceAlongEntry(GeometricModel targetModel, LinearEntity baseElement, DPoint3d coordinates, SnapDescriptor snapDiscriptor, IObjectTracker objectSpace, LinearEntity targetEntity, DistanceAlongEntry distanceAlongEntry) at Bentley.CifNET.GeometryModel.Tool.GeometryCommand.DistanceAlongEntryDescriptor.Calculate(DPoint3d coordinates, SnapDescriptor snapDiscriptor, IObjectSpace objectSpace) at Bentley.CifNET.GeometryModel.Tool.GeometryCommand.DistanceAlongEntryState.DoGetCursorValue(IButtonEvent buttonEvent, Double currentValue, Boolean valueLocked) at Bentley.CifNET.UI.Tools.ParameterEntryState`2.InternalPrimitiveParameterState.GetCursorValue(IButtonEvent buttonEvent, Object currentValue, Boolean valueLocked) at Bentley.CifNET.UI.Tools.CursorPrompt.CustomParameterDialogDefinition.OnModelMotion(IButtonEvent buttonEvent) at Bentley.CifNET.UI.Tools.CursorPrompt.ParameterPromptManager.Bentley.CifNET.UI.Tools.ICommandParameterPrompter.OnDynamics(IButtonEvent buttonEvent) at Bentley.CifNET.UI.Tools.ParameterState.OnModelMotion(IButtonEvent buttonEvent) at Bentley.CifNET.UI.Tools.PrimitiveCommand.<>c__DisplayClass99_0.<OnModelMotionInternal>b__0() at Bentley.CifNET.UI.Tools.PrimitiveCommand.ManagedBooleanCallBack(Func`1 method, Boolean exitCommandAndCleanupCaches, Boolean retValue, String message, String memberName, String sourceFilePath, Int32 sourceLineNumber)
I checked Task Manager and the process OpenRoadsDesigner.exe never closes even if I select Abort in the dialog box. This happens no matter what file I choose to open. No customization has been done. I have done the typical restart machine, reinstall with Admin privileges, etc.
Any help is appreciated.
Windows 10
OpenRoads Designer 10.10.21.004
We have been noticing this with ProjectWise when there is VBA macros being run.I was also getting errors on opening but was able to get past them by not trying to pass any custom types like TagSets or Cells from a function.
I have a suspicion that is when the classes that use "ImplementsModelActivate" events are being terminated, but I haven't tested that.
Can anyone else confirm that they are seeing issues with PW and VBA macros in 2021 R2?
Sometimes having Microsoft Office 32bit or Microsoft Office 64bit installed is a factor with the VBA errors.
After a lot of wasted time on this, we have found it is not confined to ProjectWise. I'm thinking perhaps Saving Settings on Exit...
Regards,
Mark
OpenRoads Designer 2022 R3 (10.12) | Microstation 2023.1 | ProjectWise CE 3.4