Hachures
Not applicable
08-07-2017
04:19 AM
hello,
I need to know types of entities accepted by type Hatch ? Because i get PolyfaceMesh and some Polyline3D as InvalidInputs and i don't know why ?
ObjectIdCollection ObjIds = new ObjectIdCollection(); ObjIds.Add(id); Hatch oHatch = new Hatch(); Vector3d normal = new Vector3d(0.0, 0.0, 1.0); oHatch.Normal = normal; oHatch.Elevation = 0.0; if (scale != 0) oHatch.PatternScale = scale; oHatch.SetHatchPattern(HatchPatternType.PreDefined, typ); if (ang != 0) oHatch.PatternAngle = ang; if (!string.IsNullOrEmpty(s)) oHatch.Layer = nomlayer; if (layercolor != 0) oHatch.ColorIndex = layercolor; btr.AppendEntity(oHatch); Tx.AddNewlyCreatedDBObject(oHatch, true); oHatch.Associative = true; oHatch.AppendLoop((int)HatchLoopTypes.Default, ObjIds); oHatch.EvaluateHatch(true);
Link copied