
[Sponsors] 
[ANSYS Meshing] Error in Workbench "Unable to attach to geometry file" 

LinkBack  Thread Tools  Search this Thread  Display Modes 
March 18, 2014, 01:11 
Unable to attach to geometry file

#21 
New Member
Johnson Jose
Join Date: Mar 2014
Posts: 7
Rep Power: 12 
I made a simple cube in design moduler and saved it.
when taking mesh it starts and goes away automatically and then a x mark in mesh. error is "Unable to attach to geometry file" I tried cad configuration and also even reinstalled ansys still the issue is there... 

May 12, 2015, 17:25 

#22  
New Member
Join Date: Jan 2015
Posts: 4
Rep Power: 11 
Quote:


June 17, 2015, 16:29 
Same problem, different user

#23  
New Member
Rachel
Join Date: Oct 2014
Posts: 5
Rep Power: 12 
Quote:
Attached is a photo of this. I read somewhere that if your "SYS.mechdb" is showing a file size of 20kB (which mine is) then that means it's corrupted ( http://xansys.org/forum/viewtopic.php?p=91606 ), and found step by step how to reload it ( http://www.padtinc.com/blog/thefocu...bletorecover )... But I just tried that and I got the "Failed to load legacy database" error in the Ansys main window. Also I would rather PREVENT the corruption, especially when using built in DesignModeler!! For the record: I am not getting corrupted databases after "hardclosing" Ansys. It is within the same Ansys session, from when I create the geometry in DesignModeler, open the mechanical Model to perform meshing and loads, then closing Model, and opening it again. 

June 17, 2015, 19:56 

#24 
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 
Hi rbgamblin,
Try to use a simple model and see if its working. Did you change location from default when you where installing Ansys? I think its not able to locate your model and thats why giving error. Try reinstalling? Cheers KAPI 

June 18, 2015, 05:37 

#25  
Member
Max
Join Date: May 2015
Posts: 48
Rep Power: 11 
Quote:
I've created my Geometry by scripting in DesignModeler. When I run the Script, DesignModeler opens and the geometry creates. When I close DesignModeler it shows the green hook after Geometry in my Workbench. So it should have created the Geometry correctly. When I now want to open Mechanical it shows me the following Error: Code:
CommandFailedException: Geometry must be attached before branches can be created. In file "Z:\Diplomarbeit_HTW\MATLAB\einfache_Zahngeometrie\Running_Script.wbjn", line 2944 Edit: I just found this Code in the "DSGeometryScript.js: Code:
var pmdlg; var kUpdateFromCAD = 0; var kUpdateAllCADParameters = 1; var kUpdateChangedCADParameters = 2; var bIgnoreToolbarUpdate = false; var errorAttachCallback; var warningAttachCallback; /* START OF ATTACH METHODS */ // this funtion is sitting here just because other funtions here using it, already moved to C++: Jay 06/03/07 function progressAttachPane (filename, caption) { pmdlg = CreateActiveXObject (str_WBHTMLDialogProgId); var xf = CreateActiveXObject(str_DlgArgsProgId); xf ("wb") = wb; xf ("dlg") = pmdlg; xf ("WBScript") = WBScript; var coordinates= wb.GetNthFileName(str_SaveProgressWndCoord, "DSApplet"); pmdlg.InitialWindowPosition = coordinates; pmdlg.DoDialog (wb.hWnd, filename, xf, true, 400, 150, 0, caption, true); pmdlg.SolutionDlg = true; } function SpecificAttach (PIName, fName, existingBranch) { try { if(typeof(existingBranch) == "undefined") { g_UIHandler.GeometryHandler.SpecificAttach0(PIName, fName); RefreshMeshingOptionsPane(); } else g_UIHandler.GeometryHandler.SpecificAttach(PIName, fName, existingBranch); } catch(e) { return e.number; } return 0; } function doPlugInEasyAttach() { SpecificAttach("", ""); } function FileEasyAttach(fName) { SpecificAttach(fName, ""); } function doAttachAssembly() { WBScript.Out (localString("ID_DoAttachAssemblyMessage"), true ); } /* END OF ATTACH METHODS */ Code:
function FileEasyAttach(fName) { SpecificAttach(fName, ""); } Best regards Max Last edited by USER1234; June 18, 2015 at 06:39. 

