×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

invalid syntax on an Abaqus script with sheetSize and gridSpacing

invalid syntax on an Abaqus script with sheetSize and gridSpacing

invalid syntax on an Abaqus script with sheetSize and gridSpacing

(OP)
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

RE: invalid syntax on an Abaqus script with sheetSize and gridSpacing

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.

RE: invalid syntax on an Abaqus script with sheetSize and gridSpacing

hi pitrois33
can you describe your issue clearly because sheet size does not affect (zwtipp05 is right). I can help you.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources