LS-PrePost: Documented Python command 'partofelem_id' don't work (runtime error)

ThomasDD
Member Posts: 23
**
Here all Python DataCenter commands for LS-PrePost are listed (page 183 and following):
https://ftp.lstc.com/anonymous/outgoing/lsprepost/SCLexamples/lsppscripting.pdf
But if you try my example inside LS-PrePost, you get the element connectivity but not the partID: "RuntimeError: There is no partofelem_id"
import DataCenter as dc elemID = 10 elem_nodes = dc.get_data('element_connectivity', type=dc.Type.SOLID, id=elemID) print(elem_nodes) partID = dc.get_data('partofelem_id', type=dc.Type.SOLID, id=elemID) print(partID)
What is the problem? Wrong implemented function or wrong documentation?
Tagged:
0