June 18, 2015, 06:28 

#26 
Member
Piyush Aras
Join Date: Jun 2015
Posts: 34
Rep Power: 11 
I also faced same problems. But ansys workbench accepts format iges only..
so just save ur model in iges format and then import it will definetely work. 

June 19, 2015, 05:17 

#27 
Member
Max
Join Date: May 2015
Posts: 48
Rep Power: 11 

June 23, 2015, 20:28 

#28 
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 
Hi Guys,
I suggest reinstalling and checking if it is working! If it is still not working, I reckon you should contact Customer support cuz it could be a bug. Cheers KAPI 

June 26, 2015, 05:07 

#29 
Member
Max
Join Date: May 2015
Posts: 48
Rep Power: 11 
ok, I figured out that the problem isn't the Mechanical .. I've entered a new Material (Engineering Data) by scripting.
When I use a given material (Engineering Data) everything works fine .. so I have to find the failure in my Engineering Data  script. There has to be a mistake or something missing .. 

June 28, 2015, 19:51 

#30 
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 
Hi Max,
Share your script so that we can figure out the issue. Cheers KAPI 

June 29, 2015, 00:40 

#31 
New Member
manan
Join Date: Jun 2015
Posts: 3
Rep Power: 11 
Any one else have module for learning ansys ,I want it bcoz I m student of master of science and wan a use it in my proj.so


June 30, 2015, 07:21 

