ISketchManager【从元数据】----功能类别(3)sketch---更新中

本文档详细介绍了SolidWorks API中的ISketchManager接口,包括草图偏移、周界圆、动态镜像等关键方法,用于Sketch的创建、编辑和管理。这些方法适用于使用C#和VS2017进行SolidWorks 2017的二次开发。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值