Wibbs13
Mechanical
- Jan 31, 2014
- 4
I am attempting to make a code which will automatically assign a part object variable, say myPart, to the part that is active in my Abauqs/CAE GUI.
Ex 1) ** Hard Coding
myPart= mdb.models['Model-1'].parts['Part-1']
Ex 2) ** User Inputs
modName = getinput ('Enter Model Name')
partPame = getinput ('Enter Part Name')
myPart = mdb.models[modName].parts[partName ]
Rather than using methods as defined above, I am search for something like
myPart = activePartInGuiDisplay (or whatever is needed to accomplish such an action)
Any help is appreciated.
Much Thanks,
-Wibbs13
Ex 1) ** Hard Coding
myPart= mdb.models['Model-1'].parts['Part-1']
Ex 2) ** User Inputs
modName = getinput ('Enter Model Name')
partPame = getinput ('Enter Part Name')
myPart = mdb.models[modName].parts[partName ]
Rather than using methods as defined above, I am search for something like
myPart = activePartInGuiDisplay (or whatever is needed to accomplish such an action)
Any help is appreciated.
Much Thanks,
-Wibbs13