from rosreestrXml.ui.tools.KPT.egrn_tool.EgrnObXml import FactoryEgrnObj
from rosreestrXml.ui.tools.KPT.egrn_tool.egrn import parse

path_kpt=r"E:\Download\RossRestr\Выписки_ЕГРН\report-64e84c11-0f2b-4dab-8fa3-d7b443cd1e8e-PKPVDMFC-2019-06-06-053200-53-01[0].xml"
path_kpt=r"E:\Download\RossRestr\Выписки_ЕГРН\report-bcde620d-e548-4a1c-913d-d3c885a71166-OfSite-2023-03-06-1190978-72-01[0]-1.xml"
propperies={}
propperies['reverseXY']=False
propperies['points_parts']={}
propperies['points_parts']['enable']=True
propperies['points_parts']['style']='Symbol (35,0,9,"MapInfo Symbols",0,0) '
propperies['parts']={}
propperies['parts']['enable']=True
propperies['parts']['style']='Pen (1, 2, 0) Brush (1, 16777215, 16777215) '

ObjEgrn=parse(path_kpt,True)
if ObjEgrn is not None:
    obkToSave=FactoryEgrnObj(ObjEgrn,propperies)
    ()