pycatia.scripts.csv_tools.convert_units(number, unit)¶Convert input ‘length’ from unit to millimeters.
number –
unit (str) – A string representing the unit ‘mm’, ‘in’, ‘cm’, ‘m’, ‘mile’, ‘km’
pycatia.scripts.csv_tools.create_points(part, file_name, units='mm', geometry_set_name='New_Points')¶Parses a csv file in the format defined in csv_reader() and populates the geometry_set_name with new
points. Once complete the part is updated.
part (Part) –
file_name (str) – full path to csv file.
units (str) – length units of csv_file eg ‘in’
geometry_set_name (str) – name of new geometrical set in which to add points.
pycatia.scripts.csv_tools.csv_reader(file_name, units, delimiter=',')¶file_name – full path to csv file.
units –
delimiter –
generator()