Monday, May 18, 2009

Electrical Drawings...grump grump....

How low do I go? Electrical drawings is how low. Still, it's all part of the work and it is only occasional. Just to add to the fun I decided we needed a super duper way to extract from an Excel spreadsheet the data needed to fill out a PLC card.
This was done by saving the file as a csv file, in other words a text file, but one where the columns have been replaced by commas.
Once this has been done, PLC.lsp is flung into action in the right drawing (ie a PLC card drawing with blank spaces). This inserts all the relevant blocks with all the right info at the correct positions.
It works, but one of the problems is that the description might be on 3 lines while the spreadsheet only supplies one cell. So an advanced version of this would need to parse the description string, analyse how many words it had and split it up accordingly.
Maybe next weekend.....

1 comment:

Anonymous said...


מלון [url=]כפר בעיר[/url] - אווירה כפרית, [url=]חדרים[/url] מרווחים, שירות חדרים, אינטימיות, שלווה, [url=]שקט[/url] . אנו מספקים שירותי אירוח מיוחדים כמו כן ישנו במקום שירות חדרים הכולל [url=]אחרוחות רומנטיות[/url] במחירים מפתיעים אשר יוגשו ישירות לחדרכם!

לפרטים נוספים נא גשו לאתר האינטרנט שלנו - [url=]כפר בעיר[/url] [url=][img][/img][/url]