Differences between CorelDRAW 7 and 8 script commands

Due to large number of minor changes in function parameter names, these changes are not shown in this document. Also, all subroutines were converted to functions returning Long.

Legend:

Parameter - Added parameter
Parameter - Removed parameter

Changed Commands:

  • Function ApplyContour(ContourType AS Long, Offset AS Long, Steps AS Long, ColorWheelDirection AS Long, lOutlineColorModel AS Long, lOutlineV1 AS Long, lOutlineV2 AS Long, lOutlineV3 AS Long, lOutlineV4 AS Long, lFillFromColorModel AS Long, lFillFromV1 AS Long, lFillFromV2 AS Long, lFillFromV3 AS Long, lFillFromV4 AS Long, lFillToColorModel AS Long, lFillToV1 AS Long, lFillToV2 AS Long, lFillToV3 AS Long, lFillToV4 AS Long) AS Long
  • Function ApplyExtrude(ExtrudeType AS Long, VPProperties AS Long, CopyObjectID AS Long, Depth AS Long, VPHorizPos AS Long, VPVertPos AS Long, PageOrigin AS Boolean, Light1Pos AS Long, Light1Intensity AS Long, Light2Pos AS Long, Light2Intensity AS Long, Light3Pos AS Long, Light3Intensity AS Long, FillType AS Long, lDrapeFillOrFillColorModel AS Long, lFillV1 AS Long, lFillV2 AS Long, lFillV3 AS Long, lFillV4 AS Long, lFillFrontColorModel AS Long, lFillFrontV1 AS Long, lFillFrontV2 AS Long, lFillFrontV3 AS Long, lFillFrontV4 AS Long, lFillBackColorModel AS Long, lFillBackV1 AS Long, lFillBackV2 AS Long, lFillBackV3 AS Long, lFillBackV4 AS Long, DrapeFill AS Boolean) AS Long
  • Function ApplyFullColorFill(FileName AS String, TileWidth AS Long, TileHeight AS Long, FirstTileOffsetX AS Long, FirstTileOffsetY AS Long, RowOffset AS Boolean, RowColumnOffset AS Long, SeamlessTiling AS Boolean, ScaleWithObject AS Boolean, VectorBBoxTop AS Long, VectorBBoxBottom AS Long, VectorBBoxLeft AS Long, VectorBBoxRight AS Long, RotationAngle AS Long, SkewAngle AS Long) AS Long
  • Function ApplyLensEffect(LensType AS Long, Frozen AS Boolean, RemoveFace AS Boolean, ViewPoint AS Boolean, VPX AS Long, VPY AS Long, Param1 AS Long, lColorModel1 AS Long, lColor1V1 AS Long, lColor1V2 AS Long, lColor1V3 AS Long, lColor1V4 AS Long, lColorModel2 AS Long, lColor2V1 AS Long, lColor2V2 AS Long, lColor2V3 AS Long, lColor2V4 AS Long) AS Long
  • Function ApplyRotatedExtrude(ExtrudeType AS Long, Depth AS Long, XRotation AS Long, YRotation AS Long, ZRotation AS Long, VPHorizPos AS Long, VPVertPos AS Long, PageOrigin AS Boolean, Light1Pos AS Long, Light1Intensity AS Long, Light2Pos AS Long, Light2Intensity AS Long, Light3Pos AS Long, Light3Intensity AS Long, FillType AS Long, lDrapeFillOrFillColorModel AS Long, lFillV1 AS Long, lFillV2 AS Long, lFillV3 AS Long, lFillV4 AS Long, lFillFrontColorModel AS Long, lFillFrontV1 AS Long, lFillFrontV2 AS Long, lFillFrontV3 AS Long, lFillFrontV4 AS Long, lFillBackColorModel AS Long, lFillBackV1 AS Long, lFillBackV2 AS Long, lFillBackV3 AS Long, lFillBackV4 AS Long, DrapeFill AS Boolean) AS Long
  • Function ApplyTextureFill(TextureLibrary AS String, TextureName AS String, TextureStyle AS String, TextureWidth AS Long, TextureHeight AS Long, TextureOffestX AS Long, TextureOffsetY AS Long, RowOffset AS Boolean, RowColumnOffset AS Long, ScaleWithObject AS Boolean, RotationAngle AS Long, SkewAngle AS Long) AS Long
  • Function ApplyTwoColorFill(FileName AS String, ColorModel1 AS Long, Color11 AS Long, Color12 AS Long, Color13 AS Long, Color14 AS Long, ColorModel2 AS Long, Color21 AS Long, Color22 AS Long, Color23 AS Long, Color24 AS Long, TileWidth AS Long, TileHeight AS Long, FirstTileOffsetX AS Long, FirstTileOffsetY AS Long, RowOffset AS Boolean, RowColumnOffset AS Long, SeamlessTiling AS Boolean, ScaleWithObject AS Boolean, RotationAngle AS Long, SkewAngle AS Long) AS Long
  • Function ApplyUniformFillColor(ColorModel AS Long, Color1 AS Long, Color2 AS Long, Color3 AS Long, Color4 AS Long) AS Long
  • Function ConvertColor(lFromColorModel AS Long, lFromV1 AS Long, lFromV2 AS Long, lFromV3 AS Long, lFromV4 AS Long, ToColorModel AS Long, ToV1 AS Long, ToV2 AS Long, ToV3 AS Long, ToV4 AS Long, ToV5 AS Long, ToV6 AS Long, ToDensity AS Long) AS Long
  • Function CreateRectangle(Top AS Long, Left AS Long, Bottom AS Long, Right AS Long, CornerRadius AS Long, CornerRadius2 AS Long, CornerRadius3 AS Long, CornerRadius4 AS Long) AS Long
  • Function DeleteLayer(LayerName AS String) AS Long
  • Function DeletePages(UnusedParameter AS Boolean, NumberOfPages AS Long, StartPageNumber AS Long) AS Long
  • Function FileExport(FileName AS String, FilterId AS Long, Width AS Long, Height AS Long, XResolution AS Long, YResolution AS Long, ImageType AS Long, Antialiasing AS Long, Overwrite AS Boolean, SelectionOnly AS Boolean) AS Long
  • Function FileImport(FileName AS String, FilterId AS Long, MaintainLayersAndPages AS Boolean) AS Long
  • Function GetFountainFillColor(Index AS Long, Position AS Long, ColorModel AS Long, V1 AS Long, V2 AS Long, V3 AS Long, V4 AS Long, V5 AS Long, V6 AS Long, Density AS Long) AS Long
  • Function GetOutlineColor(ColorModel AS Long, V1 AS Long, V2 AS Long, V3 AS Long, V4 AS Long, V5 AS Long, V6 AS Long, Density AS Long) AS Long
  • Function GetUniformFillColor(ColorModel AS Long, V1 AS Long, V2 AS Long, V3 AS Long, V4 AS Long, V5 AS Long, V6 AS Long, Density AS Long) AS Long
  • Function RecorderEditTextCharAttributes(FirstSelectedChar AS Long, LastSelectedChar AS Long, FontName AS String, FontStyle AS Long, PointSize AS Long, Underline AS Long, Overline AS Long, StrikeOut AS Long, Placement AS Long, Effect AS Long, CharacterSpacing AS Long, WordSpacing AS Long, LineSpacing AS Long, Alignment AS Long) AS Long
  • Function SetColorOverride(Override AS Boolean, ColorModel AS Long, Color1 AS Long, Color2 AS Long, Color3 AS Long, Color4 AS Long) AS Long
  • Function SetLayerLocked(Locked AS Boolean, LayerName AS String, PageNum AS Long) AS Long
  • Function SetLayerPrintable(Printable AS Boolean, LayerName AS String, PageNum AS Long) AS Long
  • Function SetLayerVisible(Visible AS Boolean, LayerName AS String, PageNum AS Long) AS Long
  • Function SetOutlineColor(ColorModel AS Long, Color1 AS Long, Color2 AS Long, Color3 AS Long, Color4 AS Long) AS Long
  • Function SetPaperColor(ColorModel AS Long, Color1 AS Long, Color2 AS Long, Color3 AS Long, Color4 AS Long) AS Long
  • Function SetToMasterLayer(Master AS Boolean, LayerName AS String) AS Long
  • Function StretchObject(XScaleNumerator AS LongDouble, XScaleDenominator AS LongDouble, YScaleNumerator AS LongDouble, YScaleDenominator AS LongDouble, HMirror AS Boolean, VMirror AS Boolean, ReferenceNum AS Long) AS Long
  • Function SuppressPainting(ShowDialog AS Boolean) AS Long

