Hallo,
DrawingDoc::NewSheet3
Description
This method creates a new drawing sheet in this drawing.
Syntax (OLE Automation)
retval = DrawingDoc.NewSheet3 ( name, paperSize, templateIn, scale1, scale2, firstAngle, templateName, width, height, propertyViewName )
Input:
(BSTR) name
Name to be given to the new drawing sheet
Input:
(short) paperSize
Size of paper if using swDwgTemplateNone as defined in swDwgPaperSizes_e
Input:
(short) templateIn
Template index as defined in swDwgTemplates_e
Input:
(double) scale1
Scale numerator
Input:
(double) scale2
Scale denominator
Input:
(BOOL) firstAngle
TRUE for first angle projection, FALSE otherwise
Input:
(BSTR) templateName
Name of custom template with full directory path if templateIn is set to swDwgTemplateCustom
Input:
(double) width
Paper width if templateIn is set to swDwgTemplateNone or swDwgPapersUserDefined
Input:
(double) height
Paper height if templateIn is set to swDwgTemplateNone or swDwgPapersUserDefined
Input:
(BSTR) propertyViewName
Name of the drawing view containing the model to get custom property values from
Return:
(BOOL) retval
TRUE drawing sheet creation was successful, FALSE if not
Syntax (COM)
status = DrawingDoc->NewSheet3 ( name, paperSize, templateIn, scale1, scale2, firstAngle, templateName, width, height, propertyViewName, &retval )
Input:
(BSTR) name
Name to be given to the new drawing sheet
Input:
(short) paperSize
Size of paper if using swDwgTemplateNone as defined in swDwgPaperSizes_e
Input:
(short) templateIn
Template index as defined in swDwgTemplates_e
Input:
(double) scale1
Scale numerator
Input:
(double) scale2
Scale denominator
Input:
(VARIANT_BOOL) firstAngle
TRUE for first angle projection, FALSE otherwise
Input:
(BSTR) templateName
Name of custom template with full directory path if templateIn is set to swDwgTemplateCustom
Input:
(double) width
Paper width if templateIn is set to swDwgTemplateNone or swDwgPapersUserDefined
Input:
(double) height
Paper height if templateIn is set to swDwgTemplateNone and swDwgPapersUserDefined
Input:
(BSTR) propertyViewName
Name of drawing view containing the model to get custom property values from
Output:
(VARIANT_BOOL) retval
TRUE if successful, FALSE if not
Return:
(HRESULT) status
S_OK if successful
Es ist genau das was die Fehlermeldung sagt, es werden 10 Argumente verlangt, Du übergibts aber 11.
Gruß HaPe
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP