logobosspolice

Simplify Lines In Autocad

Simplify Lines In Autocad Rating: 9,8/10 2343 reviews

Download free illbleed dreamcast iso burner

  1. Simplify Lines In Autocad
  • Forum Actions
  • Quick Links

Simplify Lines In Autocad

  • Mar 28, 2011. Create an LSP file and add it to AutoCAD, then use PLD command to run it. 0.0) x 10to42))); straighten all arc segments to line segments ); end progn ); end if (repeat vinc (setq verts; sub-group list: separate list of four entries for each vertex (cons (list. If you have rhino, 'SimplifyCrv' works pretty well.
  • We're creating a site mesh from splines (created by magic wanding a referenced autocad file). There are WAAAAY too many nodes in these lines, and i was wondering if there was a command or process to simplify these lines with out having to remove each node by 'hand'. Any suggestions?
  • Thread Tools
  • Display

Jun 10, 2015. I am using DWG trueview (by AutoCAD) to look at DWG files. Could it be the problem?

  1. Wade C
    Stainless
    Join Date
    Jul 2004
    Location
    Wiggins CO. USA
    Posts
    1,361
    Post Thanks / Like
    Likes (Given)
    10
    Likes (Received)
    58

    Smoothing a polyline? (AutoCAD2004)

    Say I had a polyline that was 2' long, and positions ever .010' in X and the Y varied from +.0050: to -.3250'.. making somewhat of a portion of an elipse. (quadrant II I think - top right?)
    I make the poly line from taking measurements from an indicator, and plug it in a spread sheet. Then I import the coordinates as a poly line. With the items Im 'mapping' - the goal is as accurate replication as I can do.. but with a little bit of an artistic flare.. I map the part multiple times, then average to get the 'best plot path' I can - and it has worked very well for quite some time.. but I have always battled the 'artistic' part of the smoothing of the polyline. Zoom in, try and see if the point is high or low, or if its the two on either side causing the rough spot. Then move the point. But its major time consuming and sort of tough to do on some maps where the points are very close to a 'smooth curve' already.. sometimes its hard to smooth out nicely.
    I started wondering if there was a way to smooth that line like - sort of like a trend line on a graph will do - by taking all the points in a line and then comparing them to the other lines, and creating a line that is basically an average of the averages and smoothing it out a bit from the tiny little bumps and such.
    I hope Im making sense.. I havent found anything on google about it yet.. and get the feeling that maybe I need to think spline instead of polyline? or that what I want to do just isnt possible and Ill need to find a way to manipulate the numbers before I ever import them into AutCAD.
    Any ideas besides the long hand editing?
    Thanks
    Wade
  2. Plastic
    Join Date
    Oct 2008
    Location
    illinois
    Posts
    49
    Post Thanks / Like
    Likes (Given)
    0
    Likes (Received)
    0
    use the PEDIT command and then select Spline from the options.
  3. Plastic
    Join Date
    Apr 2007
    Location
    San Diego
    Posts
    48
    Post Thanks / Like
    Likes (Given)
    0
    Likes (Received)
    8
  4. Hot Rolled
    Join Date
    Apr 2005
    Location
    Southwest
    Posts
    536
    Post Thanks / Like
    Likes (Given)
    7
    Likes (Received)
    13
    As I understand what you have describe, benrobuck has made the quickest and perhaps the easiest way of making the conversion to smooth out the line.
    Since this is a machining forum I assume that the output is for a machining center of some sort, so the only limitations are what your controller is capable of interpolating. If your machine can't interpolate splines, then you will need to need to stick with curve fitting. If you have to curve fit, then you might want to change your methodology on measuring the line (as you call it).
    If it resembles a quadrant II elliptical segment and let's say you start your drawing from the x,y center coordinate then dy (delta Y) changes little from the beginning for the change in dx (delta X) and fewer points need to be measured. As the slope for the line segments (dx/dy) start increasing more dramatically (the further away from the x origin), then the more points you need to plot in order to have curve fitting to become more closely resembling what you want.
    Of course this all becomes more time consuming than perhaps you want. Another method which might work, since you mentioned using a spread sheet is to use the points you have placed in it and have Excel create a polynomial equation for those points. I believe Excel will create an equation up to the 6th order where calculating to the 3rd or 4th order may be more than enough. Now just plug in some X coordinates between the start and endpoints of the X axis and get the Y results, use those coordinates as your new line points. A polynomial will not put all points on the line, it calculates the best fit and that is the reason you use the generated coordinates rather than the measured ones. Also using this method may well reduce the number of coordinates necessary to create the line and having it converted to a spline or curve fit line in Autocad.
    I have really glossed over the process and may have well left out some things. You can google Polynomials, curve fitting, Excel functions that will give you more detail on each subject.
    Good luck and have fun!
  5. Stainless
    Join Date
    Dec 2008
    Country
    UNITED STATES
    State/Province
    Arizona
    Posts
    1,680
    Post Thanks / Like
    Likes (Given)
    153
    Likes (Received)
    198
    I know you have ACAD but if you had solidworks you can take the text file and it will create a smooth spline through those points you have gotten from the cmm
  6. Plastic
    Join Date
    Apr 2005
    Location
    Petaluma, CA
    Posts
    25
    Post Thanks / Like
    Likes (Given)
    0
    Likes (Received)
    0
    If, as has been suggested, you use the PEDIT command to splinefit the polyline, then you can use the SPLINE command's 'Object' option to convert the spline fit polyline to an actual Spline entity which is smoother and takes up less space in the dwg file.
  7. Wade C
    Stainless
    Join Date
    Jul 2004
    Location
    Wiggins CO. USA
    Posts
    1,361
    Post Thanks / Like
    Likes (Given)
    10
    Likes (Received)
    58
    Sorry I hadnt gotten back on here to reply..
    Thanks for the information.. Im not super fluent with the use of Acad.. so much of it went over my head until I read a little more in the help files. But then the actual process confused me in getting it to do what I wanted.
    I Have played with the equation for the trend line in excel.. but every time I work with it - it spits out data from the formula in scientific, and I cant get it to convert to plain decimal. Im working in .0000 resolution, and dont understand why it spits out the 0.e6 or how ever it is that was.. Im not the brightest bulb in the box, and much if this is over my head.. but Im trying to come up to speed - its just taking a long time.
    If someone wanted to look a an example of a poly line Im working with, Id be happy to email them with it, but since the content is a little customer specific, I dont feel comfortable posting up an actual line here for all to see.
    The line being created will be run on a Wire EDM and using .010 wire. And since the increment of measure on the X axis is .010' the wire radius helps to smooth out some of the inconsistencies caused by variation in surface finish of the part being measured - but Id like to have a way to basically create that 'trend line' assuming it fits the raw data, rather than having to work with the raw data to smooth out the oddities. In reality, its just about me making the product I make better in appearance rather than function.. so if its a simple manipulation of numbers to make the outcome that much better and not increase costs, then its well worth it to me for my customers.
    Im going to keep reading and see if I can get the PEDIT to work.
    If I get time, Ill try and make up a fictitious set of plots so that I dont have to post any of my customers real data, that has similar issues with line 'smoothness' as a normal part would, and post it up.
    Thanks
    Wade
  8. Wade C
    Stainless
    Join Date
    Jul 2004
    Location
    Wiggins CO. USA
    Posts
    1,361
    Post Thanks / Like
    Likes (Given)
    10
    Likes (Received)
    58
    Well Id attach a .DXF file, but it is considered an 'Invalid File Type' so I cant.. (a little odd that a machining forum would not allow a drawing file format as an attachment isnt it?).. and posting an image of it wont do a lot of good as one has to zoom in quite a ways to get to see the areas that have problems.
    So if someone wants to take a look at the dxf, I have one I can email to you to look at.
    Also.. another thing to go along with the polynomial trend line thing.. sometimes.. I run into a line like this, that the trend line is not close enough to.. the one I have to send is an example of that.. a polynomial line where the order is from 2 to 6 does not come close enough to the raw points that I cant use it and am stuck back with altering the raw data. Im hoping I can wrap my brain around the whole idea and process.. it seems like its probably something so easy to do and Im just not connecting the dots in my head.
    Anyway, Im going to go sit in the corner for a little and think.. where did my dunce hat go? Hmmmmmm
    Wade
  9. Stainless
    Join Date
    Aug 2008
    Location
    SouthEastern Pennsylvania
    Posts
    1,034
    Post Thanks / Like
    Likes (Given)
    12
    Likes (Received)
    42
    Can you zip up the file? In XP or Vista, right click on the file and select send to -> compressed (zipped) folder. There will now be a file <filename>.zip in the same folder as the original, which you can post.
    Joe
  10. Wade C
    Stainless
    Join Date
    Jul 2004
    Location
    Wiggins CO. USA
    Posts
    1,361
    Post Thanks / Like
    Likes (Given)
    10
    Likes (Received)
    58
    Well duh.. I dont know how or why I missed the .zip extension..
    I winzipped a dwg and a dxf and attached.
    Thanks for pointing out the obvious for me.
    I have three vertical lines that help to point out a couple of trouble spots in the poly line. Its not the only spots that could use a little smoothing.. but the lines I hope help draw attention to the type if thing Im wanting to smooth out.
    Thanks
    Wade
AutocadSimplify lines in autocadQuick NavigationLinesCAD / CAMTop
  • Site Areas
  • Forums
  • Manufacturing Today
  • Specific Machine Forums
  • Open Discussion
  • Commerce
  • Machinery Manual, Brochure and Photo Archives
  • Forum features
«Previous Thread Next Thread»

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  • BB code is On
  • Smilies are On
  • [IMG] code is On
  • [VIDEO] code is On
  • HTML code is Off