pline to mline conversion

Discussion in 'AutoCAD' started by irfan, Mar 23, 2005.

  1. irfan

    irfan Guest

    hi, all

    has someone got some code to convert plines into mlines please, if not can u suggest me how to avoid the following problem:

    In simple terms, i have a pline and a circle with hatch. When i turn fillmode off, the hatch in the circle also turns off which i actually donot want. All i wanted is to remove fill from Pline but fillmode inherently effects both.

    TIA
    Irfan
     
    irfan, Mar 23, 2005
    #1
  2. irfan

    David Kozina Guest

    irfan,

    Terry Dotson's ToolPac can convert plines to mlines:
    www.dotsoft.com

    I have my own AutoLISP code to do that, too, but it is not exactly fit for
    human consumption, presently, and I think it would probably hinder you more
    than help you.

    One way I can think of to accomplish your request is to extract the pline
    object's vertices and use that list of points to create the mline object.
    Set the Current MLine Justification and MLStyle SysVars as needed ahead of
    time. (You may need to take into consideration other factors, such as UCSs,
    the OCS of the pline, etc., depending on your usage.)

    hth,
    David Kozina
     
    David Kozina, Mar 23, 2005
    #2
  3. irfan

    irfan Guest

    thanks, for ur reply. I think i will have to write my own code

    irfan
     
    irfan, Mar 23, 2005
    #3
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.