Sunday, February 28, 2016

webautocad- WEB BASED OPEN SOURCE AUTOCAD

This is a software similar to autocad. It is a fully open source both source code and output.This softawre is developed in HTML and Javascript only.It works in almost all browsers.So It is platform independent. Since it is an initial step to develop autocad working in web based browsers, only few features of autocad are included. You can see the source code of this sofware by view source in browsers and save it as html file to work as stand alone in your computers. No external files are included/linked in the source code. Simple comments of functions are also included for developers to understand the source code. The drawing file is also saved as text(ASCII) file which can be opened in any text editor like notepad.I wish all enjoy web based autocad.

The link for the software is http://www.nirt.in/webcad/webcad.htm

The link for user manual is http://www.nirt.in/webcad/WEBAUTOCAD USER MANUAL.PDF

The link for Android version is https://play.google.com/store/apps/details?id=com.sugumaran.webautocad 

Monday, April 21, 2014

SVG- FOR WEB BASED GIS APPLICATION

SVG-Scalable Vector Graphics  in web GIS

I used SVG and XML and web database made simple and developed a web page for showing Tamilnadu Rainfall data in GIS.
The link for the web page is http://www.nirt.in/xmlsvg1.htm

The xml file used for polygon objects is http://www.nirt.in/rbasin.xml

The xml file used for point objects is http://www.nirt.in/tnrfl1.xml

The source code of the xmlsvg.htm can be viewed from view source facility in browser. No external links are provided for any javascript files. The web database used is explained in the link provided for web database made simple.

Yours,
MKSugumaran

Thursday, March 13, 2014

Web-Based JavaScript Spreadsheet Software

Web-Based JavaScript Spreadsheet Software

This spread sheet application is fully developed in html and javascript. The source code can be viewed and copied and pasted and saved in anyfile.htm and run in local machine also. No external files are linked in the source code. The spread sheet contents are saved in simple text format in notepad and loaded from the contents of notepad.
The following chapters are covered in this spread sheet
This can be opened in the following link: http://www.nirt.in/webxl

1.You will see the following page in your web browser.

2.Selecting Cells in the Spread sheet.

3.Entering texts and values in the cells.

4.Doing Calculations in spreadsheet.

5.Copy and Paste functions  in this spreadsheet.

6.Saving the spread sheet.

7.Loading  the spread sheet from saved file.

8.Loading  in Microsoft Excel spread sheet from saved file.

9.OPEN SOURCE DATA:

10.String functions:

11.Format functions:

12. Solution of simultaneous equations in spreadsheet:

13. Javascript programming within spreadsheet:

14. Shortcut keys:


The link for web based spread sheet application is http://www.nirt.in/webxl 
Next Improved version with fx toolbar is available in the following link:
http://www.nirt.in/webxl/webxl.htm  

 The Android version of this spread sheet is available in the following link:
https://play.google.com/store/apps/details?id=com.sugumaran.webxl 

The link for manual for web based spread sheet application is http://www.nirt.in/webxl/manualforwebxl.pdf

Yours,
MKSugumaran

The new webautocad http://mksugumaran.blogspot.in/2016/02/webautocad-web-based-autocad.html

Monday, November 11, 2013

SECAREA SOFTWARE IN AUTOCAD ENVIRONMENT

THIS IS USER'S MANUAL FOR CADMAX'S SECAREA PROGRAM, WHICH WILL BE
USEFUL FOR PLOTTING LEVELS OF CROSS SECTIONS AND CALCULATING
CUTTING AND FILLING AREAS AND VOLUMES.

DOWNLOAD FROM FOLLOWING LINK
http://www.nirt.in/software/secarea.zip

Installation of AutoCAD 2000 or higher version software had to be preloaded in your computer for loading this SECAREA SOFTWARE with VBA enabled and follow the steps listed below:

STEP.1.
    Unzip the SECAREA SOFTWARE downloaded.
STEP.2.
    Using windows explorer copy all the unzipped files in a folder C:\SECAREA.
STEP.3.
    Now Select all the files in the folder using windows explorer and check for properties of files and if they are read-only files uncheck read only option.
STEP.4.
    Then close the windows explorer.
STEP.5.
    Right-click on the existing AutoCAD icon and then click on the “create shortcut” option to create a new AutoCAD icon.

STEP.6.
    Right-click on the new AutoCAD icon and then click on the “Rename” option to rename the icon as SECAREA icon.

STEP.7.
    Right-click on the new SECAREA icon and then click on the “Properties” option to set the new properties. In the properties dialog box change the Start in folder as “C:\SECAREA” that is where the software is copied and then apply and close the properties dialog box.

STEP.8.
    Double click on the new  SECAREA  icon  to start AutoCAD .

STEP.9.
           Click the Tools menu and then click Customise menus to load the SECAREA.MNC file in the C:\SECAREA folder and insert the CADMAX pop-up menu before Help menu. For AutoCAD 2007 or higher version CADMAX.CUIX file HAS TO BE CREATED FROM CADMAX.MNU FILE AND LOADED IN THE MENU.

Now the SECAREA software is loaded and ready to run through pop-up menu or equivalent commands at the command prompt.

1.START AUTOCAD FROM SECAREA ICON.

2.AT THE COMMAND PROMPT GIVE THE FOLLOWING COMMAND.
  COMMAND:(LOAD"SECAREA")
  (NOW THE SECAREA-PROGRAM IS LOADED.)

3.AT THE COMMAND PROMPT GIVE "SECMODEL" COMMAND TO DRAW SECTION SHEET
  OF REQUIRED SIZE.(TEMPLATE)
  COMMAND:SECMODEL
  ENTER X-DISTANCE:<30/40/50/100/150>:30
  ENTER Y-DISTANCE:<10/15/20/30/50>:10
  ENTER X-SCALE PER UNIT:1
  ENTER Y-SCALE PER UNIT:1
  ENTER DATUM LEVEL IN M.:150
  (NOW YOU WILL SEE A SECTION TEMPLATE IN THE DRAWING SCREEN)

4.AT THE COMMAND PROMPT GIVE "PRELVL" COMMAND TO DRAW PRE-LEVELS.
  COMMAND:PRELVL
  ENTER START POINT OF SECTION ON THE DATUM:<PICK A POINT ON THE DATUM>
  (the above start point will be asked at the starting of first level only)
  Enter total distance<+/->,Levels at that point:0,153.4
  Enter total distance<+/->,Levels at that point:0.9,153.35
  Enter total distance<+/->,Levels at that point:2.9,153.3
  Enter total distance<+/->,Levels at that point:4.9,153.31
  Enter total distance<+/->,Levels at that point:6.9,153.29
  Enter total distance<+/->,Levels at that point:8.9,153.325
  Enter total distance<+/->,Levels at that point:10.9,153.390
  Enter total distance<+/->,Levels at that point:12.9,153.250
  Enter total distance<+/->,Levels at that point:14.9,153.295
  Enter total distance<+/->,Levels at that point:15.9,153.300
  Enter total distance<+/->,Levels at that point:16.7,153.330
  Enter total distance<+/->,Levels at that point:<enter>
  (NOW YOU WILL SEE THE PRE-LEVELS DRAWN IN THE SCREEN)

5.AT THE COMMAND PROMPT GIVE "FORLVL" COMMAND TO DRAW FORMATION LEVELS.
  COMMAND:FORLVL
  Enter total distance<+/->,Levels at that point:0,153.4
  Enter total distance<+/->,Levels at that point:0.9,152.930
  Enter total distance<+/->,Levels at that point:15.9,152.930
  Enter total distance<+/->,Levels at that point:16.7,153.330
  Enter total distance<+/->,Levels at that point:<enter>
  (NOW YOU WILL SEE THE FORMATION LEVELS DRAWN IN THE SCREEN)
  (IF YOU WANT TO EDIT FORMATION LEVELS YOU CAN DO IT BY AUTOCAD
  LINE COMMAND)

6.AT THE COMMAND PROMPT GIVE "CALAREA" COMMAND TO CALCULATE SECTION AREA.
  COMMAND:CALAREA
  Enter L.S.Value:0
  Select pre-levels only:<select pre-levels drawn>
  Select for-levels only:<select for-levels drawn>
  (NOW THE CUTTING AND FILLING AREAS ARE CALCULATED AND PRINTED IN THE
   DRAWING)
   a)YOU CAN SEE THE CALCULATION SHEET IN THE FILE NAME "C0.OUT".
   b)YOU CAN SEE THE PRE-LEVELS IN THE FILE NAME "P0.LVL".
   c)YOU CAN SEE THE FOR-LEVELS IN THE FILE NAME "F0.LVL".
   d)THE CURRENT DRAWING WILL BE SAVED IN FILE NAME "S0.DWG".
   (YOU CAN OPEN AND SEE THE CONTENTS OF THE ABOVE FILES IN NOTEPAD)
   (TO VIEW THE ABOVE FILES OF OTHER L.S.VALUES, SUBSTITUTE RESPECTIVE
    L.S.VALUES IN PLACE OF "0" IN THE ABOVE FILENAMES)

7.AT THE COMMAND PROMPT GIVE "SECNEW" COMMAND TO DRAW NEW SECTIONS.
  COMMAND:SECNEW
  (NOW YOU WILL SEE AN EMPTY SECTION SHEET WHICH IS READY TO DRAW
   NEW SECTIONS)

8.AT THE COMMAND PROMPT GIVE "VOLUME" COMMAND TO CALCULATE CUTTING AND
  FILLING QUANTITIES.
  COMMAND:VOLUME
  Enter starting L.S.Value in M.:0
  Enter ending L.S.Value in M.:100
  Enter intervals in M.:10
  Enter file name for output:volum1.out
  (NOW THE VOLUME CALCULATION SHEET IS SAVED IN "VOLUM1.OUT" AND
   VIEW THE CONTENTS AND PRINT USING NOTEPAD.BEFORE GIVING VOLUME
   COMMAND ALL SECTIONS AT THE REQUIRED INTERVALS SHOULD BE DRAWN
   AND SECTIONAL AREA CALCULATED USING "CALAREA" COMMAND)

9.AT THE COMMAND PROMPT GIVE "FILDRAW" COMMAND TO DRAW SECTIONS USING
  FILE INPUT:
  (CREATE NEW FILES IN THE FORMAT OF "P0.LVL" OR "F0.LVL" WITH
   CORRESPONDING L.S.VALUES BEFORE RUNNING THIS COMMAND)
  COMMAND:FILDRAW
  ENTER L.S.VALUE TO BE DRAWN:100
  Prelvl/Forlvl:P
  (NOW YOU WILL SEE THE PRE-LEVELS DRAWN USING FILE "P100.LVL".)

10.AT THE COMMAND PROMPT GIVE "INTDRAW" COMMAND TO DRAW INTERMEDIATE
   SECTIONS BY INTERPOLATION.
   COMMAND:INTDRAW
   ENTER L.S.VALUE OF LOWER BOUND:0
   ENTER L.S.VALUE OF UPPER BOUND:50
   ENTER L.S.VALUE TO BE DRAWN:10
   ENTER Prelvl/Forlvl:P
   (NOW YOU WILL SEE THE PRE-LEVELS DRAWN BY INTERPOLATION BETWEEN
    0M AND 50M FOR 10M.THE SECTIONS OF L.S.0M AND L.S.50M SHOULD ALREADY
    BE DRAWN)

11.AT THE COMMAND PROMPT GIVE "DATUM" COMMAND TO CHANGE THE DATUM VALUE.
   COMMAND:DATUM
   ENTER DATUM IN M.:100
   (NOW YOU WILL THE DATUM IS CHANGED TO THE NEW VALUE)

