Having selected the point control I'd like to revise from the Civil Model listing, I am attempting to change the plan element that the point control follows. I click the down arrow for that. Before I get the list, assumably as OpenRoads is assembling the list of candidate elements, I get this .NET Framework error:
************** Exception Text **************
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.String.ToCharArray(Int32 startIndex, Int32 length)
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Bentley.ECObjects.ECObjects.FormatSchemaVersion(Int32 versionMajor, Int32 versionMinor)
at Bentley.ECObjects.ECObjects.FormatFullSchemaName(String schemaName, Int32 versionMajor, Int32 versionMinor)
at Bentley.ECXAttributes.ECXADgnFileSchemaLocater.LocateSchema(String schemaName, Int32 versionMajor, Int32 versionMinor, SchemaMatchType matchType, IECSchema parentSchema, Object context)
at Bentley.ECObjects.ECObjects.LocateSchema(String schemaName, Int32 versionMajor, Int32 versionMinor, SchemaMatchType matchType, IECSchema parentSchema, Object context)
at Bentley.ECXAttributes.ECXAttributes.LocateSchema(IntPtr dgnCacheP_as_IntPtr, Boolean useSharedSchemaCache, String schemaName, Int32 majorVersion, Int32 minorVersion, SchemaMatchType matchType)
at Bentley.DGNECPlugin.ECRelationshipBlockXAttributeHandler.GetOneBlock(ElemHandle* elemHandle, XAttributeHandle* curr, Dictionary`2 dictionaryOfCaches)
at Bentley.DGNECPlugin.ECRelationshipBlockXAttributeHandler.GetAll(Dictionary`2 dictionaryOfCaches, ElemHandle* elemHandle, XAttributeIter* curr)
at Bentley.DGNECPlugin.ECRelationshipBlockXAttributeHandler.GetAll(IElementRef* elRef)
at Bentley.DGNECPlugin.RelationBlockSetCacheRegistry..ctor(IElementRef* elRef)
at Bentley.DGNECPlugin.RelationshipData.GetRelationBlockSetCacheRegistry(IElementRef* elRef)
at Bentley.DGNECPlugin.ECXRelationshipsManager.TryGetRelationAccessors(IEnumerator`1* enumerator, IElementRef* elRef, String thisLocalKey, DirectedRelationship relation, Boolean isRelationshipPolymorphic)
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.Model.FeaturizedEntity.get_RepresentationOf()
at Bentley.Civil.Geometry.Model.GeometricEntity.GetName()
at Bentley.Civil.Model.NamedEntity.get_Name()
at Bentley.Civil.Geometry.Presentation.PointControlPropertyProvider.GetSortedPlanElementList(IObjectSpace objectSpace, PointControlType controlType)
at Bentley.Civil.Geometry.Presentation.PointControlPropertyProvider.PlanElementTypeConverter.SetStandardValues(IList values)
at Bentley.Civil.Formatting.StandardValuesTypeConverter.GetStandardValues(ITypeDescriptorContext context)
at System.Windows.Forms.PropertyGridInternal.GridEntry.GetPropertyValueList()
at System.Windows.Forms.PropertyGridInternal.PropertyGridView.PopupDialog(Int32 row)
at System.Windows.Forms.PropertyGridInternal.PropertyGridView.OnBtnClick(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.PropertyGridInternal.DropDownButton.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.PropertyGridInternal.DropDownButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I haven't scanned through everything, but because of the System.String.ToCharArray() and System.Text.StringBuilder.AppendFormat(), I wonder if it's safe to guess it's a problem with some element names. Is there a pattern I should be following for my plan element names and/or for profile element names?
Running Microstation 8.11.09.916 and Geopak 8.11.09.918