(2)错误提示:
QAxBase: Error calling IDispatch member AddLine: Exception thrown by server
Code : 87
Source :
Description:
Help :
Connect to the exception(int,QString,QString,QString) signal to catch this exception
(3)COM的“AddLine”说明:
IDispatch* AddLine (QVariant StartPoint, QVariant EndPoint) [slot]
Connect a signal to this slot:
QObject::connect(sender, SIGNAL(someSignal(QVariant, QVariant)),object, SLOT(AddLine(QVariant,
QVariant)));
Or call the function directly:
QVariantList params = ...
QAxObject * result = object->querySubObject("AddLine(QVariant, QVariant)", params);
(4)AutoCAD中关于相应的VBA函数格式的说明:
Signature
RetVal = object.AddLine(StartPoint, EndPoint)
Object
ModelSpace Collection, PaperSpace Collection, Block
The objects this method applies to.
StartPoint
Variant (three-element array of doubles); input-only
The 3D WCS coordinates specifying the line start point.
EndPoint
Variant (three-element array of doubles); input-only
The 3D WCS coordinates specifying the line endpoint.
RetVal
Line object
The newly created Line object.