Quantcast
Channel: Autodesk AutoCAD forums
Viewing all articles
Browse latest Browse all 14319

MlineStyle

$
0
0

Hello,

I want to use MlineStyle to custom mLine.

Here are my own codes and it does't work.

 

Line dashdot = new Line();

dashdot.Linetype = "Dash";  

MlineStyleElement off1100 = new MlineStyleElement(3720 / 2, Autodesk.AutoCAD.Colors.Color.FromRgb(0, 0, 0), dashdot.LinetypeId);

MlineStyle mlineStyle = new MlineStyle();   

mlineStyle.Elements.Add(off1100, false);          

Mline ml = new Mline();

ml.Style = mlineStyle.ObjectId;

 

How can I use MlineStyle?

 

Thanks in advance.

 

Allen


Viewing all articles
Browse latest Browse all 14319

Trending Articles