12.AT COMMAND PROMPT GIVE "PSTART" COMMAND TO CHANGE THE START POINT OF
   SECTION.
   COMMAND:PSTART
   ENTER START POINT ON THE DATUM LINE:<PICK A NEW POINT ON THE DATUM>

13.AT THE COMMAND PROMPT GIVE "FORMARK" COMMAND TO MARK FORMATION LEVELS
   AT CRITICAL POINTS:
   COMMAND:FORMARK
   PICK A POINT ON FOR-LEVEL TO MARK:<PICK A POINT>
   (NOW YOU WILL SEE THE DISTANCES AND LEVELS MARKED AS OTHER POINTS)

14.AT THE COMMAND PROMPT GIVE "PREMARK" COMMAND TO MARK PRE-LEVELS
   AT CRITICAL POINTS:
   COMMAND:PREMARK
   PICK A POINT ON PRE-LEVEL TO MARK:<PICK A POINT>
   (NOW YOU WILL SEE THE DISTANCES AND LEVELS MARKED AS OTHER POINTS)

  
15.AT THE COMMAND PROMPT GIVE "SECDATA" COMMAND TO DO MODIFICATIONS
   IN THE EXISTING CROSS SECTION. AFTER GIVING SECDATA YOU CAN USE
   OTHER COMMANDS SIMILARLY.
   COMMAND: SECDATA
   Enter X-distance<30/40/60/75/100/150>:40
   Enter Y-distance<10/15/20/25/30/50>:10
   Enter X-scale per drawing unit:1
   Enter Y-scale per drawing unit:1
   Enter datum level in M.0
   Enter start point on datum line to start L-0.0INT of (6.6 11.7 0.0)

16.AT THE COMMAND PROMPT GIVE "PREINT" COMMAND TO MARK THE PRELEVELS
   AT REGUMAR INTERVALS.
   COMMAND:PREINT
   Select the lines of pre-level only:
   Select objects: Specify opposite corner: 2 found
   Select objects:
   You want to mark pre-levels at regular intervals:<Y/N>:Y
   Enter distance between points to be marked:5
   (Now you will see the Prelevels at regular intervals)

17.AT THE COMMAND PROMPT GIVE "FORINT" COMMAND TO MARK THE FOR-LEVELS
   AT REGULAR INTERVALS.

   COMMAND:FORINT
   Select the lines of formation-level only:
   Select objects: Specify opposite corner: 7 found
   Select objects:
   You want to mark for-levels at regular intervals:<Y/N>:Y
   Enter distance between points to be marked:5
   nil
   (Now you will see the Forlevels at regular intervals)

18.AT THE COMMAND PROMPT GIVE "LVLTYP" COMMAND TO INITIATE/CHANGE
   LEVELS INPUT IN THE FORM OF STAFF READINGS OR LEVELS.
   Command: LVLTYP
   You want to enter level Readings/Levels:<R/L>:R
   Enter Change point reduced level:12
   Enter change point staff reading:1
   13.0
   (Now you can give Staff readings directly to plot levels)

19.AT THE COMMAND PROMPT GIVE "CHPT" COMMAND TO GIVE CHANGE POINT
   READINGS WHILE PLOTTING.
   Command: CHPT
   Enter Change point reduced level:11
   Enter change point staff reading:1.2
   12.2
   (Now you can give Staff readings directly to plot levels)

   USE THE CADMAX'S SECAREA PROGRAM WITH ABOVE COMMANDS AND FEEL FREE
   TO CONTACT THE DEVELOPER OF THIS PROGRAM IN THE FOLLOWING ADDRESS
   IF YOU HAVE ANY-PROBLEMS OR NEED ANY IMPROVEMENTS.

   M.K.SUGUMARAN,
                B.E.(Hons),M.E.
   PH:+919382182894

Thursday, October 3, 2013

POPUP MENU MADE EASY

