aerospace7
Aerospace
- May 18, 2016
- 7
hi all,
first of all sorry for my bad english.
i am finding problems in creating a set with 4 faces. this faces are obtained with the command getByBoundingBox(...). Now the output of this command is a FaceArray object, which is a sequence of Face objects, that i can use for generate a set. I only need the first two elements of this array for generate my Set, and here comes the issues. Abaqus gives me the error: FEATURE CREATION FAILED. where is the error in my script?
facesinthebox=mdb.models['Model-1'].parts['Gruppo Ordinate'].faces.getByBoundingBox(-C2[0]-100,-C4[1],-CMX-wwb/2-Lo,C2[0]+100,C4[1],-CMX-wwb/2)
upperfaces=[]
upperfaces.append(facesinthebox[0])
upperfaces.append(facesinthebox[1])
mdb.models['Model-1'].parts['Gruppo Ordinate'].Set(faces=upperfaces,name='Set-1')
if i use this command:
mdb.models['Model-1'].parts['Gruppo Ordinate'].Set(faces=faceinthebox,name='Set-1')
there is no problems.
if i use this commands:
mdb.models['Model-1'].parts['Gruppo Ordinate'].Set(faces=(faceinthebox[0],faceinthebox[1]),name='Set-1')
still get the same error as before. where am I doing wrong?
first of all sorry for my bad english.
i am finding problems in creating a set with 4 faces. this faces are obtained with the command getByBoundingBox(...). Now the output of this command is a FaceArray object, which is a sequence of Face objects, that i can use for generate a set. I only need the first two elements of this array for generate my Set, and here comes the issues. Abaqus gives me the error: FEATURE CREATION FAILED. where is the error in my script?
facesinthebox=mdb.models['Model-1'].parts['Gruppo Ordinate'].faces.getByBoundingBox(-C2[0]-100,-C4[1],-CMX-wwb/2-Lo,C2[0]+100,C4[1],-CMX-wwb/2)
upperfaces=[]
upperfaces.append(facesinthebox[0])
upperfaces.append(facesinthebox[1])
mdb.models['Model-1'].parts['Gruppo Ordinate'].Set(faces=upperfaces,name='Set-1')
if i use this command:
mdb.models['Model-1'].parts['Gruppo Ordinate'].Set(faces=faceinthebox,name='Set-1')
there is no problems.
if i use this commands:
mdb.models['Model-1'].parts['Gruppo Ordinate'].Set(faces=(faceinthebox[0],faceinthebox[1]),name='Set-1')
still get the same error as before. where am I doing wrong?