Amigo @harry_zhao buenas. when you use the node, FamilyType.ByGeometry you are only making the definition of family type, is like only load the family into the file, you are not creating any instance, you need create instances after, you should use Family instance by point or by point and level in order to create instances of this family type, i let you link to a similar post.