WHEN I SEARCH GOOGLE FOR THE SOURCE CODE OF POP UP MENU. I GET LOT OF SOURCE CODES AVAILABLE. ALL THOSE CODES WILL HAVE THE SCRIPT FILES somescript.js and somecss.css files in HEAD SECTION OF HTML FILE. I  DEVELOP A SOURCE CODE FOR POP UP MENU WITHOUT ANY SCRIPT FILES EXTERNALLY. YOU CAN SEE IT IN THE FOLLOWING LINK http://www.nirt.in/software/tables.htm

You can see the source code in view page source in any of the browser and copy it to make corrections as per your requirement. To know the modifications in the source code some corrected link is available in the following link

http://www.nirt.in/tablesframe.htm

You can see source code in the following link also:

http://www.tnwrdom.org/tnwrd/index.htm

Tuesday, September 3, 2013

EXCEL TO GOOGLE EARTH KML

IF AN EXCEL WORKSHEET CONTAINS TABLE OF VALUES OF SOME LOCATIONS ON EARTH WITH LATITUDE AND LONGITUDE CAN BE CONVERTED INTO GOOGLE EARTH KML FILE WHICH DISPLAYS THE PROPERTIES ON THE GOOGLE EARTH ITSELF. THE EXCEL MACRO LINK IS
http://www.nirt.in/kmlexport/kmlexport.xls

THE FIRST METHOD LOCATES THE MARKS IN TRANSPARENT SQUARES OF 100x100M. THE LINK FOR MANUAL IS  http://archive.org/details/KMLEXPORTMANUAL 

THE SECOND METHOD LOCATES THE MARKS WITH LABELS OF NAME OF THE PLACE. THE EXCEL MACRO LINK IS 

http://www.nirt.in/kmlexport/kmlexportmark.xls 

THE LINK FOR MANUAL IS http://archive.org/details/KMLEXPORTMARKMANUAL 


Yours,
MKSugumaran 

The new webautocad http://mksugumaran.blogspot.in/2016/02/webautocad-web-based-autocad.html

SLOPE STABILITY ANALYSIS OF EARTH DAM BY SLIP CIRCLE METHOD

SLOPE STABILITY ANALYSIS OF EARTHDAM:

Earth Dams are usually constructed using the locally available soil. The soil properties used for construction of earth dam are important in design of slopes. Civil engineers involved in design and construction of earth dams know the difficulty of design of slopes for stability of earth dams. I worked as Assistant Engineer in Design Circle in 1999 in Tamilnadu Public Works Department. At that time I saw many engineers involved in design of earth dams working on A0-size graph sheets drawing the cross section and draw a slip circle. Then they will create many vertical slices of Earth dam portion and calculate the area of slices below MWL/FRL/DDL of SPZ/IPZ and take the moments of weight of slices and resisting forces and put them in tabular form in the graph sheet itself to find the factor of safety as per IS Code(Indian Standard code). The area is calculated by counting the number of squares manually from the graph sheet. The notations above are
MWL- Maximum water level
FRL  - Full Reservoir Level
DDL – Draw Down Level
SPZ  - Semi Permeable Zone( Outer Zone of earth dam)
IPZ   - ImPermeable Zone(Inner Zone of earth dam)
spzblk- Bulk Density of Semi Pervious Zone soil
ipzblk- Bulk Density of Im Pervious Zone soil
spzsub- Submerged Density of Semipervious zone
ipzsub- Submerged Density of Impervious zone
spzsat- Saturated Density of Semipervious zone
ipzsat- Saturated Density of Impervious zone

usually 6 trials for upstream and 6 trials for downstream are done for arriving at the minimum factor of safety against failure. Roughly one month will be taken to do the 12 no of trials and factor of safety for the worst condition is found out. After seeing the laborious work involved in that process, I develop a program in AutoLisp to work in Autocad with one input table in Visual Basic for AutoCAD. This program made the design of slope stability in one minute in Autocad.

You can download that STABILITY.RAR file from the following link.
http://www.nirt.in/software/stability.rar
The manual for this software is avalable in the following link


http://archive.org/details/SLOPESTABILITYOFEARTHDAM