using System.Runtime.InteropServices;
namespace SolidWorks.Interop.sldworks
{
[Guid(“9CE9DACE-E595-4D8F-B893-5AE4899517DE”)]
[TypeLibType(TypeLibTypeFlags.FHidden | TypeLibTypeFlags.FDual | TypeLibTypeFlags.FDispatchable)]
public interface ISketchManager
{
[DispId(2)]草图偏移
bool SketchOffset(double Offset, bool BothDirections, bool Chain, bool CapEnds, bool MakeConstruction, bool AddDimensions);
[DispId(3)]周界圆(三点坐标)
dynamic PerimeterCircle(double X1, double Y1, double X2, double Y2, double X3, double Y3);
[DispId(4)]*
bool GetDynamicMirror();
[DispId(5)]*
bool SetDynamicMirror(bool DynamicMirror);
[DispId(6)]*
bool SketchUseEdge(bool Chain);
[DispId(7)]
int GetSketchBlockDefinitionCount();
[DispId(8)]
dynamic GetSketchBlockDefinitions();
[DispId(9)]
SketchBlockDefinition IGetSketchBlockDefinitions(int BlockDefCount);
[DispId(10)]
SketchBlockDefinition MakeSketchBlockFromSelected(MathPoint InsertionPoint);
[DispId(11)]
SketchBlockDefinition MakeSketchBlockFromSketch(MathPoint InsertionPoint, Sketch Sketch);
[DispId(12)]
SketchBlockDefinition MakeSketchBlockFromFile(MathPoint InsertionPoint, string FileName, bool LinkedToFile, double Scale, double Angle);
[DispId(13)]
SketchBlockInstance InsertSketchBlockInstance(SketchBlockDefinition BlockDef, MathPoint Position, double Scale, double Angle);
[DispId(14)]
void EditSketchBlock();
[DispId(15)]
void EndEditSketchBlock(bool AcceptChanges);
[DispId(16)]
void ExplodeSketchBlockInstance(SketchBlockInstance LpSketchBlockInstance);
[DispId(17)]
bool SketchTrim(int Option, double X, double Y, double Z);
[DispId(18)]
bool SketchExtend(double X, double Y, double Z);
[DispId(19)]
bool MakeSketchChain();
[DispId(20)]
int FullyDefineSketch(bool EntitiesToFullyDefine, bool UseRelations, int RelationsToApply, bool UseDimensions, int HorizontalDimScheme, object HorizontalDatumDisp, int VerticalDimScheme, object Vertic