📄 acad.h
字号:
// Attributes
public:
// Operations
public:
CString GetHandle();
CString GetObjectName();
void GetXData(LPCTSTR AppName, VARIANT* XDataType, VARIANT* XDataValue);
void SetXData(const VARIANT& XDataType, const VARIANT& XDataValue);
void Delete();
long GetObjectID();
LPDISPATCH GetApplication();
BOOL GetHasExtensionDictionary();
LPDISPATCH GetExtensionDictionary();
long GetOwnerID();
LPDISPATCH GetDocument();
long GetColor();
void SetColor(long nNewValue);
CString GetLayer();
void SetLayer(LPCTSTR lpszNewValue);
CString GetLinetype();
void SetLinetype(LPCTSTR lpszNewValue);
double GetLinetypeScale();
void SetLinetypeScale(double newValue);
BOOL GetVisible();
void SetVisible(BOOL bNewValue);
VARIANT ArrayPolar(long NumberOfObjects, double AngleToFill, const VARIANT& CenterPoint);
VARIANT ArrayRectangular(long NumberOfRows, long NumberOfColumns, long NumberOfLevels, double DistBetweenRows, double DistBetweenCols, double DistBetweenLevels);
void Highlight(BOOL HighlightFlag);
LPDISPATCH Copy();
void Move(const VARIANT& FromPoint, const VARIANT& ToPoint);
void Rotate(const VARIANT& BasePoint, double RotationAngle);
void Rotate3D(const VARIANT& Point1, const VARIANT& Point2, double RotationAngle);
LPDISPATCH Mirror(const VARIANT& Point1, const VARIANT& Point2);
LPDISPATCH Mirror3D(const VARIANT& Point1, const VARIANT& Point2, const VARIANT& point3);
void ScaleEntity(const VARIANT& BasePoint, double ScaleFactor);
void TransformBy(const VARIANT& TransformationMatrix);
void Update();
void GetBoundingBox(VARIANT* MinPoint, VARIANT* MaxPoint);
VARIANT IntersectWith(LPDISPATCH IntersectObject, long option);
CString GetPlotStyleName();
void SetPlotStyleName(LPCTSTR lpszNewValue);
long GetLineweight();
void SetLineweight(long nNewValue);
LPDISPATCH GetHyperlinks();
VARIANT GetNormal();
void SetNormal(const VARIANT& newValue);
double GetRotation();
void SetRotation(double newValue);
VARIANT GetTextPosition();
void SetTextPosition(const VARIANT& newValue);
double GetTextRotation();
void SetTextRotation(double newValue);
CString GetTextOverride();
void SetTextOverride(LPCTSTR lpszNewValue);
CString GetStyleName();
void SetStyleName(LPCTSTR lpszNewValue);
long GetTextColor();
void SetTextColor(long nNewValue);
CString GetDecimalSeparator();
void SetDecimalSeparator(LPCTSTR lpszNewValue);
double GetTextGap();
void SetTextGap(double newValue);
CString GetTextPrefix();
void SetTextPrefix(LPCTSTR lpszNewValue);
CString GetTextSuffix();
void SetTextSuffix(LPCTSTR lpszNewValue);
double GetScaleFactor();
void SetScaleFactor(double newValue);
long GetVerticalTextPosition();
void SetVerticalTextPosition(long nNewValue);
long GetTolerancePrecision();
void SetTolerancePrecision(long nNewValue);
double GetToleranceHeightScale();
void SetToleranceHeightScale(double newValue);
double GetToleranceLowerLimit();
void SetToleranceLowerLimit(double newValue);
long GetTextMovement();
void SetTextMovement(long nNewValue);
long GetToleranceDisplay();
void SetToleranceDisplay(long nNewValue);
long GetToleranceJustification();
void SetToleranceJustification(long nNewValue);
double GetToleranceUpperLimit();
void SetToleranceUpperLimit(double newValue);
CString GetTextStyle();
void SetTextStyle(LPCTSTR lpszNewValue);
double GetTextHeight();
void SetTextHeight(double newValue);
BOOL GetSuppressLeadingZeros();
void SetSuppressLeadingZeros(BOOL bNewValue);
BOOL GetSuppressTrailingZeros();
void SetSuppressTrailingZeros(BOOL bNewValue);
BOOL GetToleranceSuppressLeadingZeros();
void SetToleranceSuppressLeadingZeros(BOOL bNewValue);
BOOL GetToleranceSuppressTrailingZeros();
void SetToleranceSuppressTrailingZeros(BOOL bNewValue);
VARIANT GetExtLine1Point();
void SetExtLine1Point(const VARIANT& newValue);
VARIANT GetExtLine2Point();
void SetExtLine2Point(const VARIANT& newValue);
BOOL GetAltUnits();
void SetAltUnits(BOOL bNewValue);
long GetAltUnitsPrecision();
void SetAltUnitsPrecision(long nNewValue);
double GetAltUnitsScale();
void SetAltUnitsScale(double newValue);
double GetAltRoundDistance();
void SetAltRoundDistance(double newValue);
long GetAltTolerancePrecision();
void SetAltTolerancePrecision(long nNewValue);
long GetAltUnitsFormat();
void SetAltUnitsFormat(long nNewValue);
CString GetAltTextPrefix();
void SetAltTextPrefix(LPCTSTR lpszNewValue);
CString GetAltTextSuffix();
void SetAltTextSuffix(LPCTSTR lpszNewValue);
long GetDimensionLineColor();
void SetDimensionLineColor(long nNewValue);
long GetExtensionLineColor();
void SetExtensionLineColor(long nNewValue);
long GetPrimaryUnitsPrecision();
void SetPrimaryUnitsPrecision(long nNewValue);
double GetDimensionLineExtend();
void SetDimensionLineExtend(double newValue);
double GetExtensionLineExtend();
void SetExtensionLineExtend(double newValue);
long GetFit();
void SetFit(long nNewValue);
long GetFractionFormat();
void SetFractionFormat(long nNewValue);
long GetHorizontalTextPosition();
void SetHorizontalTextPosition(long nNewValue);
double GetLinearScaleFactor();
void SetLinearScaleFactor(double newValue);
long GetUnitsFormat();
void SetUnitsFormat(long nNewValue);
long GetExtensionLineWeight();
void SetExtensionLineWeight(long nNewValue);
double GetRoundDistance();
void SetRoundDistance(double newValue);
BOOL GetDimLine1Suppress();
void SetDimLine1Suppress(BOOL bNewValue);
BOOL GetDimLine2Suppress();
void SetDimLine2Suppress(BOOL bNewValue);
BOOL GetExtLine1Suppress();
void SetExtLine1Suppress(BOOL bNewValue);
BOOL GetExtLine2Suppress();
void SetExtLine2Suppress(BOOL bNewValue);
BOOL GetDimLineInside();
void SetDimLineInside(BOOL bNewValue);
BOOL GetTextInsideAlign();
void SetTextInsideAlign(BOOL bNewValue);
BOOL GetTextInside();
void SetTextInside(BOOL bNewValue);
BOOL GetForceLineInside();
void SetForceLineInside(BOOL bNewValue);
BOOL GetTextOutsideAlign();
void SetTextOutsideAlign(BOOL bNewValue);
double GetExtensionLineOffset();
void SetExtensionLineOffset(double newValue);
BOOL GetAltSuppressLeadingZeros();
void SetAltSuppressLeadingZeros(BOOL bNewValue);
BOOL GetAltSuppressTrailingZeros();
void SetAltSuppressTrailingZeros(BOOL bNewValue);
BOOL GetAltSuppressZeroFeet();
void SetAltSuppressZeroFeet(BOOL bNewValue);
BOOL GetAltSuppressZeroInches();
void SetAltSuppressZeroInches(BOOL bNewValue);
BOOL GetAltToleranceSuppressLeadingZeros();
void SetAltToleranceSuppressLeadingZeros(BOOL bNewValue);
BOOL GetAltToleranceSuppressTrailingZeros();
void SetAltToleranceSuppressTrailingZeros(BOOL bNewValue);
BOOL GetAltToleranceSuppressZeroFeet();
void SetAltToleranceSuppressZeroFeet(BOOL bNewValue);
BOOL GetAltToleranceSuppressZeroInches();
void SetAltToleranceSuppressZeroInches(BOOL bNewValue);
BOOL GetSuppressZeroFeet();
void SetSuppressZeroFeet(BOOL bNewValue);
BOOL GetSuppressZeroInches();
void SetSuppressZeroInches(BOOL bNewValue);
BOOL GetToleranceSuppressZeroFeet();
void SetToleranceSuppressZeroFeet(BOOL bNewValue);
BOOL GetToleranceSuppressZeroInches();
void SetToleranceSuppressZeroInches(BOOL bNewValue);
long GetDimensionLineWeight();
void SetDimensionLineWeight(long nNewValue);
double GetArrowheadSize();
void SetArrowheadSize(double newValue);
long GetArrowhead1Type();
void SetArrowhead1Type(long nNewValue);
long GetArrowhead2Type();
void SetArrowhead2Type(long nNewValue);
double GetMeasurement();
CString GetArrowhead1Block();
void SetArrowhead1Block(LPCTSTR lpszNewValue);
CString GetArrowhead2Block();
void SetArrowhead2Block(LPCTSTR lpszNewValue);
};
/////////////////////////////////////////////////////////////////////////////
// IAcadDimension wrapper class
class IAcadDimension : public COleDispatchDriver
{
public:
IAcadDimension() {} // Calls COleDispatchDriver default constructor
IAcadDimension(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
IAcadDimension(const IAcadDimension& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
// Attributes
public:
// Operations
public:
CString GetHandle();
CString GetObjectName();
void GetXData(LPCTSTR AppName, VARIANT* XDataType, VARIANT* XDataValue);
void SetXData(const VARIANT& XDataType, const VARIANT& XDataValue);
void Delete();
long GetObjectID();
LPDISPATCH GetApplication();
BOOL GetHasExtensionDictionary();
LPDISPATCH GetExtensionDictionary();
long GetOwnerID();
LPDISPATCH GetDocument();
long GetColor();
void SetColor(long nNewValue);
CString GetLayer();
void SetLayer(LPCTSTR lpszNewValue);
CString GetLinetype();
void SetLinetype(LPCTSTR lpszNewValue);
double GetLinetypeScale();
void SetLinetypeScale(double newValue);
BOOL GetVisible();
void SetVisible(BOOL bNewValue);
VARIANT ArrayPolar(long NumberOfObjects, double AngleToFill, const VARIANT& CenterPoint);
VARIANT ArrayRectangular(long NumberOfRows, long NumberOfColumns, long NumberOfLevels, double DistBetweenRows, double DistBetweenCols, double DistBetweenLevels);
void Highlight(BOOL HighlightFlag);
LPDISPATCH Copy();
void Move(const VARIANT& FromPoint, const VARIANT& ToPoint);
void Rotate(const VARIANT& BasePoint, double RotationAngle);
void Rotate3D(const VARIANT& Point1, const VARIANT& Point2, double RotationAngle);
LPDISPATCH Mirror(const VARIANT& Point1, const VARIANT& Point2);
LPDISPATCH Mirror3D(const VARIANT& Point1, const VARIANT& Point2, const VARIANT& point3);
void ScaleEntity(const VARIANT& BasePoint, double ScaleFactor);
void TransformBy(const VARIANT& TransformationMatrix);
void Update();
void GetBoundingBox(VARIANT* MinPoint, VARIANT* MaxPoint);
VARIANT IntersectWith(LPDISPATCH IntersectObject, long option);
CString GetPlotStyleName();
void SetPlotStyleName(LPCTSTR lpszNewValue);
long GetLineweight();
void SetLineweight(long nNewValue);
LPDISPATCH GetHyperlinks();
VARIANT GetNormal();
void SetNormal(const VARIANT& newValue);
double GetRotation();
void SetRotation(double newValue);
VARIANT GetTextPosition();
void SetTextPosition(const VARIANT& newValue);
double GetTextRotation();
void SetTextRotation(double newValue);
CString GetTextOverride();
void SetTextOverride(LPCTSTR lpszNewValue);
CString GetStyleName();
void SetStyleName(LPCTSTR lpszNewValue);
long GetTextColor();
void SetTextColor(long nNewValue);
CString GetDecimalSeparator();
void SetDecimalSeparator(LPCTSTR lpszNewValue);
double GetTextGap();
void SetTextGap(double newValue);
CString GetTextPrefix();
void SetTextPrefix(LPCTSTR lpszNewValue);
CString GetTextSuffix();
void SetTextSuffix(LPCTSTR lpszNewValue);
double GetScaleFactor();
void SetScaleFactor(double newValue);
long GetVerticalTextPosition();
void SetVerticalTextPosition(long nNewValue);
long GetTolerancePrecision();
void SetTolerancePrecision(long nNewValue);
double GetToleranceHeightScale();
void SetToleranceHeightScale(double newValue);
double GetToleranceLowerLimit();
void SetToleranceLowerLimit(double newValue);
long GetTextMovement();
void SetTextMovement(long nNewValue);
long GetToleranceDisplay();
void SetToleranceDisplay(long nNewValue);
long GetToleranceJustification();
void SetToleranceJustification(long nNewValue);
double GetToleranceUpperLimit();
void SetToleranceUpperLimit(double newValue);
CString GetTextStyle();
void SetTextStyle(LPCTSTR lpszNewValue);
double GetTextHeight();
void SetTextHeight(double newValue);
BOOL GetSuppressLeadingZeros();
void SetSuppressLeadingZeros(BOOL bNewValue);
BOOL GetSuppressTrailingZeros();
void SetSuppressTrailingZeros(BOOL bNewValue);
BOOL GetToleranceSuppressLeadingZeros();
void SetToleranceSuppressLeadingZeros(BOOL bNewValue);
BOOL GetToleranceSuppressTrailingZeros();
void SetToleranceSuppressTrailingZeros(BOOL bNewValue);
};
/////////////////////////////////////////////////////////////////////////////
// IAcadDimAngular wrapper class
class IAcadDimAngular : public COleDispatchDriver
{
public:
IAcadDimAngular() {} // Calls COleDispatchDriver default constructor
IAcadDimAngular(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
IAcadDimAngular(const IAcadDimAngular& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -