CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

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

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2015, 02:49
Default
  #41
Member
 
Max
Join Date: May 2015
Posts: 48
Rep Power: 10
USER1234 is on a distinguished road
Quote:
Originally Posted by Kapi View Post
use this code.
Hi KAPI, thanks for answering. I tried your code ... which looked like my code from yesterday .. and it doesn#t come up with an error, but it still shows my the blue question mark infront of the Geometry icon in ANSYS Mechanical ..

Best regards,

Max
USER1234 is offline   Reply With Quote

Old   July 10, 2015, 06:47
Default
  #42
Member
 
Max
Join Date: May 2015
Posts: 48
Rep Power: 10
USER1234 is on a distinguished road
.. at the end it was quite easy to solve this mistake

I just had to do an assignment for the Solid in ANSYS Mechanical. Now I have the problem that I can't select my created material in "assignment".

Code:
ListView.ItemValue = "31CrMoV9";
doesn't work!

If you see my attachment below, the "selection-window" looks different to other adjustments like "Reference Temperature" above for example. Do you know what I mean and could give me a hint how to call this type of selection?

Best regards
Attached Images
File Type: png select_material_Assignment.png (10.8 KB, 27 views)
USER1234 is offline   Reply With Quote

Old   July 12, 2015, 19:28
Default
  #43
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14
Kapi is on a distinguished road
Hi Max,

Could you post your code above and below the following code?
Code:
ListView.ItemValue = "31CrMoV9
I am not able to figure out how you are assigning it!

If you are deleting Steel and adding this "31CrMoV9" as default Material then it should pick on it own under assignment.

The window in your attachment is normal, just "reference Frame" is not added under "reference Temperature" which shouldn't a big issue I guess!

Like I previously posted, When you use this code after adding this material
Code:
matl2 = engineeringData1.ImportMaterial(
Name="31CrMoV9",
Source="General_Materials.xml") 
#End of Material Selection
Then it should put 31CrMoV9 as a default material and you dont have to assign.
Send me your codes how you are assigning and I will have a look.

Cheers
KAPI
Kapi is offline   Reply With Quote

Old   July 13, 2015, 21:43
Default
  #44
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14
Kapi is on a distinguished road
Hi Max,

I checked your code, it looks fine to me.
I tried running your code as well and yes it gives "Unknown exception" at
Code:
ListView.ItemValue = "31CrMoV9";
I tried to debug it but it is not giving me any solution.
The code is able to go in "Assignment" and click to get list of option which I can see when I run the code. The only problem is that it is not selecting specified material from the given list. Once you select the material manually, it puts the material in specified position but gives "script error code 80004005".
I need to try few different combination of codes and see how we can work it out.
I will let you know when I get a solution for this.

Cheers
KAPI
Kapi is offline   Reply With Quote

Old   July 13, 2015, 22:20
Default
  #45
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14
Kapi is on a distinguished road
Object reference not set to an instance of an object
Attached Images
File Type: png Capture.PNG (31.5 KB, 13 views)
Kapi is offline   Reply With Quote

Old   July 14, 2015, 00:16
Default
  #46
Member
 
Max
Join Date: May 2015
Posts: 48
Rep Power: 10
USER1234 is on a distinguished road
Quote:
Originally Posted by Kapi View Post
Object reference not set to an instance of an object
These same problem pops up when I also run my code ..
USER1234 is offline   Reply With Quote

Old   July 14, 2015, 19:58
Default
  #47
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14
Kapi is on a distinguished road
Code needs to be changed!
try to put your new material in "generalmaterials.xml" where you are deleting Structural steel from rather than creating your own data storage . I think that way it should take your new material as default material.
I am not sure but give it a try.

Cheers
KAPI
Kapi is offline   Reply With Quote

Old   August 5, 2015, 11:14
Unhappy Error after importing geometry.
  #48
New Member
 
Join Date: May 2015
Posts: 14
Rep Power: 10
heavenlysins is on a distinguished road
Hello Guys ,
Thank you for your posts. I had the same problem importing .*prt file into ansys so I took your advice and changed the file into .igs format.
I imported the geometry into Ansys and it worked.
But now I am facing a new problem. As I open up my model in Static Structural, the geo as a missing thickness and I have no idea what to do then . I tried inputting a random value "1meter" for thickness but it wouldn't mesh.
Does anyone else have the same problem. I really need to fix this as soon as possible and be done with my Analysis.
It would be awesome if some one can help me out with this.

