CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [ANSYS Meshing] Error in Workbench "Unable to attach to geometry file" (https://www.cfd-online.com/Forums/ansys-meshing/106692-error-workbench-unable-attach-geometry-file.html)

USER1234 July 10, 2015 02:49

Quote:

Originally Posted by Kapi (Post 554787)
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 July 10, 2015 06:47

1 Attachment(s)
.. at the end it was quite easy to solve this mistake :D

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

Kapi July 12, 2015 19:28

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 July 13, 2015 21:43

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 July 13, 2015 22:20

1 Attachment(s)
Object reference not set to an instance of an object

USER1234 July 14, 2015 00:16

Quote:

Originally Posted by Kapi (Post 555322)
Object reference not set to an instance of an object

These same problem pops up when I also run my code ..

Kapi July 14, 2015 19:58

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

heavenlysins August 5, 2015 11:14

Error after importing geometry.
 
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.

Kapi August 5, 2015 19:57

could you post pic of your geometry?


Cheers
KAPI

heavenlysins August 6, 2015 09:41

Thanks For the reply
 
1 Attachment(s)
I have attached the picture as you asked.

Kapi August 6, 2015 18:29

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

heavenlysins August 7, 2015 08:56

1 Attachment(s)
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.?

Kapi August 9, 2015 21:10

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

heavenlysins August 10, 2015 13:47

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 August 10, 2015 14:35

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 ?

Kapi August 10, 2015 19:05

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

heavenlysins August 11, 2015 01:54

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?

Kapi August 11, 2015 02:01

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.

heavenlysins August 11, 2015 08:19

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.

Kapi August 11, 2015 18:47

No Worries!


All times are GMT -4. The time now is 20:37.