CAT Profiles not working in CreateSection
kpne opened this issue · comments
Error in GsaAPI when trying to set GsaAPI.Section.Profile to a Catalogue profile:
Message:
System.Runtime.InteropServices.SEHException : External component has thrown an exception.
Stack Trace:
at Oasys.Data.CSecGeom.SetSection(CSecGeom* , CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t> > >* )
Section.set_Profile(String Profile)
GsaSection.ctor(String profile)
This was fixed by calling a method that opens an existing model from the example files when Grasshopper loads. This triggered the api to first load gsa before loading the library, it was the order of opening these that caused the error