Jump to content

ошибки в NanocadЭлектро


Recommended Posts

3 минуты назад, TrustMe сказал:

Может путь слишком длинный до папки проекта? Там есть какие-то ограничения.

Не с этим все нормально

 

 

Возможно, еще и потому что я не пишу, а вставляю скопированный текст?

2022-02-17_17-18-51.png

Link to comment
Share on other sites

27 минут назад, Lion2032 сказал:

Чой-то не могу создать новый план (V21)

может в папке есть файл с таким названием?

Edited by Andrey_ka
  • Like 1
Link to comment
Share on other sites

6 минут назад, Andrey_ka сказал:

может в папке есть файл с таким названием?

Точно!!

Когда я создаю файл, они имеют одинаковое название с проектом (папкой)

и когда создаешь план с этим же именем (без расширения)

то возникает конфликт, потому с таким названием (но с разными расширениям)

уже есть в этой папке

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Добрый вечер. При входе в электротехническую модель- подсоединение и выборе группы с линией около 4 км и штук 120 светильников, программа вылетает? Что это может быть ? ограничения на длину трассы? Автокадовский файл используемый как подложка почищен, координаты Z  убраны в 0.

Link to comment
Share on other sites

4 часа назад, erkviktor@yandex.ru сказал:

Добрый вечер. При входе в электротехническую модель- подсоединение и выборе группы с линией около 4 км и штук 120 светильников, программа вылетает? Что это может быть ? ограничения на длину трассы? Автокадовский файл используемый как подложка почищен, координаты Z  убраны в 0.

Присылайте Электрику проект в личку...

Link to comment
Share on other sites

17 часов назад, erkviktor@yandex.ru сказал:

Добрый вечер. При входе в электротехническую модель- подсоединение и выборе группы с линией около 4 км и штук 120 светильников, программа вылетает? Что это может быть ? ограничения на длину трассы? Автокадовский файл используемый как подложка почищен, координаты Z  убраны в 0.

Это ограничение Windows на количество символов в длине пути (не может быть более 256 символов). Данная проблема решается довольно легко. Не подключайте на одну группу столько светильников. Разделите на несколько групп.

Link to comment
Share on other sites

1 час назад, Электрик сказал:

Это ограничение Windows на количество символов в длине пути (не может быть более 256 символов). Данная проблема решается довольно легко. Не подключайте на одну группу столько светильников. Разделите на несколько групп.

В новой версии (EVOS) это ограничения снято?

Link to comment
Share on other sites

Компания «Нанософт разработка» – разработчик продуктов линейки nanoCAD 22 – представляет программный продукт nanoCAD BIM Электро на Платформе nanoCAD 22.

Получается в этой версии такая проблема ушла ? Думаю протестировать?)))

Link to comment
Share on other sites

В 21.03.2022 в 13:38, Электрик сказал:

Это ограничение Windows на количество символов в длине пути (не может быть более 256 символов). Данная проблема решается довольно легко. Не подключайте на одну группу столько светильников. Разделите на несколько групп.

Про эту

Link to comment
Share on other sites

  • 1 month later...

Появилась систематическая ошибка при работе с 3D в БД

Спойлер

Cad платформа: AutoCad 23.1
Продукт: Project Studio CS Электрика
Версия продукта: 22.0.5488.5488 x64
Версия ОС: Microsoft Windows NT 10.0.19044.0 x64

=========================================
Exception: Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DbGraphicViewerControl (ReflectionActivator), Services = [Cadwise.Graphic.Db.DbGraphicViewerControl], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor(Cadwise.Graphic.Db.IDbGraphicImporter, Cadwise.Platform.FormExtension.IDialogStack, Cadwise.Graphic.Db.ICadGraphicExtractorFromBlock)' on type 'DbGraphicViewerControl'. ---> Задание значения connectionId вызвало исключение. (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Cadwise.Graphic.Db.IDbGraphicImporter, Cadwise.Platform.FormExtension.IDialogStack, Cadwise.Graphic.Db.ICadGraphicExtractorFromBlock)' on type 'DbGraphicViewerControl'. ---> Задание значения connectionId вызвало исключение. (See inner exception for details.) ---> System.Windows.Markup.XamlParseException: Задание значения connectionId вызвало исключение. ---> System.InvalidCastException: Невозможно выполнить приведение [A]HelixToolkit.Wpf.HelixViewport3D к HelixToolkit.Wpf.HelixViewport3D. Источником типа A является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadFrom" в расположении "c:\program files\csoft\спдс graphics 2022 x64 для autocad\Xbim\HelixToolkit.Wpf.dll". Источником типа B является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadNeither" в расположении "c:\program files (x86)\csoft\project studio cs\project studio cs электрика 2022\Mod\HelixToolkit.Wpf.dll".
   в Cadwise.Graphic.UI.Geometry3DViewerControl.System.Windows.Markup.IComponentConnector.Connect(Int32 connectionId, Object target)
   в MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetConnectionId(Object root, Int32 connectionId, Object instance)
   --- Конец трассировки внутреннего стека исключений ---
   в System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   в System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   в System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   в Cadwise.Graphic.Db.DbGraphicViewerControl..ctor(IDbGraphicImporter graphicImporter, IDialogStack dialogStack, ICadGraphicExtractorFromBlock graphicExtractorFromBlock)
   в lambda_method(Closure , Object[] )
   в Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
   --- Конец трассировки внутреннего стека исключений ---
   в Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
   в Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
   в Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
   --- Конец трассировки внутреннего стека исключений ---
   в Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
   в Autofac.Core.Resolving.InstanceLookup.Execute()
   в Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
   в Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
   в Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
   в Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   в Cadwise.Platform.Platform.Container.Resolve(Type type)
   в Cadwise.Data.Forms.DbPropertyCustomControlManager.GetCustomControl(Object obj)
   в Cadwise.Data.Forms.CustomControlFinderService.GetCustomControl(IItemObject itemObject)
   в Cadwise.Data.Forms.CustomControlModel.Load(IItemObject itemObject, Boolean isReadOnly, ITreeControl control)
   в Cadwise.Data.Forms.WPF.DbPropertyPageControl.SelectObject(ITreeControl control, IItemObject itemObject)
   в Cadwise.Data.Forms.WPF.DataBaseWindow.DataBaseExplorerSelectedItemChanged(Object sender, EventArgs e)
   в System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   в Cadwise.Studio.WPF.TreeControl.TreeControl.ChangeSelection(ItemViewModel itemViewModel, Boolean isSelected)
   в Cadwise.Studio.WPF.TreeControl.TreeControl._treeView_OnSelectedItemChanged(Object sender, RoutedPropertyChangedEventArgs`1 e)
   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   в System.Windows.Controls.TreeView.ChangeSelection(Object data, TreeViewItem container, Boolean selected)
   в System.Windows.Controls.TreeViewItem.Select(Boolean selected)
   в System.Windows.Controls.TreeViewItem.OnGotFocus(RoutedEventArgs e)
   в System.Windows.UIElement.IsFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   в System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   в System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   в System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)
   в System.Windows.Input.FocusManager.OnFocusedElementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   в System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   в System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   в System.Windows.Input.FocusManager.SetFocusedElement(DependencyObject element, IInputElement value)
   в System.Windows.Input.KeyboardNavigation.UpdateFocusedElement(DependencyObject focusTarget)
   в System.Windows.FrameworkElement.OnGotKeyboardFocus(Object sender, KeyboardFocusChangedEventArgs e)
   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   в System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   в System.Windows.Input.InputManager.ProcessStagingArea()
   в System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   в System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
   в System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   в System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   в System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
   в System.Windows.UIElement.Focus()
   в System.Windows.Controls.TreeViewItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   в System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   в System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   в System.Windows.Input.InputManager.ProcessStagingArea()
   в System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   в System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   в System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   в System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   в System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   в MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   в System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   в System.Windows.Window.ShowHelper(Object booleanBox)
   в System.Windows.Window.ShowDialog()
   в Cadwise.Platform.FormExtension.ControlStackAdder`1.Show()
   в Cadwise.Data.DataSource.UserSelect(DataBaseWindow dlg, Int32 dbId)
   в Cadwise.CAE.Db.DatabaseProxyComponent.DatabaseProxyComponent.SelectDbObject(Type type, Int32 dbId)
   в Cadwise.Cad.Impl.CadCommand.CadCommandHandler.Execute(ICadCommand command)
===============================Inner Exception====================================
Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Cadwise.Graphic.Db.IDbGraphicImporter, Cadwise.Platform.FormExtension.IDialogStack, Cadwise.Graphic.Db.ICadGraphicExtractorFromBlock)' on type 'DbGraphicViewerControl'. ---> Задание значения connectionId вызвало исключение. (See inner exception for details.) ---> System.Windows.Markup.XamlParseException: Задание значения connectionId вызвало исключение. ---> System.InvalidCastException: Невозможно выполнить приведение [A]HelixToolkit.Wpf.HelixViewport3D к HelixToolkit.Wpf.HelixViewport3D. Источником типа A является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadFrom" в расположении "c:\program files\csoft\спдс graphics 2022 x64 для autocad\Xbim\HelixToolkit.Wpf.dll". Источником типа B является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadNeither" в расположении "c:\program files (x86)\csoft\project studio cs\project studio cs электрика 2022\Mod\HelixToolkit.Wpf.dll".
   в Cadwise.Graphic.UI.Geometry3DViewerControl.System.Windows.Markup.IComponentConnector.Connect(Int32 connectionId, Object target)
   в MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetConnectionId(Object root, Int32 connectionId, Object instance)
   --- Конец трассировки внутреннего стека исключений ---
   в System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   в System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   в System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   в Cadwise.Graphic.Db.DbGraphicViewerControl..ctor(IDbGraphicImporter graphicImporter, IDialogStack dialogStack, ICadGraphicExtractorFromBlock graphicExtractorFromBlock)
   в lambda_method(Closure , Object[] )
   в Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
   --- Конец трассировки внутреннего стека исключений ---
   в Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
   в Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
   в Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
===============================Inner Exception====================================
System.Windows.Markup.XamlParseException: Задание значения connectionId вызвало исключение. ---> System.InvalidCastException: Невозможно выполнить приведение [A]HelixToolkit.Wpf.HelixViewport3D к HelixToolkit.Wpf.HelixViewport3D. Источником типа A является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadFrom" в расположении "c:\program files\csoft\спдс graphics 2022 x64 для autocad\Xbim\HelixToolkit.Wpf.dll". Источником типа B является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadNeither" в расположении "c:\program files (x86)\csoft\project studio cs\project studio cs электрика 2022\Mod\HelixToolkit.Wpf.dll".
   в Cadwise.Graphic.UI.Geometry3DViewerControl.System.Windows.Markup.IComponentConnector.Connect(Int32 connectionId, Object target)
   в MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetConnectionId(Object root, Int32 connectionId, Object instance)
   --- Конец трассировки внутреннего стека исключений ---
   в System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   в System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   в System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   в Cadwise.Graphic.Db.DbGraphicViewerControl..ctor(IDbGraphicImporter graphicImporter, IDialogStack dialogStack, ICadGraphicExtractorFromBlock graphicExtractorFromBlock)
   в lambda_method(Closure , Object[] )
   в Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
===============================Inner Exception====================================
System.InvalidCastException: Невозможно выполнить приведение [A]HelixToolkit.Wpf.HelixViewport3D к HelixToolkit.Wpf.HelixViewport3D. Источником типа A является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadFrom" в расположении "c:\program files\csoft\спдс graphics 2022 x64 для autocad\Xbim\HelixToolkit.Wpf.dll". Источником типа B является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadNeither" в расположении "c:\program files (x86)\csoft\project studio cs\project studio cs электрика 2022\Mod\HelixToolkit.Wpf.dll".
   в Cadwise.Graphic.UI.Geometry3DViewerControl.System.Windows.Markup.IComponentConnector.Connect(Int32 connectionId, Object target)
   в MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetConnectionId(Object root, Int32 connectionId, Object instance)
===================================Stack trace================================
   в System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   в System.Environment.get_StackTrace()
   в Cadwise.Studio.Utils.ExceptionLogger.GetInfo(Exception exception, String description)
   в Cadwise.Studio.Utils.ExceptionLogger.Log(Exception exception, String description)
   в Cadwise.Studio.Utils.ExceptionLogger.Log(Exception exception)
   в Cadwise.Cad.Impl.CadCommand.CadCommandHandler.Execute(ICadCommand command)
   в Cadwise.Cad.Impl.CadCommand.CadCommandRegister.Execute(ICadCommandRegistration command)

 

Link to comment
Share on other sites

В 06.05.2022 в 14:24, Walkmax сказал:

Появилась систематическая ошибка при работе с 3D в БД

  Ошибка (Показать контент)

Cad платформа: AutoCad 23.1
Продукт: Project Studio CS Электрика
Версия продукта: 22.0.5488.5488 x64
Версия ОС: Microsoft Windows NT 10.0.19044.0 x64

=========================================
Exception: Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DbGraphicViewerControl (ReflectionActivator), Services = [Cadwise.Graphic.Db.DbGraphicViewerControl], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor(Cadwise.Graphic.Db.IDbGraphicImporter, Cadwise.Platform.FormExtension.IDialogStack, Cadwise.Graphic.Db.ICadGraphicExtractorFromBlock)' on type 'DbGraphicViewerControl'. ---> Задание значения connectionId вызвало исключение. (See inner exception for details.) (See inner exception for details.) ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Cadwise.Graphic.Db.IDbGraphicImporter, Cadwise.Platform.FormExtension.IDialogStack, Cadwise.Graphic.Db.ICadGraphicExtractorFromBlock)' on type 'DbGraphicViewerControl'. ---> Задание значения connectionId вызвало исключение. (See inner exception for details.) ---> System.Windows.Markup.XamlParseException: Задание значения connectionId вызвало исключение. ---> System.InvalidCastException: Невозможно выполнить приведение [A]HelixToolkit.Wpf.HelixViewport3D к HelixToolkit.Wpf.HelixViewport3D. Источником типа A является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadFrom" в расположении "c:\program files\csoft\спдс graphics 2022 x64 для autocad\Xbim\HelixToolkit.Wpf.dll". Источником типа B является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadNeither" в расположении "c:\program files (x86)\csoft\project studio cs\project studio cs электрика 2022\Mod\HelixToolkit.Wpf.dll".
   в Cadwise.Graphic.UI.Geometry3DViewerControl.System.Windows.Markup.IComponentConnector.Connect(Int32 connectionId, Object target)
   в MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetConnectionId(Object root, Int32 connectionId, Object instance)
   --- Конец трассировки внутреннего стека исключений ---
   в System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   в System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   в System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   в Cadwise.Graphic.Db.DbGraphicViewerControl..ctor(IDbGraphicImporter graphicImporter, IDialogStack dialogStack, ICadGraphicExtractorFromBlock graphicExtractorFromBlock)
   в lambda_method(Closure , Object[] )
   в Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
   --- Конец трассировки внутреннего стека исключений ---
   в Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
   в Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
   в Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
   --- Конец трассировки внутреннего стека исключений ---
   в Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
   в Autofac.Core.Resolving.InstanceLookup.Execute()
   в Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
   в Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
   в Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
   в Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   в Cadwise.Platform.Platform.Container.Resolve(Type type)
   в Cadwise.Data.Forms.DbPropertyCustomControlManager.GetCustomControl(Object obj)
   в Cadwise.Data.Forms.CustomControlFinderService.GetCustomControl(IItemObject itemObject)
   в Cadwise.Data.Forms.CustomControlModel.Load(IItemObject itemObject, Boolean isReadOnly, ITreeControl control)
   в Cadwise.Data.Forms.WPF.DbPropertyPageControl.SelectObject(ITreeControl control, IItemObject itemObject)
   в Cadwise.Data.Forms.WPF.DataBaseWindow.DataBaseExplorerSelectedItemChanged(Object sender, EventArgs e)
   в System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   в Cadwise.Studio.WPF.TreeControl.TreeControl.ChangeSelection(ItemViewModel itemViewModel, Boolean isSelected)
   в Cadwise.Studio.WPF.TreeControl.TreeControl._treeView_OnSelectedItemChanged(Object sender, RoutedPropertyChangedEventArgs`1 e)
   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   в System.Windows.Controls.TreeView.ChangeSelection(Object data, TreeViewItem container, Boolean selected)
   в System.Windows.Controls.TreeViewItem.Select(Boolean selected)
   в System.Windows.Controls.TreeViewItem.OnGotFocus(RoutedEventArgs e)
   в System.Windows.UIElement.IsFocused_Changed(DependencyObject d, DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   в System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   в System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   в System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)
   в System.Windows.Input.FocusManager.OnFocusedElementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   в System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   в System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   в System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   в System.Windows.Input.FocusManager.SetFocusedElement(DependencyObject element, IInputElement value)
   в System.Windows.Input.KeyboardNavigation.UpdateFocusedElement(DependencyObject focusTarget)
   в System.Windows.FrameworkElement.OnGotKeyboardFocus(Object sender, KeyboardFocusChangedEventArgs e)
   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   в System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   в System.Windows.Input.InputManager.ProcessStagingArea()
   в System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   в System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
   в System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   в System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   в System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
   в System.Windows.UIElement.Focus()
   в System.Windows.Controls.TreeViewItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   в System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
   в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   в System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   в System.Windows.Input.InputManager.ProcessStagingArea()
   в System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   в System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   в System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   в System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   в System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   в MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   в System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   в System.Windows.Window.ShowHelper(Object booleanBox)
   в System.Windows.Window.ShowDialog()
   в Cadwise.Platform.FormExtension.ControlStackAdder`1.Show()
   в Cadwise.Data.DataSource.UserSelect(DataBaseWindow dlg, Int32 dbId)
   в Cadwise.CAE.Db.DatabaseProxyComponent.DatabaseProxyComponent.SelectDbObject(Type type, Int32 dbId)
   в Cadwise.Cad.Impl.CadCommand.CadCommandHandler.Execute(ICadCommand command)
===============================Inner Exception====================================
Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Cadwise.Graphic.Db.IDbGraphicImporter, Cadwise.Platform.FormExtension.IDialogStack, Cadwise.Graphic.Db.ICadGraphicExtractorFromBlock)' on type 'DbGraphicViewerControl'. ---> Задание значения connectionId вызвало исключение. (See inner exception for details.) ---> System.Windows.Markup.XamlParseException: Задание значения connectionId вызвало исключение. ---> System.InvalidCastException: Невозможно выполнить приведение [A]HelixToolkit.Wpf.HelixViewport3D к HelixToolkit.Wpf.HelixViewport3D. Источником типа A является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadFrom" в расположении "c:\program files\csoft\спдс graphics 2022 x64 для autocad\Xbim\HelixToolkit.Wpf.dll". Источником типа B является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadNeither" в расположении "c:\program files (x86)\csoft\project studio cs\project studio cs электрика 2022\Mod\HelixToolkit.Wpf.dll".
   в Cadwise.Graphic.UI.Geometry3DViewerControl.System.Windows.Markup.IComponentConnector.Connect(Int32 connectionId, Object target)
   в MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetConnectionId(Object root, Int32 connectionId, Object instance)
   --- Конец трассировки внутреннего стека исключений ---
   в System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   в System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   в System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   в Cadwise.Graphic.Db.DbGraphicViewerControl..ctor(IDbGraphicImporter graphicImporter, IDialogStack dialogStack, ICadGraphicExtractorFromBlock graphicExtractorFromBlock)
   в lambda_method(Closure , Object[] )
   в Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
   --- Конец трассировки внутреннего стека исключений ---
   в Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
   в Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
   в Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
===============================Inner Exception====================================
System.Windows.Markup.XamlParseException: Задание значения connectionId вызвало исключение. ---> System.InvalidCastException: Невозможно выполнить приведение [A]HelixToolkit.Wpf.HelixViewport3D к HelixToolkit.Wpf.HelixViewport3D. Источником типа A является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadFrom" в расположении "c:\program files\csoft\спдс graphics 2022 x64 для autocad\Xbim\HelixToolkit.Wpf.dll". Источником типа B является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadNeither" в расположении "c:\program files (x86)\csoft\project studio cs\project studio cs электрика 2022\Mod\HelixToolkit.Wpf.dll".
   в Cadwise.Graphic.UI.Geometry3DViewerControl.System.Windows.Markup.IComponentConnector.Connect(Int32 connectionId, Object target)
   в MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetConnectionId(Object root, Int32 connectionId, Object instance)
   --- Конец трассировки внутреннего стека исключений ---
   в System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   в System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   в System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   в Cadwise.Graphic.Db.DbGraphicViewerControl..ctor(IDbGraphicImporter graphicImporter, IDialogStack dialogStack, ICadGraphicExtractorFromBlock graphicExtractorFromBlock)
   в lambda_method(Closure , Object[] )
   в Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
===============================Inner Exception====================================
System.InvalidCastException: Невозможно выполнить приведение [A]HelixToolkit.Wpf.HelixViewport3D к HelixToolkit.Wpf.HelixViewport3D. Источником типа A является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadFrom" в расположении "c:\program files\csoft\спдс graphics 2022 x64 для autocad\Xbim\HelixToolkit.Wpf.dll". Источником типа B является "HelixToolkit.Wpf, Version=2015.1.715.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d" в контексте "LoadNeither" в расположении "c:\program files (x86)\csoft\project studio cs\project studio cs электрика 2022\Mod\HelixToolkit.Wpf.dll".
   в Cadwise.Graphic.UI.Geometry3DViewerControl.System.Windows.Markup.IComponentConnector.Connect(Int32 connectionId, Object target)
   в MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetConnectionId(Object root, Int32 connectionId, Object instance)
===================================Stack trace================================
   в System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   в System.Environment.get_StackTrace()
   в Cadwise.Studio.Utils.ExceptionLogger.GetInfo(Exception exception, String description)
   в Cadwise.Studio.Utils.ExceptionLogger.Log(Exception exception, String description)
   в Cadwise.Studio.Utils.ExceptionLogger.Log(Exception exception)
   в Cadwise.Cad.Impl.CadCommand.CadCommandHandler.Execute(ICadCommand command)
   в Cadwise.Cad.Impl.CadCommand.CadCommandRegister.Execute(ICadCommandRegistration command)

 

Здравствуйте!

Происходит конфликт библиотек, работающих с IFC, Электрики и СПДС. Вы можете при работе с БД загружать Электрику без СПДС?

Link to comment
Share on other sites

1 час назад, Электрик сказал:

загружать Электрику без СПДС

конечно можно, но в одном сеансе необходимы оба, раньше этого не происходило, как этот конфликт исключить?

Link to comment
Share on other sites

Это связано с тем что Электрика и СПДС используют одну и ту же библиотеку. Если версия библиотеки в Электрике и СПДС совпадают, то проблемы не возникает. На данный момент версии не совпали...

Есть один танец с бубном, который может помочь. Отправил его в личку.

Link to comment
Share on other sites

  • 2 weeks later...

Заметил баг по отображению информации в выносках, относящихся к стоякам. Неправильное отображение количества кабелей и, собственно групп. Позже заметил, если через стояк когда-то была проложена группа, она будет отображаться в выноске, хотя в свойствах стояка и при "раскладке кабеля в трассе" ее там нет. 

Link to comment
Share on other sites

  • 2 weeks later...

Когда-то давно сталкивался один раз с такой фигней. Теперь уже второй раз за неделю вылезает. После закрытия-сохранения-открытия проекта - все узлы становятся "разорванными" и трассы перекрашиваются в синий цвет.

Спойлер

image.thumb.png.380cc09055ad63f697026e0bbb419078.png

Edited by TrustMe
Link to comment
Share on other sites

В 02.06.2022 в 13:40, TrustMe сказал:

Когда-то давно сталкивался один раз с такой фигней. Теперь уже второй раз за неделю вылезает. После закрытия-сохранения-открытия проекта - все узлы становятся "разорванными" и трассы перекрашиваются в синий цвет.

  скрин (Скрыть контент)

image.thumb.png.380cc09055ad63f697026e0bbb419078.png

А вы с плана на план не копировали?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Tell a friend

    Love Официальный форум компании Нанософт Разработка? Tell a friend!
×
×
  • Create New...