pyautocad icon indicating copy to clipboard operation
pyautocad copied to clipboard

How to use the AddMLine?

Open 1019245175 opened this issue 7 years ago • 1 comments

I know how to use the AddLine or the AddCircle. But i don't find the answer.Could someone tell me?

1019245175 avatar May 14 '18 13:05 1019245175

from pyautocad import Autocad
import array

acad = Autocad(create_if_not_exists=True)

points_3d = [0, 0, 0, 1, 1, 0, 2, 1, 0]
points_double = array.array("d", points_3d)
mline = acad.model.AddMLine(points_double)

mline.MLineScale = 1

FrancoTonutti avatar May 06 '19 17:05 FrancoTonutti