Jump to content

I need coordinate POINTS convert to CIRCLE


Recommended Posts

Posted

Hi

 

DDPTYPE ofter choosing circle point

ineed point explode is it possible please help me

List also show circle not a point

Posted

It is not possible to explode an AutoCAD point If you try you will get an error message. When you list a point it will always be point never a circle.

 

Exactly how did you create this circle?

Posted

i have coordinate points excel file

any way to create circles

Posted

DDPTYPE sets the style and size of the AutoCAD object 'Point'.

 

If you want to insert coordinates (and radius?) of circles from an Excel file then you need a script, LISP routine, VBA macro or some other customisation to read the information from Excel and draw circles in AutoCAD. Have a look on Lee Mac's website for a LISP routine, here's the link: www.lee-mac.com

Posted

Here is a little solution from my side,

 

Save your coords in txt format by notepad. And use the below lisp :-

 

e.g. TXT Format

1.JPG

 

(defun C:IC ()
 ;;; Satish Rajdev 09/10/2013
 (setvar "cmdecho" 0)
 (setq	Pdata	 nil
Openfile (getfiled "Select Text File" "*.*" "txt" 4)
Fdir	 (open Openfile "r")
radius	 (getreal "\n Specify Radius :")
 )
 (while (setq Pointinfo (read-line Fdir))
   (setq
     Pdata (cons
      (read
	(strcat	"("
		(vl-string-translate "," " " Pointinfo)
		")"
	)
      )
      Pdata
    )
   )
 )
 (close Fdir)

 (foreach data	pdata
   (command "circle" data radius)
 )

 (setvar "cmdecho" 1)
 (princ)
)

Posted

yes i am looking this thank you satish rajdev

Posted
yes i am looking this thank you satish rajdev

 

Your welcome madhu.....:)

Posted

you can do it all in excel if you want just use contcatenate to make a simple column of autocad commands that you just cut from excel and paste to Autocad command line.

 

Column A X

Column B Y

Column C Radius

 

excel code for column D =CONCATENATE("Circle ",A1,",",B1," ",C1) just copy down for rest of column note the "," are required to make a "X,Y" same for spaces " " each bit is also seperated in concatenate by a ,

Posted

how to use this and iam directly paste to command line is it correct are any lsp..?

check this

"circle","673997.372","2752960.46","0.6"

"circle","673996.857","2752961.317","0.6"

"circle","673996.342","2752962.174","0.6"

"circle","673995.827","2752963.031","0.6"

"circle","673995.312","2752963.889","0.6"

"circle","673994.797","2752964.746","0.6"

"circle","673994.282","2752965.603","0.6"

"circle","673993.767","2752966.46","0.6"

"circle","673993.252","2752967.318","0.6"

"circle","673992.737","2752968.175","0.6"

"circle","673992.223","2752969.032","0.6"

"circle","673991.708","2752969.889","0.6"

 

"circle",673997.372,2752960.46,0.6

"circle",673996.857,2752961.317,0.6

"circle",673996.342,2752962.174,0.6

"circle",673995.827,2752963.031,0.6

"circle",673995.312,2752963.889,0.6

Posted

Madhu, The formula you have created is wrong, For more info you can visit this :- http://www.lee-mac.com/scriptwriting.html

 

Here is an example from my side :-

 

ttt.JPG

 

Create a new column after C for your Z coord, As I have shown above.

And paste below formula in your 1st row of E column

 

=CONCATENATE("Circle ",A1,",",B1,",",C1," ",D1)

 

And

1. Copy that to direct command window, Your circles will get plotted.

OR

2. You can save it as script file (*.scr) using notepad, and then command - SCR to load that load script file....

Posted

yes thank you once again satish rajdev where is the best way to learn lsp coding please suggest me any pdf or basics learning simple understand 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...