Previous in Forum: Pic 16f873 Not Running Code While Simulator Does   Next in Forum: C Program For This Algorithm (Using Atmega16)
Close
Close
Close
18 comments
Rate Comments: Nested
Active Contributor
United Kingdom - Member - New Member China - Member - New Member

Join Date: Oct 2009
Location: Tianjin, China
Posts: 18
Good Answers: 1

Changing Circles to Points in AutoCAD LT 2010

10/23/2011 10:06 PM

Hi All,

I have a problem with AutoCAD where I need to change all the cirlces in a drawing to be just points. This would be easy to do manually if there were only a few circles but there are over 13,000 circles in this drawing that i need to change. The pattern is random and fixed so I cannot even use the array tool.

Could this be done through use of a Macro and if so what should the macro be? I have never written macro's in AutoCAD before and having read the help files the task does look a bit daunting to this newbie.

Any suggestions would be a great help.

Thanks,

Varrus

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Power-User

Join Date: Mar 2010
Posts: 123
Good Answers: 3
#1

Re: Changing Circles to Points in AutoCAD LT 2010

10/24/2011 12:38 AM

Do you want to end up with only the center points or you want to change the circumference- line type in dotted line?

Are the circles in a separate layer? Or a specific color?

What version of Autocad are you using?

Register to Reply
Active Contributor
United Kingdom - Member - New Member China - Member - New Member

Join Date: Oct 2009
Location: Tianjin, China
Posts: 18
Good Answers: 1
#2
In reply to #1

Re: Changing Circles to Points in AutoCAD LT 2010

10/24/2011 5:46 AM

The version is 2010 LT.

My original idea was to change the circle to be just the centre point. But as it turns out our machine's software will not read a point within the DXF file. It actually needs to have some small dimension/size to it. So instead now i need it to be a very short line (e.g. 2um) starting from the circle centre point.

All of the cirlces are of the same layer and same colour. But it might be better if the points/lines can be created onto a different layer.

The difficulty is just arrising from the number of features that need to be modified.

Thanks.

Register to Reply
Power-User
Hobbies - CNC - New Member United States - Member - New Member

Join Date: Feb 2008
Location: Mid-West USA
Posts: 498
Good Answers: 28
#12
In reply to #2

Re: Changing Circles to Points in AutoCAD LT 2010

10/25/2011 7:47 AM

Could it be the circles are not the problem? Is it possible the chaining was done incorrectly and the cutter comp was set to the outside instead of the inside of the circle? That would explain not being able to make a small hole with the current diameter but being able to do so with a line.

Register to Reply
Guru
Hobbies - CNC - New Member Hobbies - DIY Welding - New Member Engineering Fields - Electromechanical Engineering - New Member

Join Date: Aug 2007
Posts: 23647
Good Answers: 420
#15
In reply to #2

Re: Changing Circles to Points in AutoCAD LT 2010

10/25/2011 9:34 AM

unlike other cad platforms, the starting and ending point can be concurrent (same) in Autocad.

JohnDG #14
has a somewhat good reply....of course you still need a program.

And with the amount of enitities you have, manually is out of the question.

__________________
“ When people get what they want, they are often surprised when they get what they deserve " - James Wood
Register to Reply
Guru
Technical Fields - Technical Writing - New Member Engineering Fields - Piping Design Engineering - New Member

Join Date: May 2009
Location: Richland, WA, USA
Posts: 21017
Good Answers: 795
#3

Re: Changing Circles to Points in AutoCAD LT 2010

10/24/2011 10:44 AM

Can you change all the circle radii to some small value?

__________________
In vino veritas; in cervisia carmen; in aqua E. coli.
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#4

Re: Changing Circles to Points in AutoCAD LT 2010

10/24/2011 10:52 AM

Would it work if you modified all the circles to have very small radii?

I don't know about LT, but I just tried this with ACAD 2007:

In a drawing with an assortment of lines, circles, rectangles etc.

  • Use 'Quick select' to select all the circles (you can select only circles of a specific size if necessary)
  • Use 'Modify properties' to change all the radii to 0.000001
__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply Score 1 for Good Answer
Active Contributor
United Kingdom - Member - New Member China - Member - New Member

Join Date: Oct 2009
Location: Tianjin, China
Posts: 18
Good Answers: 1
#5

Re: Changing Circles to Points in AutoCAD LT 2010

10/24/2011 8:48 PM

Thanks for the suggestions guys.

Unfortunately, the machine will follow the profile of the circle causing the resulting hole to actually be bigger and deeper than desired. Reducing the radius of the circle still results in the same size hole being cut. The current circle is already below the smallest capability for the machine to process a circle/hole. But if just a point or very short line then it can produce a smaller hole.

The only way i have found to get the drilled/cut feature close to the size I need (or at least the smallest possible for the machine) is to replace the circle with a very small line at the centre point. Which is where my problem lies as there are 13,000 circles to replace.

Register to Reply
Guru
Technical Fields - Technical Writing - New Member Engineering Fields - Piping Design Engineering - New Member

Join Date: May 2009
Location: Richland, WA, USA
Posts: 21017
Good Answers: 795
#8
In reply to #5

Re: Changing Circles to Points in AutoCAD LT 2010

10/25/2011 1:16 AM

That's really weird. Presumably the actual cutting device has a kerf width, or beam/nozzle diameter; call it D. If the device follows a line 2μ long, it will cut a D x D+2μ obround. If it follows a circle of diameter 2μ, the cut will be a circle of diameter D+2μ. Because 2μ is so small, these shapes should be visually indistinguishable.

__________________
In vino veritas; in cervisia carmen; in aqua E. coli.
Register to Reply
Guru

Join Date: Jun 2007
Location: chennai,India
Posts: 592
Good Answers: 19
#6

Re: Changing Circles to Points in AutoCAD LT 2010

10/24/2011 11:08 PM

For similar application I had developed macro program and submitted to one of the clients in Canada as an assignment On similar lines this can be done.

__________________
Ramesh,Freelance Electrical/automation Consultant
Register to Reply
Associate

Join Date: Oct 2011
Posts: 34
#7
In reply to #6

Re: Changing Circles to Points in AutoCAD LT 2010

10/25/2011 12:42 AM

Then can you share , how to do macros in autocad . i will be more useful for many if can explain this by screen shot.

Register to Reply
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#9

Re: Changing Circles to Points in AutoCAD LT 2010

10/25/2011 4:43 AM

Please explain more about the application/machine tool.

We are all finding it difficult to understand how the "machine" can interpret a very small circle different to a very short line.

__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Register to Reply
Guru
United Kingdom - Member - Old New Member

Join Date: Jul 2005
Location: South east U.K.
Posts: 3695
Good Answers: 93
#10

Re: Changing Circles to Points in AutoCAD LT 2010

10/25/2011 5:11 AM

I'm a bit rusty in LT but could you you use the BLOCK command to convert all of the circles to blocks. If you then create another block from your small line you can replace all of your circle blocks with line blocks.

I have to admit that I'm struggling to remember the process to replace all of one type of block with another, maybe someone can jump in here to help?

__________________
I didn't have a really important life, but at least it's been funny (Lemmy Kilminster 1945-2015)
Register to Reply
Guru
Engineering Fields - Construction Engineering - New Member Engineering Fields - Civil Engineering - New Member Hobbies - Fishing - New Member Hobbies - Target Shooting - New Member Hobbies - Hunting - New Member Popular Science - Weaponology - New Member United States - Member - New Member Hobbies - DIY Welding - New Member

Join Date: Apr 2007
Location: Latitude 38.701979 Longitude -90.439540 Coordinates 38.701979, -90.439540 N38°42.11874, W090°26.3724
Posts: 668
Good Answers: 15
#11

Re: Changing Circles to Points in AutoCAD LT 2010

10/25/2011 5:11 AM

Are the circles actually blocks by any chance? If so just edit the block to whatever you want them to look like and all of them will change automatically to the new block.

__________________
scotchdrnkr
Register to Reply
Guru
Hobbies - CNC - New Member Hobbies - DIY Welding - New Member Engineering Fields - Electromechanical Engineering - New Member

Join Date: Aug 2007
Posts: 23647
Good Answers: 420
#13

Re: Changing Circles to Points in AutoCAD LT 2010

10/25/2011 8:53 AM

In my previous life, I was a CNC programmer, and I had wrote a lisp routine to do just that. Used the points for a canned drill cycle.

13,000 circle..... about a minute....

It puts a node right at the center. PM me with your email and I'll send it to you tonight.

(if you needed changes the node to differtiate to the size of the circle to a different layer or color, I would need to do some adjustments)

I'm back and I just saw your version being LT. LISP does not work, does it.

__________________
“ When people get what they want, they are often surprised when they get what they deserve " - James Wood
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#14

Re: Changing Circles to Points in AutoCAD LT 2010

10/25/2011 9:29 AM

If you can program (or you've got a friend who can) you could write a bit of code to go though the dxf file, replacing all the circles with lines.

This is the dxf code for a circle (my comments in bold):

0
CIRCLE
5
E5
330
1F
100
AcDbEntity
8
0
100
AcDbCircle
10
170.0 X co-ord of center
20
180.0 Y co-ord of center
30
0.0 Z co-ord of center
40
1.0 Radius

This is the code for a short line starting at the circle center:

0
LINE
5
EF
330
1F
100
AcDbEntity
8
0
100
AcDbLine
10
170.0 X1
20
180.0 Y1
30
0.0 Z1
11
170.00000001 X2
21
180.00000001 Y2
31
0.0 Z2

May take a bit of trial-and-error, but it'll save a lot of time if you can get it going. BTW, the dxf is just a text file, so you could open it in a text editor (e.g. Notepad).

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply Score 1 for Good Answer
Commentator

Join Date: Jan 2006
Location: Western flank of the Pennines in Lancashire England
Posts: 93
Good Answers: 8
#16

Re: Changing Circles to Points in AutoCAD LT 2010

10/25/2011 12:03 PM

If you select all the circles and then click on "Properties"you should be able to reduce the diameter of the circles to 0.00000001mm diameter. Would that be small enough?

Register to Reply
Associate
India - Member - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Power Engineering - New Member

Join Date: Jun 2011
Location: Chennapattanam (Coromandel Coast of the Bay of Bengal).
Posts: 31
Good Answers: 1
#17

Re: Changing Circles to Points in AutoCAD LT 2010

11/02/2011 7:56 AM

Try this code ....refer....from ....http://www.cadtutor.net/forum/showthread.php?1390-How-to-use-the-LISP-routines-in-this-archive....................

(defun c:test (/ ss n sset)
(if (setq ss (ssget "_:L" '((0 . "CIRCLE"))))
(repeat
(setq n (sslength ss))
(setq sset (ssname ss (setq n (1- n))))
(entmakex (list (cons 0 "POINT") (assoc 10 (entget sset))))
(entdel sset)
)
(princ)
)
(princ)
)

Register to Reply
Guru
Hobbies - CNC - New Member Hobbies - DIY Welding - New Member Engineering Fields - Electromechanical Engineering - New Member

Join Date: Aug 2007
Posts: 23647
Good Answers: 420
#18
In reply to #17

Re: Changing Circles to Points in AutoCAD LT 2010

11/02/2011 9:38 AM

LISP in Autocad LT?

__________________
“ When people get what they want, they are often surprised when they get what they deserve " - James Wood
Register to Reply
Register to Reply 18 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

cherryvan (1); Gasman (1); JohnDG (2); mandi (1); Nigh (1); phoenix911 (3); ramvinod (1); Randall (1); satnat.2008 (1); scotchdrnkr (1); The Mechanic (1); Tornado (2); varrus75 (2)

Previous in Forum: Pic 16f873 Not Running Code While Simulator Does   Next in Forum: C Program For This Algorithm (Using Atmega16)

Advertisement