Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why names become all upper cases after importing? 1

Status
Not open for further replies.

roudan

Geotechnical
Sep 7, 2020
38
Hi

I am using python to import mdb from odb, the part name, node sets , surface names etc all become upper cases.  

myModel=mdb.ModelFromOdbFile(name='case2', odbFileName=odbname)

Now if I want to access the node set name, I have to use upper cases like this .upper(). I am wondering if it is possible to keep the same case when importing.

bottom_face_region=modelAssembly.sets['Set-Bottom-Face'.upper()]

Thanks
 
Replies continue below

Recommended for you

The Abaqus solver is using all upper case as a method to make the names case-insensitive. To preserve case you may put "double quotes" around your names in the .inp file.

Abaqus CAE does not permit "double quotes" in names but it will automatically add them if your name contains spaces so you should rename Set-Bottom-Face to Set Bottom Face which should force it to use "quotes" in the inp file and the solver should preserve case (and you will need to match case exactly in references to this name).
 
Thank you oldNail. I am glad to know that. May I ask where the manual says that? Thanks
 
It's in the Input Syntax Rules which I keep under my pillow.

Manual said:
When the parameter value is a character string that represents the name of an item, you should not use case as a method of distinguishing values unless the values are enclosed within quotation marks.
 
Thank you oldNail. I appreciate your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor