Create a LWPolyline on an UCS that is not World

Discussion in 'AutoCAD' started by Tim J, Feb 2, 2004.

  1. Tim J

    Tim J Guest

    Hi,

    I am trying to create a 2d polyline on the side of a rectangle. My problem
    is I know the coordinates of the new polyline that I need to add in its own
    ucs. I use the Utility.TranslateCoordinates method to find those
    coordinates in the world ucs, my problem, however has to do with only being
    able to enter X and Y coordinates into the array defining the LWPolyline.
    Depending on the UCS, this may be Y and Z, X and Z, or something different
    than that. How do I accomplish this? Any ideas are greatly appreciated.
     
    Tim J, Feb 2, 2004
    #1
  2. You need to adjust the drawing so you are always drawing X and Y or use
    a regular polyline that accepts 3D input.

    ___________________________
    Mike Tuersley
    CADalyst's AutoCAD Clinic
    Rand IMAGINiT Technologies
     
    Mike Tuersley, Feb 2, 2004
    #2
  3. Tim J

    Tim J Guest

    Thanks for your quick reply Mike. I am not sure I understand your comment
    "adjust the drawing so you are always drawing X and Y". What do you mean by
    this? Are you saying do not draw, for example, a YZ polyline?

    I changed the object type that I am adding to model space to 3dPolyline. It
    worked as I had hoped. The AddPolyline method takes input of X, Y, and Z,
    however Help states that the Z is ignored. This is why I just tried the
    3dPolyline. When I list the newly created geometery, it lists as a
    polyline, which should be fine. The geometry is being processed further by
    CAM software and I dont think there will be an issue with Polyline VS
    LWPolyline.

    I really appreciate your help. By changing to 3DPline, things seem to be
    working fine.

    Thanks again.
     
    Tim J, Feb 2, 2004
    #3
  4. Are you saying do not draw, for example, a YZ polyline?
    Yes, an LWPOLYLINE *only* accepts X and Y because it is 2D. You need o
    adjust the UCS and view so you are always drawing in PLAN.
    No problem! ~ Mike
    ___________________________
    Mike Tuersley
    CADalyst's AutoCAD Clinic
    Rand IMAGINiT Technologies
     
    Mike Tuersley, Feb 2, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.