Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Abaqus Scripting: Using SolidSweep Method

Status
Not open for further replies.

rahuldeshmukh

Mechanical
Feb 20, 2018
1
Hi I am a new user to abaqus scripting.
I am trying to generate a 3D solid Sweep body using the Solid Sweep method the code is as follows:

from abaqus import *
from abaqusConstants import *
#creating a model
springModel=mdb.Model(name='Spring')
import part
spring_coord= ((0.0,0.0,0.0),(0.0,0.0,10.0),(0.0,10.0,10.0),(10.0,10.0,10.0))
wire_dia=2
springPart = springModel.Part(name='Spring',dimensionality= THREE_D, type=DEFORMABLE_BODY)
temp_wire=springPart.WirePolyLine(points=spring_coord,mergeType=SEPARATE)
springPart.DatumPointByCoordinate((0.0,0.0,0.0))
springPart.DatumPointByCoordinate((1.0,0.0,0.0))
springPart.DatumPointByCoordinate((0.0,1.0,0.0))
p1=springPart.datums[2]
p2=springPart.datums[3]
p3=springPart.datums[4]
springPart.DatumPlaneByThreePoints(point1=p1,point2=p2,point3=p3)
springPart.DatumAxisByTwoPoint(point1=p1,point2=p3)
springSketch= springModel.ConstrainedSketch(name = 'Spring', sheetSize=2*wire_dia)
springSketch.CircleByCenterPerimeter(center=(0.0,0.0),point1=(wire_dia/2,0.0))
wireregion = springPart.edges.findAt(spring_coord[0])
springPart.SolidSweep(path=wireregion,profile=springSketch.geometry.findAt((wire_dia/2,0.0)),sketchPlane=springPart.datums[5],sketchUpEdge=springPart.datums[6],sketchOrientation=LEFT)


When i execute the solidSweep method it gives me the error that no geometry edges found. I have provided arguments to the method as required by the documentation. I am making a very basic mistake here, could anyone point out?
 
Replies continue below

Recommended for you

I would recommend to uncomment the last line, start A/CAE, run the script and then do some tests in the Python-interpreter to check if the data you refer to is found.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor