BriefFiniteElementNet / BriefFiniteElement.Net

BriefFiniteElementDotNET (BFE.NET) is a library for linear-static Finite Element Method (FEM) analysis of solids and structures in .NET
GNU Lesser General Public License v3.0
154 stars 57 forks source link

can not use the model visualizer #14

Closed mandolinable closed 4 years ago

mandolinable commented 5 years ago

I am having problem with visualizer
I am using this code to display viusalizer

ModelVisualizerControl ctrlVisualizer = new ModelVisualizerControl();
            ctrlVisualizer.ModelToVisualize = model;
            ctrlVisualizer.ShowElements = true;
            //ctrlVisualizer.ElementVisualThickness = 0.02;
            ctrlVisualizer.ShowNodes = true;
            ctrlVisualizer.ShowRigidElements = true;
            ctrlVisualizer.ShowConstraints = true;
            ctrlVisualizer.ShowNodalLoads = true;
            ctrlVisualizer.ShowNodalLoads_Force = true;
            ctrlVisualizer.ShowElements = true;
            ctrlVisualizer.DisableEditingProperties = true;
            ctrlVisualizer.ShowConstraints = true;

the message is Could not load file or assembly 'HelixToolkit, Version=2011.7.1.0, Culture=neutral, PublicKeyToken=52aa3500039caf0d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

source is "BriefFiniteElementNet.Controls"

and the satck trace at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at BriefFiniteElementNet.Controls.ModelVisualizerControl.InitializeComponent() at BriefFiniteElementNet.Controls.ModelVisualizerControl..ctor() at WpfApp1.MainWindow.Button_Click(Object sender, RoutedEventArgs e) in C:\Users\a.maher\Desktop\BriefFiniteElement\Test\TestBriefFinite\WpfApp1\MainWindow.xaml.cs:line 302

and here is the references and packages 1 2

epsi1on commented 5 years ago

Hello, I think it is because of nuget packages that are not included in git repo anymore and they need to be restored/downloaded. Can you please try to build with option 'nuget package restore' enabled (like this)

Thanks

epsi1on commented 5 years ago

Code is updated, can you please check again? thanks