DIAdem Help

Method: Remove for 3DCurves

  • Updated2024-09-12
  • 1 minute(s) read

Method: Remove for 3DCurves

Deletes a curve from a 3D axis system in DIAdem REPORT.

Object.Remove(NameOrIndex)
Object3DCurves
Object with this method
NameOrIndexVariant
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:

VBScriptPython

 

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

Log in to get a better experience