+ fixes #0001505: Fix multiple bugs in Idf.py

This commit is contained in:
wmayer 2014-04-13 13:55:33 +02:00
parent 082aec2e6b
commit be8c5938de

View File

@ -35,11 +35,11 @@ import ImportGui
## path to table file (simple comma separated values)
model_tab_filename = FreeCAD.getHomePath()+ "/Mod/Idf/idflibs/footprints_models.csv"
model_tab_filename = FreeCAD.getHomePath()+ "Mod/Idf/idflibs/footprints_models.csv"
## path to directory containing step models
step_path=FreeCAD.getHomePath()+ "/Mod/Idf/idflibs/"
step_path=FreeCAD.getHomePath()+ "Mod/Idf/idflibs/"
ignore_hole_size=0.5 # size in MM to prevent huge number of drilled holes
EmpDisplayMode=2 # 0='Flat Lines', 1='Shaded', 2='Wireframe', 3='Points'; recommended 2 or 0
@ -242,8 +242,8 @@ def process_emp(doc,filename,placement,board_thickness):
comps=[]
for empline in emplines:
emprecords=split_records(empline)
if len( emnrecords )==0 : continue
if len( emnrecords[0] )>4 and emnrecords[0][0:4]==".END":
if len( emprecords )==0 : continue
if len( emprecords[0] )>4 and emprecords[0][0:4]==".END":
current_section=""
passed_sections.append(current_section)
if comp_PartNumber!="":