Hi @a.hemmatian welcome to the community.
You are getting to import the geometry with ImportInstance.ByGeometry
but instead i would suggest you to go ahead with FamilyInstance.ByGeometry
Also have a look at this thread FamilyInstance.ByGeometry doent create family - #6 by Nick_Boyts