Exel for civil engineer

Page 222

Examplee 1 shows how h to draaw a line using script written manually. For line depiction which co omprises many m segmeents (tens or o hundredss), the man nual method d is rarely used. u Creatingg AutoCAD sscript on a w worksheet iss a way to ssimplify and d shorten the job of creating AutoCAD D drawings, by relyingg on the Excel menu such as Co opy, Paste, and its bu uilt‐in function ns. Examplee 2 Examplee 1 is now m made on the worksheet as follows:

Prior to the first co oordinates entry of (0,0) after th he Line com mmand it must m be giv ven 1 blank sp pace to execcute the com mmand, the same is done by presssing Enter iin AutoCAD. The second ccoordinatess of (1,1) an nd so on, sh hould be plaaced in diffeerent line th hat is on celll C4, C5, and sso on, so as to be able tto write the next script by copyingg the formula on cell C4 4. The last coorrdinates of ((3,3) on cell C6, need tto be added d a blank spaace at the eend of the lin ne to end the L Line command: =A6&","& &B6&" " Next is to create a script file wiith the follow wing steps: 6, then Cop py by click king the Copy icon on n the toolbaar or 1. Seelect a rangge C3 to C6 prressing Ctrl+ +C.

2. Op pen Notepad program, and then Pa aste (Ctrl + V) the rangge.

An Introd duction to E Excel for Civiil Engineerss

215


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.