New commands:

  • Function AddEnvelopeEffect(PresetNumber AS Long, MappingMode AS Long, KeepLines AS Boolean) AS Long
  • Function AddNode(X AS Long, Y AS Long) AS Long
  • Function AddObjectDataField(FieldName AS String) AS Long
  • Function ApplyBitmapEffect(EffectID AS Long) AS Long
  • Function ApplyDistortion(New AS Boolean, DistortionType AS Long, Amplitude AS Long, Frequency AS Long, Seed AS Long, Angle AS Long, CenterX AS Long, CenterY AS Long, Flag AS Long) AS Long
  • Function ApplyDropShadow(HorizOffset AS Long, VertOffset AS Long, Opacity AS Long, Feather AS Long, FeatherType AS Long, FeatherEdge AS Long) AS Long
  • Function ApplyFountainBitmapLens(Type AS Long, CenterX AS Long, CenterY AS Long, Angle AS Long, Steps AS Long, Padding AS Long, Blend AS Long, Rate AS Long, Starting AS Long, Operation AS Long, Freeze AS Boolean) AS Long
  • Function ApplyTextureBitmapLens(TextureLibrary AS String, TextureName AS String, TextureStyle AS String, TextureWidth AS Long, TextureHeight AS Long, TextureOffsetX AS Long, TextureOffsetY AS Long, RowOffset AS Boolean, RowColumnOffset AS Long, ScaleWithObject AS Boolean, RotationAngle AS Long, SkewAngle AS Long, Starting AS Long, Ending AS Long, Operation AS Long, Freeze AS Boolean) AS Long
  • Function ApplyTwoColorBitmapLens(FileName AS String, TileWidth AS Long, TileHeight AS Long, FirstTileOffsetX AS Long, FirstTileOffsetY AS Long, RowOffset AS Boolean, RowColumnOffset AS Long, SeamlessTiling AS Boolean, ScaleWithObject AS Boolean, RotationAngle AS Long, SkewAngle AS Long, Starting AS Long, Ending AS Long, Operation AS Long, Freeze AS Boolean) AS Long
  • Function ApplyUniformBitmapLens(Starting AS Long, Operation AS Long, Freeze AS Boolean) AS Long
  • Function BeginCommandGroup(UndoString AS String) AS Long
  • Function Benchmark(Enable AS Boolean) AS Long
  • Function ChangeLayerColor(LayerName AS String, PageNum AS Long) AS Long
  • Function ClearAllObjectData() AS Long
  • Function ClearNodeSelection() AS Long
  • Function ClearObjectData(FieldName AS String) AS Long
  • Function ConvertBitmapTo(EffectID AS Long) AS Long
  • Function ConvertOutlineToObject() AS Long
  • Function ConvertToBitmap(BitDepth AS Long, Grayscale AS Boolean, Dithered AS Boolean, TransparentBG AS Boolean, Resolution AS Long, Antialiasing AS Long, UseColorProfile AS Boolean) AS Long
  • Function CopyObjectDataFields(Index AS Long) AS Long
  • Function CopyPowerClip(Index AS Long, XDisp AS Long, YDisp AS Long) AS Long
  • Function CreateAngleDimension(X1 AS Long, Y1 AS Long, X2 AS Long, Y2 AS Long, X3 AS Long, Y3 AS Long, X4 AS Long, Y4 AS Long, LargeAngle AS Boolean, WitnessExtension AS Long, WitnessGap AS Long, LabelGap AS Long) AS Long
  • Function CreateCallout(X1 AS Long, Y1 AS Long, X2 AS Long, Y2 AS Long, X3 AS Long, Y3 AS Long, Text AS String) AS Long
  • Function CreateConnector(X1 AS Long, Y1 AS Long, X2 AS Long, Y2 AS Long, Placement AS Boolean) AS Long
  • Function CreateDimension(X1 AS Long, Y1 AS Long, X2 AS Long, Y2 AS Long, X3 AS Long, Y3 AS Long, Style AS Long, WitnessExtension AS Long, WitnessGap AS Long, LabelGap AS Long) AS Long
  • Function CreateGridBoxes(Top AS Long, Left AS Long, Bottom AS Long, Right AS Long, Wide AS Long, High AS Long) AS Long
  • Function CreateNewStyle(StyleType AS Long, StyleName AS String) AS Long
  • Function CreateObjectDataField(FieldName AS String, Format AS String, Order AS Long, ColumnWidth AS Long, DrawDefault AS Boolean, DocDefault AS Boolean, SummarizeGroup AS Boolean) AS Long
  • Function CreateSpiral(Top AS Long, Left AS Long, Bottom AS Long, Right AS Long, NumRevolutions AS Long, SpiralType AS Long, GrowthRate AS Long) AS Long
  • Function CutToClipboard() AS Long
  • Function DefineObjectDataField(FieldName AS String, Format AS String, DrawDefault AS Boolean, DocDefault AS Boolean, SummarizeGroup AS Boolean) AS Long
  • Function DeleteNode() AS Long
  • Function DeleteObjectDataField(FieldName AS String) AS Long
  • Function EditAngleDimensionLabel(Dynamic AS Boolean, Precision AS Integer, Units AS Integer, ShowUnits AS Boolean, Prefix AS String, Suffix AS String) AS Long
  • Function EditDimensionLabel(Placement AS Integer, Horizontal AS Boolean, Center AS Boolean, Dynamic AS Boolean, Style AS Integer, Precision AS Integer, Units AS Integer, ShowUnits AS Boolean, Prefix AS String, Suffix AS String) AS Long
  • Function EditLayer(LayerName AS String, PageNum AS Long, NewName AS String, Visible AS Boolean, Printable AS Boolean, Locked AS Boolean, Master AS Boolean, WireOverride AS Boolean, ChangeColor AS Boolean) AS Long
  • Function EndCommandGroup() AS Long
  • Function ExtractContents() AS Long
  • Function GetBitmapResolution(XRes AS Long, YRes AS Long) AS Long
  • Function GetBitmapSize(Width AS Long, Height AS Long) AS Long
  • Function GetCDRFileCompRatio(FileName AS String) AS Long
  • Function GetCDRFileKeywords(FileName AS String) AS String
  • Function GetCDRFileLastSavedBy(FileName AS String) AS String
  • Function GetCDRFileNotes(FileName AS String) AS String
  • Function GetCDRFileThumbnail(CDRFileName AS String, BMPFileName AS String) AS Long
  • Function GetCDRFileVersion(FileName AS String) AS Long
  • Function GetColor(StoreColor AS Boolean, ColorModel AS Long, V1 AS Long, V2 AS Long, V3 AS Long, V4 AS Long, V5 AS Long, V6 AS Long, V7 AS Long) AS Long
  • Function GetCurrentPageName() AS String
  • Function GetCurrentPageOrientation(Orient AS Long) AS Long
  • Function GetCurrentPageSize(Width AS Long, Height AS Long) AS Long
  • Function GetCurrentWorkspaceName() AS String
  • Function GetCurveClose() AS Long
  • Function GetCurveFirstNodePosition(X AS Long, Y AS Long) AS Long
  • Function GetCurveIthNodePosition(Index AS Long, X AS Long, Y AS Long) AS Long
  • Function GetCurveLastNodePosition(X AS Long, Y AS Long) AS Long
  • Function GetCurveLength() AS Long
  • Function GetCurveNodeCount() AS Long
  • Function GetCurveSubpathCount() AS Long
  • Function GetDocumentCount() AS Long
  • Function GetDocumentName() AS String
  • Function GetEllipseClockwise() AS Boolean
  • Function GetEllipseEndAngle() AS Double
  • Function GetEllipseStartAngle() AS Double
  • Function GetEllipseType() AS Long
  • Function GetNodeIndex(Position AS Long) AS Long
  • Function GetNodePosition(X AS Long, Y AS Long, Position AS Long) AS Long
  • Function GetNodeSelectedCount() AS Long
  • Function GetNodeType() AS Long
  • Function GetObjectCount(Selection AS Boolean, Grouped AS Boolean) AS Long
  • Function GetObjectData(FieldName AS String) AS String
  • Function GetObjectID(Index AS Long, Selection AS Boolean, Grouped AS Boolean) AS Long
  • Function GetPageCount() AS Long
  • Function GetPolygonSharpness() AS Long
  • Function GetPolygonSides() AS Long
  • Function GetPolygonType() AS Long
  • Function GetRectangleRadius(Radius1 AS Double, Radius2 AS Double, Radius3 AS Double, Radius4 AS Double) AS Long
  • Function GetSegmentLength() AS Long
  • Function GetSegmentType() AS Long
  • Function GetTextFontName() AS String
  • Function GetTextFontSize() AS Long
  • Function GetTextString() AS String
  • Function GetTextWordCount() AS Long
  • Function GetUserClick(XCoord AS Long, YCoord AS Long, TimeOut AS Long, IgnoreSnap AS Boolean) AS Long
  • Function GetWorkspaceCount() AS Long
  • Function GetWorkspaceDescription(Name AS String) AS String
  • Function GetWorkspaceName(Index AS Long) AS String
  • Function InflateBitmap(Width AS Long, Height AS Long, InflationType AS Long) AS Long
  • Function IsBitmapExternallyLink() AS Long
  • Function IsDefaultWorkspace(Name AS String) AS Long
  • Function IsDocument() AS Boolean
  • Function IsSelection() AS Boolean
  • Function MoveLayerTo(DestLayer AS String, BeforeDest AS Boolean) AS Long
  • Function MoveNode(DeltaX AS Long, DeltaY AS Long) AS Long
  • Function OrderObjectDataFields(FieldToMove AS Long, NewPosition AS Long) AS Long
  • Function PasteObjectData(Index AS Long, FieldName AS String) AS Long
  • Function PlaceInside(Index AS Long, XDisp AS Long, YDisp AS Long, ForceCenter AS Boolean, Center AS Boolean) AS Long
  • Function RegisterObject(ObjectID AS String) AS Boolean
  • Function RenameObjectDataField(OldFieldName AS String, NewFieldName AS String) AS Long
  • Function RenameStyle(OldName AS String, NewName AS String) AS Long
  • Function RepeatLastCommand() AS Long
  • Function ResolveAllBitmapsLink() AS Long
  • Function ResolveBitmapLink() AS Long
  • Function SaveStyleProp(StyleName AS String, UseFill AS Boolean, UseOutline AS Boolean, UseFont AS Long, UseAlignment AS Long, UseSpacing AS Long, UseLines AS Long, UseIndentsAndMargins AS Long, UseTextEffects AS Long) AS Long
  • Function SelectNextNode() AS Long
  • Function SelectNode(Index AS Long, AddToSelection AS Boolean) AS Long
  • Function SelectNodeAt(X AS Long, Y AS Long, AddToSelection AS Boolean) AS Long
  • Function SelectObjectOfType(Type AS Long) AS Long
  • Function SetCornerRoundness(Roundness AS Long, Roundness2 AS Long, Roundness3 AS Long, Roundness4 AS Long) AS Long
  • Function SetCurrentDocument() AS Boolean
  • Function SetCurrentPageName(Name AS String) AS Long
  • Function SetCurrentPageOrientation(Orient AS Long) AS Long
  • Function SetCurrentPageSize(Width AS Long, Height AS Long) AS Long
  • Function SetCurrentWorkspace(Name AS String) AS Long
  • Function SetDocVisible(Show AS Boolean) AS Long
  • Function SetEllipseProperties(Arc AS Boolean, StartAngle AS Long, EndAngle AS Long) AS Long
  • Function SetErrorHandling(Msg AS Boolean) AS Boolean
  • Function SetNodeType(Type AS Long) AS Long
  • Function SetObjectData(FieldName AS String, FieldValue AS String) AS Long
  • Function SetPolygonProperties(Star AS Boolean, Points AS Long, Sharpness AS Long) AS Long
  • Function SetSegmentType(Type AS Long) AS Long
  • Function StartEditContents() AS Long
  • Function StopEditContents() AS Long
  • Function StoreColor(ColorModel AS Long, V1 AS Long, V2 AS Long, V3 AS Long, V4 AS Long, V5 AS Long, V6 AS Long, V7 AS Long, Position AS Long) AS Long
  • Function UngroupAll() AS Long
  • Function UnRegisterObject(ObjectID AS String) AS Boolean
  • Function UpdateBitmapLink() AS Long
  • Function ZoomIn() AS Long
  • Function ZoomOut() AS Long
  • Function ZoomToAllObjects() AS Long
  • Function ZoomToHeight() AS Long
  • Function ZoomToPage() AS Long
  • Function ZoomToRectangle(Top AS Long, Left AS Long, Bottom AS Long, Right AS Long) AS Long
  • Function ZoomToSelection() AS Long
  • Function ZoomToWidth() AS Long

Deleted Commands:

  • Sub SetFountainFillColor(Position AS Long, ColorModel AS Long, Color1 AS Long, Color2 AS Long, Color3 AS Long, Color4 AS Long)

[ CorelSCRIPT commands | Learning CorelSCRIPT | DTP & Graphics | Oberon Home Page ]

Copyright 2000 by Alex Vakulenko. All rights reserved.
This page was last revised on 01/13/00.