Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

invalid syntax on an Abaqus script with sheetSize and gridSpacing

Status
Not open for further replies.

pitrois33

New member
Aug 25, 2014
1
Good morning everyone,

I am required to do a script whih genrates a specific geometry on Abaqus.
To do that I firstly did the geometry on Abaqus and recorded it by using the macro tool.
So I was able to put into order the script.
Then I defined the necessary parameters for having an isometric constrained sketch. So with the a list of tuples and the getInputs tools the user would be able to generate a geometry by specifying the values he wants to for it.

Each of the coordinates are covered, the matter is the script can't be executed on Abaqus as there is the Error "invalid syntax" dealing with following line:
s1 = mdb.models['Model-1'].ConstrainedSketch(name='__profile__', sheetSize=130.93, gridSpacing=3.27, transform=t)

It seems I have to define pricisely the sheetSize and the gridSpacing according to the geometry parameters. I tried to use them to define a window with enough space for containing the geometry, but it did not work and Abaqus documentation does not seem to describe this kind of issue, for what I read...

Any idea would be a start to the pursuit of this work and I would be greatful to you,

Thank you !

pitrois33
 
Replies continue below

Recommended for you

Does it work without the transform option?

I don't think the sheet size and grid spacing should matter that much. Since it's a syntax error though, I'd double check that all the lines before that have properly close parentheses, brackets, etc. I've notice the syntax error for that isn't always on the line containing the actual error.
 
hi pitrois33
can you describe your issue clearly because sheet size does not affect (zwtipp05 is right). I can help you.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor