Solved some problems with CreatePart and created a partftp.
Need to make create part call create footprint. Not the otherway.