Message 1 of 4

Not applicable
07-01-2021
06:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
Solved! Go to Solution.