The following error occurred just now, and I suspect that it might be related to this workflow:
- I created static cross sections on a given alignment.
- I realized I didn't specify the correct name for the model to be created, so I changed the name of the model so that the name of the model seen in the view's title remained unchanged.
- I clicked the tool to annotate these cross sections.
Error stack:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at Bentley.ECXAttributes.ECXASchemaExternalAccessor.Load(AbstractDataInternalizer* source, Boolean loadXml)
at Bentley.ECXAttributes.ECXAttributes.InternalTraverse(TraverseDelegate traversalDelegate, ElemHandle* elemHandle, ModelReference modelRef, UInt32 xAttributeId, IECDeserializationFilter filter, Boolean traverseSchemaInfoForExternalSchemaECXAttributesOnly, Object userObj, IExtendedParameters extendedParameters, Boolean processHiddenAttributeIds)
at Bentley.ECXAttributes.ECXAttributes.Traverse(TraverseDelegate delegate, IElementRef* elemRef, ModelReference model, UInt32 xAttributeId, IECDeserializationFilter filter, Boolean traverseSchemaInfoForExternalSchemaECXAttributesOnly, Object userObj, IExtendedParameters extendedParameters, Boolean processHiddenAttributeIds)
at Bentley.ECXAttributes.ECXAttributes.Traverse(TraverseDelegate delegate, IElementRef* elemRef, ModelReference model, UInt32 xAttributeId, IECDeserializationFilter filter, Object userObj)
at Bentley.Civil.Model.MSPlugIn.ECLocalKeysFinder.ECInstanceWithThisKeyExists(IElementRef* elementRef, ECSchemaAnalyzer schemaAnalyzer, String localKey)
at Bentley.Civil.Model.MSPlugIn.relationDescriptor_create(DgnRepositoryConnection dgnConnection, String* extraInfo, DgnModelRef* targetElementModel, IElementRef* targetElementRef, String relatedLocalKey, String associatedString, Object orderId, ECSchemaAnalyzer schemaAnalyzer)
at Bentley.Civil.Model.MSPlugIn.TraverseRelationAccessors(DgnRepositoryConnection dgnConnection, DirectedRelationship directedRelationship, IEnumerator`1 relationAccessors, IExtendedParameters extendedParameters, DgnModelRef* thisElementModel, IElementRef* thisElementRef, String thisLocalKey, List`1 listOfRelations, Object args, ECSchemaAnalyzer schemaAnalyzer)
at Bentley.Civil.Model.MSPlugIn.ModelPersistenceStrategy.TraverseECXRelationships(ElementArgs elementArgs, List`1 listOfRelations, DirectedRelationship directedRelationship, Boolean isRelationshipPolymorphic, Object userArgs)
at Bentley.Civil.Model.MSPlugIn.ModelPersistenceStrategy.TraverseECRelationships(ElementArgs elementArgs, DirectedRelationship directedRelationship, Boolean isRelationshipPolymorphic, TraverseRelatedInstancesDelegate traverseRelatedInstancesDelegate, Object userArgs)
at Bentley.DGNECPlugin.MSElementHelper.GetRelatedFilteredElementKeysFromStrategy(DgnRepositoryConnection connection, ElementKey elKey, PersistenceStrategy strategy, RelatedInstanceKeysGatherer gatherer, IExtendedParameters extendedParameters)
at Bentley.DGNECPlugin.DgnECRepository.LoadSelectedRelatedInstancesRecursive(RepositoryConnection connection, IECInstance instance, SelectCriteria selectCriteria, LoadModifiers loadModifiers, Dictionary`2 instancesDictionary, DgnECQueryEvaluator dgnECQueryEvaluator, IExtendedParameters extendedParameters, Int32 recursionDepth, Dictionary`2 recursionChecker)
at Bentley.DGNECPlugin.DgnECRepository.LoadSelectedRelatedInstances(RepositoryConnection connection, IECInstance instance, SelectCriteria selectClause, LoadModifiers loadModifiers, Dictionary`2 instancesDictionary, Object dgnECQueryEvaluator, IExtendedParameters extendedParameters)
at Bentley.ECPlugin.Common.QueryResultsDataSupplier.<ItemsInRange>d__0.MoveNext()
at Bentley.ECSystem.PageableContainer`1.LoadPageFromEnumerator(Int32 pageIndex, IEnumerator`1 enumerator)
at Bentley.ECSystem.PageableContainer`1.LoadPage(Int32 pageIndex)
at Bentley.ECSystem.PageableContainer`1.TryGetElement(Int32 elementIndex, T& element)
at Bentley.ECSystem.PageableContainer`1.<get_ElementsInAllPages>d__6.MoveNext()
at Bentley.Civil.Objects.Engine.Instance.CivilOnlyResultsSupplier..ctor(QueryResults initialResults)
at Bentley.Civil.Objects.Engine.Instance.ExecuteQueryReturnOnlyCivilObjects(RepositoryConnection connection, ECQuery query, Int32 pageSize, IExtendedParameters extendedParams)
at Bentley.Civil.Objects.Engine.Instance.LoadRelationships(DirectedRelationship relation, Boolean isNamed, Boolean hasProperties, Boolean noReadonly)
at Bentley.Civil.Objects.Engine.BaseObjectList.CheckStateAndLoad()
at Bentley.Civil.Objects.Engine.BaseObjectList.get_Count()
at Bentley.Civil.Objects.Engine.ObjectHolderInternal.get_ObjectReference()
at Bentley.Civil.Geometry.Model.GeometricModel.get_CorridorSet()
at Bentley.Civil.Geometry.Model.Accessor.GeometryModel.GetCrossSectionEntities()
at uGeometryModel._GetCrossSectionEntities(uGeometryModel* , map<std::basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >\,std::basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >\,std::less<std::basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> > >\,std::allocator<std::pair<std::basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> > const \,std::basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> > > > >* )
at xsLink_launchAnnotateCrossSection()
at Bentley.Civil.RoadwayDesigner.RoadwayDesignerPlugin.ShowAnnotateCrossSections()
at Bentley.Civil.RoadwayDesigner.RDManager.ShowAnnotateCrossSections()
at Bentley.Civil.Geometry.Model.Commands.Addin.AnnotateCrossSections(String unparsed)
at Bentley.Internal.MicroStation.CoreHook.DispatchNoHandler(UInt32* argStack, UInt32 mysp, IntPtr pFunc)
at Bentley.Internal.MicroStation.CoreHook.Dispatch(UInt32* argStack, UInt32 mysp, IntPtr pFunc)