Jump to content

insert block from .txt


rookie37

Recommended Posts

This program inserts a block for a text file. I need to modify it so that it inserts different blocks.

 

This is a drawing of a human sundial. Simply paint it on the concrete, stand on the month and your own shadow says what time it is. The inner and outer ellipse are the hours. (two rows because of daylight savings time) This sundial only works for the longitude and latitude that it was designed for.

 

The 12 small circles in the center are the months.

 

the 31 to 44 coordinates in the text file are the months, (I don't have 14 months. 2 months are entered twice)

 

I need to modify this program so that the coordinates 31 - 44 will each insert a pre defined block. (last 14 in sun.txt)

 

For example 31st coordinate will insert the july block. The 42nd coordinate will insert the october block

 

Will someone help me?

 

 

Actually if it would be easier, you can change it to read a .csv instead of a .txt file

sun.txt

insertblockfromtext.lsp

analemmatic sundial.dwg

Link to comment
Share on other sites

One idea is to make a program that will copy sun.txt into 15 different files each with different names. hour.txt, jan.txt, feb,txt.......

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...