Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Questions about Abaqus AM Plug-in (convert Gcodes to event series) 1

Status
Not open for further replies.

uolvs

Materials
Sep 16, 2020
8
Hi everyone,

My question is that: after downloading the file generateEventSeries.py,

where should I put it in?
and what should I do to use it to convert my Gcode file to event series files?

As the article 'Toolpath-Mesh Intersection Module and Built-in User Subroutines for Additive Manufacturing Process Simulation' is unavailable from abaqus knowledge base at the moment, I don't know how to operate this step.
I hope someone else can help me!
 
Replies continue below

Recommended for you

You can place the script in any directory and then open command line there and type:

abaqus python generateEventSeries.py g-code_file_name roller_pad_dimension delay_between_layers power

where: roller_pad_dimension - extent to which the roller startong point and end point are extended from min Y and max Y coordinate of the model for each layer (value between 0 and 1), delay_between_layers - time taken for the roller to deposit material
 
Hi FEA way,
Thank you for your help.
But I am still not sure which command line you mean, abaqus command?
By the way, should I put the gcode file together with generateEventSeries.py in the same folder?

 
To open the command line go to selected directory, press SHIFT+RMB and click "Open command window here" or "Open PowerShell window here" (depending on the version of your operating system).

Yes, the g-code file should be placed in the same location as the script.
 
Hi FEA way,
According to your method, and I typed:
abaqus python generateEventSeries.py cube.gcode 0.5 10 100
but it shows an ImportError: No module named GcodeReader.

Is there anything I need to edit in the generateEventSeries.py file?

Thank you again in advance.
 
I attached the error in detail.

Traceback (most recent call last):

File "generateEventSeries.py", line 68, in <module>

import GcodeReader as myGcode

File "SMAPython\SMAPytLibPy.m\src\site.py", line 120, in _numpyHook

"""Append ./build/lib.<platform> in case we're running in the build dir

ImportError: No module named GcodeReader
 
Try with the smallcube.gcode exemplary file provided in the package that you've downloaded. Keep in mind that the script is designed to be used with g-code generated by ReplicatorG software. Otherwise you would have to edit the script.
 
Hi FEA way,

There is only one script named 'generateEventSeries.py' in the package, and I didn't find other examples.

I think the main problem is that:

Inside the generateEventSeries.py, I find one line code 'import GcodeReader as myGcode', but I don't have that GcodeReader module in my python side-packages or in the package I downloded.

And I don't know which Gcodereader they used or just written by authors because I haven't find it from PyPI or Github so far.

Did you try that script?
 
Yes, I used this script on the aforementioned exemplary file (smallcube.gcode). Do you have the GcodeReader.py script in the same folder as generateEventSeries ? It should be provided in the package.
 
No, there was nothing, just generateEventSeries.py. Would you please share the GcodeReader.py script with me? Maybe also the LayerObjectReader.py. Thanks a lot!!!
 
I don't know where to download these files again, because the Abaqus knowledge base is unavailable at the moment, and I really don't want to be hindered by this problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor