Incorporate buzz distance into pedit
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Incorporate buzz distance into pedit

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
dhadley
Guest





Posted: Sat Apr 09, 2005 12:09 am    Post subject: Incorporate buzz distance into pedit Reply with quote

Wondering if there is a way to customize the pedit, convert to pline, join command where buzz is already preset so you don't need to go through 'multiple' all the time. Often find when we offset lines/arcs, that we can't join without setting the buzz (they are at the same end point, it's because we work in UTM coordinates, miles away from 0,0,0).

Just a whole pile of steps that I'd rather be able to reduce.

Thoughts, suggestions?
TIA

Back to top
Casey
Guest





Posted: Sat Apr 09, 2005 12:37 am    Post subject: Re: Incorporate buzz distance into pedit Reply with quote

You may have more luck with a 'F'uzz distance....



"dhadley" <nospam@address.withheld> wrote in message
news:21497943.1112990971059.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
Wondering if there is a way to customize the pedit, convert to pline, join
command where buzz is already preset so you don't need to go through
'multiple' all the time. Often find when we offset lines/arcs, that we
can't join without setting the buzz (they are at the same end point, it's
because we work in UTM coordinates, miles away from 0,0,0).

Just a whole pile of steps that I'd rather be able to reduce.

Thoughts, suggestions?
TIA
Back to top
Jeff Mishler
Guest





Posted: Sat Apr 09, 2005 12:44 am    Post subject: Re: Incorporate buzz distance into pedit Reply with quote

As suggested by Casey, Fuzz is the correct terminalogy......and here's a
little lisp that does what you need.....just change the hardcoded fuzz value
to what you prefer.
Code:

(defun c:pedit2 (/ ss fuzz)
  (setq fuzz 0.0001) ;; CHANGE AS DESIRED
  (prompt "\nSelect Objects to Join Together.....")
  (setq ss (ssget '((0 . "lwpolyline,polyline,line,arc"))))
  (if (ssget "p" '((0 . "line,arc")))
    (command "pedit" "m" ss "" "y" "j" fuzz "")
    (command "pedit" "m" ss "" "j" fuzz "")
    )
  (princ)
  )


--
Jeff
check out www.cadvault.com
"dhadley" <nospam@address.withheld> wrote in message
news:21497943.1112990971059.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
Wondering if there is a way to customize the pedit, convert to pline, join
command where buzz is already preset so you don't need to go through
'multiple' all the time. Often find when we offset lines/arcs, that we
can't join without setting the buzz (they are at the same end point, it's
because we work in UTM coordinates, miles away from 0,0,0).

Just a whole pile of steps that I'd rather be able to reduce.

Thoughts, suggestions?
TIA


Back to top
dhadley
Guest





Posted: Sat Apr 09, 2005 1:13 am    Post subject: Re: Incorporate buzz distance into pedit Reply with quote

So that's why it wouldn't work....doh....yeah, fuzz was what I meant to say!
That lisp works great! Thanks very much!
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB