第 1 条消息(共 4 条)

不适用
07-01-2021
06:24 AM
Hi ,
I am creating a rectangle with below code.I have set a color as well for the line.But instead of that,I want to fill the inside of rectangle with a color .Is it possible to do from C#.please help
double[] coordinate = GlobalVariable.stringToDoubleArray(areapoints, ',');
//create polyline
polylineObject = null;
polylineObject = acadDocument.ModelSpace.AddPolyline(coordinate);
if (polylineObject != null)
{
polylineObject.Closed = true;
polylineObject.color = (ACAD_COLOR)GlobalVariable.colorDictionary[(parameter.GetElementColor().ToString())];
polylineObject.Linetype = GlobalVariable.lineTypeDictionary[lineTypeName[0].ToString().ToUpper()];
}
Thanks in advance,
Anu
已解决! 转到解答。