Thanks in Advance.
heavenlysins is offline   Reply With Quote

Old   August 5, 2015, 19:57
Default
  #49
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14
Kapi is on a distinguished road
could you post pic of your geometry?


Cheers
KAPI
Kapi is offline   Reply With Quote

Old   August 6, 2015, 09:41
Default Thanks For the reply
  #50
New Member
 
Join Date: May 2015
Posts: 14
Rep Power: 10
heavenlysins is on a distinguished road
I have attached the picture as you asked.
Attached Images
File Type: jpg error.jpg (35.0 KB, 24 views)
heavenlysins is offline   Reply With Quote

Old   August 6, 2015, 18:29
Default
  #51
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14
Kapi is on a distinguished road
heavenlysins,

I think you have not checked Import Solid Bodies and Import Surfaces both in
the Preferences. thats why it is coming as only surface with no thickenss.

Cheers
KAPI
Kapi is offline   Reply With Quote

Old   August 7, 2015, 08:56
Default
  #52
New Member
 
Join Date: May 2015
Posts: 14
Rep Power: 10
heavenlysins is on a distinguished road
Preferences in the sense options from tools right?
please check the picture to make sure that I am on the right page.
Solid Bodies and surface bodies both have already been checked, I still get the error. Is there anything else that I have to check with before importing.?
Attached Images
File Type: jpg Preferences.jpg (43.7 KB, 11 views)
heavenlysins is offline   Reply With Quote

Old   August 9, 2015, 21:10
Default
  #53
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14
Kapi is on a distinguished road
Yes, I was talking about those preferences.
I am trying to think what else could stop you from importing solid body cuz u r only getting Surface body in Static structural hence no thickness.
Try other format to import your geometry, other than .iges say Parasolid format(.x_t) if you are able to do it.

Cheers
KAPI
Kapi is offline   Reply With Quote

Old   August 10, 2015, 13:47
Default
  #54
New Member
 
Join Date: May 2015
Posts: 14
Rep Power: 10
heavenlysins is on a distinguished road
I tried Step, iges and autocad formats as they were my only options.
Nothing worked except Iges.
Can you help me in converting *prt format into Parasolid format.
heavenlysins is offline   Reply With Quote

Old   August 10, 2015, 14:35
Default
  #55
New Member
 
Join Date: May 2015
Posts: 14
Rep Power: 10
heavenlysins is on a distinguished road
Okay, i Used cad exchanger software to change the format into parasolid and tried importing .
Its still the same.
does it have anything to do with how it was actually designed in NX9 ?
heavenlysins is offline   Reply With Quote

Old   August 10, 2015, 19:05
Default
  #56
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14
Kapi is on a distinguished road
I am not sure if it has anything to do with NX9.
Do you have Ansys Configured in NX?
if Not then you can do it by "ANSYS CAD Configiuration Manager"
This way you dont have to export geometry as you will have Ansys Tab and it will automatically load your geometry in Ansys from NX

Cheers
KAPI
Kapi is offline   Reply With Quote

Old   August 11, 2015, 01:54
Default
  #57
New Member
 
Join Date: May 2015
Posts: 14
Rep Power: 10
heavenlysins is on a distinguished road
Yeah i had that in mind too but i have a cracked version of ansys 15.0 on my personal laptop and a licensed version of NX on my desktop.
So cant try that right. ?
Is it because of the version of ANSYS and NX?
As my ansys is 15.0 . is that wat is causing the problem?
heavenlysins is offline   Reply With Quote

Old   August 11, 2015, 02:01
Default
  #58
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14
Kapi is on a distinguished road
I am not sure about cracked version mate.
Not sure if NX9 works with Ansys15 either.
I know NX8 works with Ansys15 that is all, cant help u much with it mate.
Kapi is offline   Reply With Quote

Old   August 11, 2015, 08:19
Default
  #59
New Member
 
Join Date: May 2015
Posts: 14
Rep Power: 10
heavenlysins is on a distinguished road
Oh great. I thought so. The versions are always a pain in the ass.

Thank You so much KAPI for all the help.
I appreciate it.
heavenlysins is offline   Reply With Quote

Old   August 11, 2015, 18:47
Default
  #60
Senior Member
 
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14
Kapi is on a distinguished road
No Worries!
Kapi is offline   Reply With Quote

Reply

Tags
error, workbench


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:47.