Jump to content

Recommended Posts

Posted

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

Posted

Is this a continuation of your thread from yesterday?

Posted

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.

Posted

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

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...