Hello, I would like to script the creation and assignment of a reference point to a geometry set in abaqus. In the .jnl file the code is:
mdb.models['Unsieved_addCZE'].parts['PART-1'].ReferencePoint(point=(50.0, 10.0,
0.0))
mdb.models['Unsieved_addCZE'].parts['PART-1'].Set(name='RP', referencePoints=(
None, ))
#* TypeError: referencePoints[0]; found None, expecting tuple
mdb.models['Unsieved_addCZE'].parts['PART-1'].features['RP'].setValues(xValue=
150.0)
mdb.models['Unsieved_addCZE'].parts['PART-1'].regenerate()
mdb.models['Unsieved_addCZE'].parts['PART-1'].regenerate()
mdb.models['Unsieved_addCZE'].parts['PART-1'].Set(name='Set-244',
referencePoints=(
mdb.models['Unsieved_addCZE'].parts['PART-1'].referencePoints[725], ))
I would like to automate this process so I wrote a . py script with the following:
myRP= mdb.models[name].parts['PART-1'].ReferencePoint(point=(150.0, 10.0, 0.0))
r = mdb.models[name].parts['PART-1'].referencePoints
myRP_Position = r.findAt((150.0, 10.0, 0.0),)
refPoints1=(myRP_Position, )
mdb.models[name].parts['PART-1'].Set(referencePoints=refPoints1, name='RP')
Why does my code not assign the created reference point to the set? I end up having to do it manually and it is a bit annoying.