motee-z Posted March 22, 2013 Posted March 22, 2013 hi freinds may be some one think this is very simple question but please check if i creat polyline using this lisp shifting ucs to 3point and sequence of points of ucs is clockwise the polyline generated can't be joined to any other but if select the 3 point anticlockwise the polyline generated can be joined to other (defun c:pc(/) (setq st1(getpoint"\n p0")) (setq pc(getpoint"\n p(x-direction)")) (setq ps(getpoint"\n py(y-direction)")) (setq ptlst'((0 0)(4 3)( 20 5)(33.2 10)(40.33 17))) (command "ucs" "New" "3p" st1 pc ps ) (setvar"osmode"0) (command "__.pline") (setvar"osmode"0) (mapcar 'command ptlst) (command) (command "ucs" "world" ) ) although if we draw polyline manualy selecting new ucs-3points we will get same results according to direction of selecting 3points of ucs wish any one has information about this problem to help Quote
ReMark Posted March 22, 2013 Posted March 22, 2013 Is this a continuation of your thread from yesterday? Quote
MSasu Posted March 22, 2013 Posted March 22, 2013 Since the polyline was drawn into a custom UCS, then you are restricted to join to it only polylines drew into the same coordinates system. You may check the DXF code 210 (extrusion vector) of those entities. One comment, your routine is resetting the OSMODE system variable - a good programming practice is to restore user's environment if you modify it. Quote
motee-z Posted March 22, 2013 Author Posted March 22, 2013 it is a part of routine to show only problem but you see MSasu if you pick points counterclockwise the polyline can be joined even it is drawn in a different coordinte system that mean it is not restricted Quote
Recommended Posts
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.