Method: Remove for 3DCurves
- Updated2024-09-12
- 1 minute(s) read
DIAdem REPORT > Methods > Method: Remove for 3DCurves
Method: Remove for 3DCurves
Deletes a curve from a 3D axis system in DIAdem REPORT.
Object.Remove(NameOrIndex)
Object | 3DCurves Object with this method |
NameOrIndex | Variant Specifies the name or the index of the 3D curve. |
The following example deletes the curve with the highest index from each 3D axis system of the current worksheet:
VBScript | Python |
Dim oMyReportObj, oMyReportObjects, iCurveCount Set oMyReportObjects = Report.ActiveSheet.Objects For Each oMyReportObj in oMyReportObjects If oMyReportObj.ObjectType = eReportObject3DAxisSystem Then iCurveCount = oMyReportObj.Curves3D.Count If iCurveCount > 1 Then Call oMyReportObj.Curves3D.Remove(iCurveCount) End If End If Next