Blog posts

Autocad:Adding elevation Automatically to multiple Contours That have Zero Elevation

I usually add post here for things that i couldn't find or could hardly find on web. I was asked to find some Autocad program that can automatically or semi automatically, add elevation to contours that have no elevation (0). we have many DWG contour files that all poly lines have zero elevation. Fi…

Read more

Import Points into autocad

Download From HERE!

You may have an Ascii text that contains some point coordinates and want to import that point into CAD. First it seems very easy and you may think to have many choices. You may think Autocad Land, Civil3d or Bentley Microstation, but what if you don't have any of them?

I wr…

Read more

How To Compute & Use UTM Scale Factor?

Recently i do some work on computing point scale factor in utm coordinate system. The input of system is Easting,Northing,height and zone number in UTM (WGS84) and output is point scale factor.

First of all i should mention that the thing that we use as scale factor most of the time is Grid factor …

Read more

Best Text Position in Polygon

You have many polygons and you want place some texts in each of them. polygons may have different shapes. they may be concave polygons. How you can find best place for your text?
My Solution is as follows:
1- Buffer Polygon to inside of it. I mean Buffer (Offset)  Polygon with a…

Read more

Unicode Text in DXF

If you are a Software Developer you may want to write a DXF writer for your application.There are some free .net class to do this.
 The problem is that the DXF class did not support Unicode characters as a Autocad text Entity. Its because it write DXF with ASCII (Ansi) code page.
If you want to…

Read more

Autocad txtxexp problem. Change Scale and position of the text. Solution? and All about txtexp

I had about 4700 dwg files with Shx fonts and i have to convert all object (not Splines and Arcs and other impossible obj) to just lines. txtexp do this for texts but it have some issues to be fix.

one of most important items was that txtexp move and scale texts to another position. unfortunately t…

Read more

How to Change All text style Backward Off in Autocad?

Here is a simple lisp that change all text style backwards off.

It seems simple but may be handy specially if you want to explode text.

;;; turn all text style backward off;;; Type B0 (B&Zero) to run
(defun C:B0 (/ ad style oldcmdecho)  (vl-load-com)  (setq ad (vla-get-ActiveDo…

Read more

ArcGis License Expire in 11-nov-2011. What is solution?

Download from HERE and Enjoy!!!

Download and Unpack file.

How it work?

sorry if  i do not explain completly. it is because i don't have Arc9x in PC that I update this website. so i hope to do not miss anything.

  1. Bring  task manager & end task ArcGis.exe and also lmgrd.exe
  2.  Copy arc…

Read more

WCF Tutorial

I have read many atricles about WCF. Finally i found these books :

"Windows® CommunicationFoundation 4 Step by Step" by "john sharp"

And also :

"Programming WCF Services,  Mastering WCF and the Azure AppFabric Service Bus 3rd_Edition" by "Juval Löwy"

Books take much time but are good as ref…

Read more

Adobe Flash Activex Suddenly Stop Working?

Sometimes in my Pc adobe flash player both in IE and Chorme stop working. I found solution of My problem in adobe Website as follows:

If you are having trouble downloading and installing Adobe Flash player, ensure that:

  • JavaScript is enabled.
    1. Open Internet Explorer.
    2. Choose Tools > Internet Options…

Read more

How to Build a Flash Map?

uses Adobe Flash Cs3 to make a dynamic Map.  use Flash button with assigned URL links to it. you can find how build it in many websites and also here.

Here is the steps you can follow to do this task:

  1. find a vector base sample of your map. you can see here. this helps me so much. if you find you…

Read more

Convert PDMS "IOS" File to 3D Isometric Model!!

Another popular Export That you can Get from PDMS is and isometric DWG file. But this is a 2D isometric and it is just a sketch. it has dimensions but lengths are not related. if you want a real 3D isometric with correct lengths you should draw again all the lines in a 3d model. It is a tedious work. I myself test it in AutoCAD. so i built an application to Convert 2D isometrics Models to real 3D models.

You Can Download it From Following Link:


Extract RAR archive It Contains 3 Files :

  1. A .dwg file that contains some PDMS sample files
  2. a .lsp  file
  3. a .dvb file


  1. open .dwg file
  2. Load The lisp and "iso3d.dvb" from Autocad menu-> tools-> Load Application
  3. in AutoCAD command prompt type iso to start application
  4.  ....

It is really hard to explain some notes on how to use this application. So i built a mp4 Tutorial.

You can Download the Tutorial Here.

Remember These points in mind when using this application:

  1. Close all other dwg files that are already open and only open one that you want to convert
  2. Make Osnap OFF
  3. Begin From START of pipe to the end and follow direction of pipes shown in drawing with Arrow (->). otherwise  the direction computed by application will be in opposite direction
  4. Start of pipe line some times has and (E,N,H)
  5. in Tee branches type "T' and after finishing branch to continue from beginning of tee branch type "S" to Stop branch
  6. If you want continue from somewhere in your last drawn isometric, immediately after running "iso.lsp" (by typing iso in command prompt) type "P" for pick point option. this let you select a point 3d isometric and then return to 2d isometric.

This application is not perfect and surely has some bugs. It is because of the nature of PDMS isometric maps. They are not regular and built to be understood by human.

Read more

Convert aveva pdms 3D model to DWG model or Other Formats

First of all i should say that this problem is solved by EXplant module of PDMS. When i wrote this script i hadn't access to this module. With this module you can directly export to dgn!!

In that time our company design in Aveva PDMS and we in GIS division model all piping and other structures in ArcGIS. Piping Discipline give us only some reports from PDMS and we should redesign them in Auto CAD then import AutoCAD 3D Models into ArcGIS. We decide to automate this sequence. So I began to search.

I searched the entire web and finally I find out Aveva has "Explant-I" to do this. I couldn’t find it in that time.

At last I decide to write some code in AutoCAD VBA to convert PDMS report to AutoCAD objects and i did it.

We build a DWG template that includes some piping elements as blocks including valves and other piping equipments and VBA application read the positions and type of them from PDMS report and then import them in right place in DWG template.

Because of some modeling points in ArcGIS, I categorized objects in layers with special names special line types and special color (depend on pipe size).

This code is fully customized for our problem. but if your Report from PDMS be exactly same as this Excel file, this program surely works for you.

You can download All of my works HERE.

4Files included. after extraction do following works:

  1. open Excel file and leave it aside.( This is the report from PDMS produced From Piping Discipline)
  2. open dwg file (Template file included all blocks and ... we needed)
  3. put dvb file in the path of your AutoCAD. For example C:\Program Files\AutoCadPath\Support folder
  4. load lsp & dvb file from AutoCAD menu-> Tools -> Load application
  5. type pdms in command prompt in AutoCAD to run application
  6. Enter a Number that indicate how many line from Excel file you want to be Drawn in Autocad. & press Enter. and Please Wait ...
  7. After all works done "zoom extent" to see what is drawn.

Attention to blocks and poly lines( color number, line type scale), Layers,...



Leaving Comments Make me happy.

13 blog posts