#32 
Member
Max
Join Date: May 2015
Posts: 48
Rep Power: 11 
This is my whole script for delete the "Structural Steel" and create a new material "31CrMoV9".
data is in some cases just an example value. Code:
EngineeringData1 = system1.GetContainer(ComponentName="Engineering Data") StrucSteel = EngineeringData1.GetMaterial(Name="Structural Steel") StrucSteel.Delete() NewMaterial_31CrMoV9 = EngineeringData1.CreateMaterial(Name="31CrMoV9") DensProperty = NewMaterial_31CrMoV9.CreateProperty(Name="Density") DensProperty = NewMaterial_31CrMoV9.GetProperty(Name="Density") newData1 = {"Temperature": ["20 [C]"],"Density": ["7730 [kg m^3]"]} DensProperty.SetData(SheetName="Density", Data = newData1) ThermExpProperty = NewMaterial_31CrMoV9.CreateProperty(Name="Coefficient of Thermal Expansion",Definition="Secant",Behavior="Isotropic") ThermExpProperty = NewMaterial_31CrMoV9.GetProperty(Name="Coefficient of Thermal Expansion") ThermExpProperty.SetData(SheetName="Coefficient of Thermal Expansion",SheetQualifiers={"Definition": "Secant", "Behavior": "Isotropic"}, Index=1,Variables=["Coefficient of Thermal Expansion"],Values=[["1.2E05 [C^1]"]]) ThermExpProperty.SetData(SheetName="Reference Temperature",SheetQualifiers={"Definition": "Secant", "Behavior": "Isotropic"}, Index=1,Variables=["Reference Temperature"],Values=[["20 [C]"]]) ElastProperty = NewMaterial_31CrMoV9.CreateProperty(Name="Elasticity",Behavior="Isotropic") ElastProperty.SetData(Variables="Young's Modulus",Values="2.1e5 [MPa]") ElastProperty.SetData(Variables="Poisson's Ratio",Values="0.3") AlternStressMeanStress = NewMaterial_31CrMoV9.CreateProperty(Name="Alternating Stress",Definition="Mean Stress") AlternStressMeanStress = NewMaterial_31CrMoV9.GetProperty(Name="Alternating Stress") AlternStressMeanStress.SetQualifier(Qualifier="Interpolation",Value="LogLog") AlternStressMeanStress.BeginBatchUpdate() AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=1,Variables=["Mean Stress"],Values=[["0 [Pa]"]]) AlternStressMeanStress.EndBatchUpdate() AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Variables=["Cycles"],Values=[["10"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Variables=["Alternating Stress"],Values=[["3999000000 [Pa]"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=1,Variables=["Mean Stress", "Cycles"],Values=[["0 [Pa]"], ["20"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=1,Variables=["Alternating Stress"],Values=[["2827000000 [Pa]"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=1,Variables=["Mean Stress", "Cycles"],Values=[["0 [Pa]"], ["50"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=2,Variables=["Alternating Stress"],Values=[["1896000000 [Pa]"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=1,Variables=["Mean Stress", "Cycles"],Values=[["0 [Pa]"], ["100"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=3,Variables=["Alternating Stress"],Values=[["1413000000 [Pa]"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=1,Variables=["Mean Stress", "Cycles"],Values=[["0 [Pa]"], ["200"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=4,Variables=["Alternating Stress"],Values=[["1069000000 [Pa]"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=1,Variables=["Mean Stress", "Cycles"],Values=[["0 [Pa]"], ["2000"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=5,Variables=["Alternating Stress"],Values=[["441000000 [Pa]"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=1,Variables=["Mean Stress", "Cycles"],Values=[["0 [Pa]"], ["10000"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=6,Variables=["Alternating Stress"],Values=[["262000000 [Pa]"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=1,Variables=["Mean Stress", "Cycles"],Values=[["0 [Pa]"], ["20000"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=7,Variables=["Alternating Stress"],Values=[["214000000 [Pa]"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=1,Variables=["Mean Stress", "Cycles"],Values=[["0 [Pa]"], ["100000"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=8,Variables=["Alternating Stress"],Values=[["138000000 [Pa]"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=1,Variables=["Mean Stress", "Cycles"],Values=[["0 [Pa]"], ["200000"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=9,Variables=["Alternating Stress"],Values=[["114000000 [Pa]"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=1,Variables=["Mean Stress", "Cycles"],Values=[["0 [Pa]"], ["1000000"]]) AlternStressMeanStress.SetData(SheetName="Alternating Stress",SheetQualifiers={"Definition": "Mean Stress", "Interpolation": "LogLog"}, Index=10,Variables=["Alternating Stress"],Values=[["86200000 [Pa]"]]) StrainLifeParam = NewMaterial_31CrMoV9.CreateProperty(Name="StrainLife Parameters") StrainLifeParam.SetData(Index=1,Variables=["Strength Coefficient"],Values=[["920000000 [Pa]"]]) StrainLifeParam.SetData(Variables=["Strength Exponent"],Values=[["0.106"]]) StrainLifeParam.SetData(Variables=["Ductility Coefficient"],Values=[["0.213"]]) StrainLifeParam.SetData(Variables=["Ductility Exponent"],Values=[["0.47"]]) StrainLifeParam.SetData(Variables=["Cyclic Strength Coefficient"],Values=[["1000000000 [Pa]"]]) StrainLifeParam.SetData(Variables=["Cyclic Strain Hardening Exponent"],Values=[["0.2"]]) TensYieldStrProperty = NewMaterial_31CrMoV9.CreateProperty(Name="Tensile Yield Strength") TensYieldStrProperty.SetData(Variables="Tensile Yield Strength",Values="650 [MPa]") CompYieldStrProperty = NewMaterial_31CrMoV9.CreateProperty(Name="Compressive Yield Strength") CompYieldStrProperty.SetData(Variables="Compressive Yield Strength",Values="650 [MPa]") TensUltStrProperty = NewMaterial_31CrMoV9.CreateProperty(Name="Tensile Ultimate Strength") TensUltStrProperty.SetData(Variables="Tensile Ultimate Strength",Values="850 [MPa]") CompUltStrProperty = NewMaterial_31CrMoV9.CreateProperty(Name="Compressive Ultimate Strength") CompUltStrProperty.SetData(Variables="Compressive Ultimate Strength",Values="0 [MPa]") Best regards, Max 

June 30, 2015, 07:34 

#33 
New Member
manan
Join Date: Jun 2015
Posts: 3
Rep Power: 11 
I want to analysis of wind turbine by CFD if u have any program for understand it then pls send me on :Mananpatel1991@yahoo.com


July 7, 2015, 09:38 

#34 
Member
Max
Join Date: May 2015
Posts: 48
Rep Power: 11 

July 7, 2015, 20:01 

#35 
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 
Hi Max,
Add below code with your previous code and see if it works! Code:
# encoding: utf8 SetScriptVersion(Version="15.0") template1 = GetTemplate(TemplateName="Engineering Data") system1 = template1.CreateSystem() EngineeringData1 = system1.GetContainer(ComponentName="Engineering Data") EngineeringData1.Edit() StrucSteel = EngineeringData1.GetMaterial(Name="Structural Steel") StrucSteel.Delete() NewMaterial_31CrMoV9 = EngineeringData1.CreateMaterial(Name="31CrMoV9") .... ... ... Cheers KAPI 

July 7, 2015, 23:49 

#36 
New Member
manan
Join Date: Jun 2015
Posts: 3
Rep Power: 11 
Kapi have you any code which can help me to make a thermal analysis of engine fins or heat exchanger or any elements ,for master thesis


July 8, 2015, 01:26 

#37 
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 
Hi Manan,
Can I suggest you to start another thread with your question. Posting random question in random thread is not very useful. Start a new thread and ask your question giving all the details you have so everyone can help you in your thesis! Cheers KAPI 

July 9, 2015, 06:42 

#38  
Member
Max
Join Date: May 2015
Posts: 48
Rep Power: 11 
Quote:
I now tried this: 1. open ANSYS Workbench > static structural > engineering data > library > new material 2. enter properties and save it (D:/Temp/31CrMoV9 3. close ANSYS and open again 4. ANSYS Workbench > static structural > engineering data > library > bottom "..." = add an existing data source from file" > chose this file which was generated seconds before 5. Error (I've added a screenshot below) Do you have a suggestion? Best regards Max 

July 9, 2015, 10:26 

#39 
Member
Max
Join Date: May 2015
Posts: 48
Rep Power: 11 
ok, I figured that problem out .. this one is working now .. but after several testing I realized, that I get a blue question mark infront of the Geometry in ANSYS Mechanical (from Workbench) even if I change the material to a listed material like Copper Alloy. I can change material manually (following several different tutorials) and get the same problem. Does anybody had a problem like this before or do I have to save the changed material again in some different way?


July 9, 2015, 22:21 

#40 
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 
Hi Max,
One of the reason for the blue question mark could be that you have not defined the full property of material. To choose new Material from the data bank use this code. Code:
#Material Selection #Accesing the Engineering data and modifying the Material engineeringData1 = system1.GetContainer(ComponentName="Engineering Data") matl1 = engineeringData1.GetMaterial(Name="Structural Steel") matl1.Delete() favorites1 = EngData.LoadFavoriteItems() library2 = EngData.OpenLibrary( Name="General Materials", Source="General_Materials.xml") matl2 = engineeringData1.ImportMaterial( Name="Aluminum Alloy", Source="General_Materials.xml") #End of Material Selection Cheers KAPI 

Tags 
error, workbench 
Thread Tools  Search this Thread 
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
ANSYS Workbench on "Uncertified" Linux Distros  hsr  CFX  289  April 20, 2023 10:23 
Workbench geometry in to ICEM  KM  CFX  2  December 21, 2007 14:45 
vitual _ real  deneb  FLUENT  3  January 22, 2007 05:31 
workbench geometry in ICEM  Ross  CFX  6  November 2, 2006 07:51 
Virtual/Real geometry.  Jack Keays  FLUENT  9  June 16, 2000 00:39 