Jump to content

plines and fuzz


rookie37

Recommended Posts

Yes!

 

Thank you but I'm still confused.

 

When I type pedit

 

I get

 

select polyline or [multiple]

 

I type make I get

 

window/last/crossing/box/fence/wpolygon/cpolygon/multiple

select polyline or [multiple]

 

I type join I get

 

window/last/crossing/box/fence/wpolygon/cpolygon/multiple

select polyline or [multiple]

 

I tried this a few times same thing

 

Then I tried it and it gave me an option for fuzz.

However that is all it would do. it wouldn't let me join.

It kept allowing me to set the fuzz distance

 

Now I can't repeat it

 

When I type pedit

 

I get

 

select polyline or [multiple]

 

I type make I get

 

window/last/crossing/box/fence/wpolygon/cpolygon/multiple

select polyline or [multiple]

 

I type join I get

 

window/last/crossing/box/fence/wpolygon/cpolygon/multiple

select polyline or [multiple]

 

I tried this a few times same thing

Link to comment
Share on other sites

When I type pedit

 

I get

 

select polyline or [multiple]

 

I type make I get

 

window/last/crossing/box/fence/wpolygon/cpolygon/multiple

select polyline or [multiple]

 

I type join I get

 

window/last/crossing/box/fence/wpolygon/cpolygon/multiple

select polyline or [multiple]

 

...

 

why do you type MAKE? Just type 'M', then select the lines you want to join (enter Y to the question if you want to convert them to polylines if it shows up) then type JOIN and then you get the question for Fuzz distance.

Link to comment
Share on other sites

Rookie,

M, is for multiple not for make, if you are are getting the make quenstion then what your are selecting is not a pline, then it would be pedit-m-m-join-fuzz, I think (no Cad at home at the moment)

Link to comment
Share on other sites

Command: pedit Select polyline or [Multiple]: m

Select objects: 1 found

Select objects: 1 found, 2 total

Select objects:

Convert Lines and Arcs to polylines [Yes/No]? press return

Enter an option [Close/Open/Join/Width/Fit/Spline/Decurve/Ltype gen/Undo]: j

Join Type = Extend

Enter fuzz distance or [Jointype] :enter fuzz distance here

1 segments added to polyline

Enter an option [Close/Open/Join/Width/Fit/Spline/Decurve/Ltype gen/Undo]:

Link to comment
Share on other sites

A little something to make life easier... add this in your acaddoc.lsp file

(defun c:pj ()
 (setq pa (getvar "peditaccept"))
 (setvar "peditaccept" 1)
   (setq ssj (ssget ))
   (command "pedit" "m" ssj ""  "j" "0.01" "")
 (setvar "peditaccept" pa)
(princ)
)

Link to comment
Share on other sites

and the clock is ticking.

Place your bets. Who will be first? The contenders are;

ReMark, dbroada and Tiger

looks like the Tiger was out hunting nice and early - she's in several hours before me and no sign of ReMark yet.

 

I can't actually help you here as I've never needed to change the fuzz setting. I'm really only posting as I'm slipping down the "Quick Links|Top Posters" list. :)

Link to comment
Share on other sites

is this fuzz the join setting for polylines?

 

Like, if you set the fuzz factor to 2mm, then if the ends of the adjacent lines fall within that distance, they will join?

Link to comment
Share on other sites

I just tested it. It works. Thank you very much everyone.

 

I have to give the stoker from hippy country (PS_PORT) the award. I followed what he did, and it worked.

Link to comment
Share on other sites

I can't actually help you here as I've never needed to change the fuzz setting.

 

 

I don't know if I'll need it either. It's just something to try. I sometimes can't join polylines

Link to comment
Share on other sites

  • 5 years later...
A little something to make life easier... add this in your acaddoc.lsp file

(defun c:pj ()
 (setq pa (getvar "peditaccept"))
 (setvar "peditaccept" 1)
   (setq ssj (ssget ))
   (command "pedit" "m" ssj ""  "j" "0.01" "")
 (setvar "peditaccept" pa)
(princ)
)

Hi, thanks for this code. I've learned something from this.

 

As I've said I'm learning LISP and modified your code to pick points on screen or enter values. Here's what i have at the moment:

(defun c:PJ_Fuzz_Distance_Input ( / cmd pa dist )
 (setq pa (getvar "peditaccept"))
 (setq cmd (getvar 'cmdecho))
       (setvar "peditaccept" 1)
           (setq dist (getdist "FUZZ DISTANCE: Enter Value OR Pick Points...") ssj (ssget ))            
       (setvar 'cmdecho 0)
           (command "pedit" "m" ssj "" "j" dist "")
           (setvar "peditaccept" pa)
       (setvar 'cmdecho cmd)
(progn
(prompt "\nPolylines now joined with: " (dist) "mm")
)
(princ)
)

It comes back with an error at the end. I just what the command line to say:

NEWLINE
Polylines now joined with: "previousdistanceentered"mm

Thank you. If you have any other comments about my extra code please correct me. Thanks in advance.

Link to comment
Share on other 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...