GetClass Object Attributes 

Declaration:

FUNCTION   GetClass
( h:HANDLE ) :STRING ;

Description:

Function GetClass returns the class assigned to the referenced object. None is returned if the object has no class assigned to it.

Parameters:

h Handle to object.

Example:

ObjectClass:=GetClass(handleToObject);



  GetFillBack Object Attributes 

Declaration:

PROCEDURE   GetFillBack
(   h :HANDLE;
  VAR  red :LONGINT;
  VAR  green :LONGINT;
  VAR  blue :LONGINT
) ;

Description:

Procedure GetFillBack returns the fill background color of the referenced object. RGB values are in the range of 0~65535.

Parameters:

h Handle to object.
red Returns RGB color component value.
green Returns RGB color component value.
blue Returns RGB color component value.

Example:

GetFillBack(handleToObject,redValue,greenValue,blueValue);

See Also:

RGBToColorIndex   ColorIndexToRGB  



  GetFillFore Object Attributes 

Declaration:

PROCEDURE   GetFillFore
(   h :HANDLE;
  VAR  red :LONGINT;
  VAR  green :LONGINT;
  VAR  blue :LONGINT
) ;

Description:

Procedure GetFillFore returns the fill foreground color of the referenced object. RGB values are in the range of 0~65535.

Parameters:

h Handle to object.
red Returns RGB color component value.
green Returns RGB color component value.
blue Returns RGB color component value.

Example:

GetFillFore(handleToObject,redValue,greenValue,blueValue);

See Also:

RGBToColorIndex   ColorIndexToRGB  



  GetFillIAxisEndPoint Object Attributes 

Declaration:

PROCEDURE   GetFillIAxisEndPoint
(   objectHandle :HANDLE;
  VAR  xIAxisEndPoint :REAL;
  VAR  yIAxisEndPoint :REAL
) ;

Description:

Gets the I-axis end point of the fill.

Note: only works with 2D objects that have a gradient or image fill.

Parameters:

objectHandle Handle to the object with fill.
xIAxisEndPoint X coordinate of I-axis point.
yIAxisEndPoint Y coordinate of I-axis point.

Example:

GetFillIAxisEndPoint(objectHandle, xIAxis, yIAxis);



  GetFillJAxisEndPoint Object Attributes 

Declaration:

PROCEDURE   GetFillJAxisEndPoint
(   objectHandle :HANDLE;
  VAR  xJAxisEndPoint :REAL;
  VAR  yJAxisEndPoint :REAL
) ;

Description:

Gets the J-axis end point of the fill.

Note: only works with 2D objects that have a gradient or image fill.

Parameters:

objectHandle Handle to the object with fill.
xJAxisEndPoint X coordinate of J-axis point.
yJAxisEndPoint Y coordinate of J-axis point.

Example:

GetFillJAxisEndPoint(objectHandle, xJAxis, yJAxis);



  GetFillOriginPoint Object Attributes 

Declaration:

PROCEDURE   GetFillOriginPoint
(   objectHandle :HANDLE;
  VAR  xOriginPoint :REAL;
  VAR  yOriginPoint :REAL
) ;

Description:

Gets the origin point of the fill.

Note: only works with 2D objects that have a gradient or image fill.

Parameters:

objectHandle Handle to the object with fill.
xOriginPoint X coordinate of origin point.
yOriginPoint Y coordinate of origin point.

Example:

GetFillOriginPoint(objectHandle, xOrigin, yOrigin);



  GetFillPoints Object Attributes 

Declaration:

PROCEDURE   GetFillPoints
(   objectHandle :HANDLE;
  VAR  xOriginPoint :REAL;
  VAR  yOriginPoint :REAL;
  VAR  xIAxisEndPoint :REAL;
  VAR  yIAxisEndPoint :REAL;
  VAR  xJAxisEndPoint :REAL;
  VAR  yJAxisEndPoint :REAL
) ;

Description:

Gets start and axis end points of the fill.

Note: only works with 2D objects that have a gradient or image fill.

Parameters:

objectHandle Handle to the object with fill.
xOriginPoint X coordinate of origin point.
yOriginPoint Y coordinate of origin point.
xIAxisEndPoint X coordinate of I-axis point.
yIAxisEndPoint Y coordinate of I-axis point.
xJAxisEndPoint X coordinate of J-axis point.
yJAxisEndPoint Y coordinate of J-axis point.

Example:

GetFillPoints(objectHandle, xOrigin, yOrigin, xIAxis, yIAxis, xJAxis, yJAxis);



  GetFPat Object Attributes 

Declaration:

FUNCTION   GetFPat
( h:HANDLE ) :LONGINT ;

Description:

Function GetFPat returns the fill pattern of the referenced object.

A positive value corresponds to the index of the fill pattern on the pattern palette. A negative value corresponds to internal index of a vector fill pattern applied to the object.

Fill patterns and their associated constants can be found in the VectorScript Appendix.

Parameters:

h Handle to object.

Example:

FPatValue:=GetFPat(HandleToObj);



  GetLS Object Attributes 

Declaration:

FUNCTION   GetLS
( h:HANDLE ) :INTEGER ;

Description:

Function GetLS returns the line style of the referenced object.

Parameters:

h Handle to object.

Example:

lStyleValue:=GetLS(handleToObject);



  GetLW Object Attributes 

Declaration:

FUNCTION   GetLW
( h:HANDLE ) :INTEGER ;

Description:

Function GetLW returns the line weight of the referenced object. The value returned represents the width in mils.

Parameters:

h Handle to object.

Example:

PROCEDURE GetLWExample;
VAR
	x, y :REAL;
	h :HANDLE;
BEGIN
	GetPt(x, y);
	h := PickObject(x, y);
	IF h <> NIL THEN Message(GetLW(h));
END;
RUN(GetLWExample);



  GetMarker Object Attributes 

Declaration:

PROCEDURE   GetMarker
(   h :HANDLE;
  VAR  start :BOOLEAN;
  VAR  end :BOOLEAN;
  VAR  style :INTEGER;
  VAR  size :REAL
) ;

Special Notes:

GetMarker is obsolete as of VectorWorks13.0

Description:

Returns marker information on the referenced object.

Parameters:

h Handle to the object.
start True if a marker is visible at start of object.
end True if a marker is visible at end of object.
style Marker style:
0 - Filled Arrow Marker
1 - Empty Arrow Marker
2 - Open Arrow Marker
3 - Filled Ball Marker
4 - Empty Ball Marker
5 - Slash Marker
6 - Cross Marker
size Size of marker.

Example:

PROCEDURE CheckMarker;
VAR
	h: HANDLE;
	MarkerStyle: INTEGER;
	StartMark, EndMark: BOOLEAN;
	Size: REAL;
BEGIN
	h := FSActLayer;
	GetMarker(H, StartMark, EndMark, MarkerStyle, Size);
	Message('StartMark: ', StartMark, ' EndMark:', EndMark, ' MarkerStyle:', MarkerStyle, ' Size:', Size);
END;
RUN(CheckMarker);

See Also:

SetMarker  



  GetObjArrow Object Attributes 

Declaration:

PROCEDURE   GetObjArrow
(   obj :HANDLE;
  VAR  style :INTEGER;
  VAR  size :REAL;
  VAR  angle :INTEGER;
  VAR  start :BOOLEAN;
  VAR  end :BOOLEAN
) ;

Special Notes:

GetObjArrow is obsolete as of VectorWorks13.0

Description:

Procedure GetObjArrow returns the arrow style parameters for the indicated object.

Parameters:

obj The indicated object.
style Returns arrow style.
size Returns arrow size in inches measured in page space.
angle Returns arrow angle (in degrees).
start Returns whether the start point of the object has an arrow.
end Returns whether the endpoint of the object has an arrow.

Example:

PROCEDURE ShowObjArrowValues;
VAR
	style :INTEGER;
	size	 :REAL;
	ang	 :INTEGER;
	start :BOOLEAN;
	endPt :BOOLEAN;
	obj   :HANDLE;
BEGIN
	obj := FSActLayer;
	GetObjArrow(obj, style, size, ang, start, endPt);
	Message(style, ' ', size, ' ', ang, ' ', start, ' ', endPt);
END;
RUN(ShowObjArrowValues);



  GetObjBeginningMarker Object Attributes 

Declaration:

FUNCTION   GetObjBeginningMarker
(   object :HANDLE;
  VAR  style :LONGINT;
  VAR  angle :INTEGER;
  VAR  size :REAL;
  VAR  width :REAL;
  VAR  thicknessBasis :INTEGER;
  VAR  thickness :REAL;
  VAR  visibility :BOOLEAN
) :BOOLEAN ;

Description:

Gets all properties for an object's beginning marker. Return TRUE if operation was successful.

Parameters:

object Handle to object.
style The marker style. (see comments for details)
angle The marker angle in degrees. (0 to 90)
size The marker size in inches.
width The marker width in inches.
thicknessBasis The marker thickness basis. ( see comments for details)
thickness The marker thickness.
visibility The marker visibility.

Example:

PROCEDURE Example;
VAR
	h: HANDLE;
	style: INTEGER;
	angle: INTEGER;
	size: REAL;
	width: REAL;
	thickBasis: INTEGER;
	thickness: REAL;
	visibility: BOOLEAN;

	ok : BOOLEAN;
	
BEGIN
	h := FSActLayer;
	ok := GetObjBeginningMarker (h, style, angle, size, width, thickBasis, thickness, visibility);
	Message (style, ' /  ', angle, '  /  ', size, '  /  ', width, ' /  ', thickBasis, ' /  ', thickness, ' /  ', visibility);
END;

RUN(Example);

See Also:

GetObjEndMarker  



  GetObjEndMarker Object Attributes 

Declaration:

FUNCTION   GetObjEndMarker
(   object :HANDLE;
  VAR  style :LONGINT;
  VAR  angle :INTEGER;
  VAR  size :REAL;
  VAR  width :REAL;
  VAR  thicknessBasis :INTEGER;
  VAR  thickness :REAL;
  VAR  visibility :BOOLEAN
) :BOOLEAN ;

Description:

Gets all properties for an object's end marker. Return TRUE if operation was successful.

Parameters:

object Handle to object.
style The marker style. (see comments for details)
angle The marker angle in degrees. (0 to 90)
size The marker size in page inches.
width The marker width in page inches.
thicknessBasis The marker thickness basis. ( see comments for details)
thickness The marker thickness.
visibility The marker visibility.

Example:

PROCEDURE Example;
VAR
	h: HANDLE;
	style: INTEGER;
	angle: INTEGER;
	size: REAL;
	width: REAL;
	thickBasis: INTEGER;
	thickness: REAL;
	visibility: BOOLEAN;

	ok : BOOLEAN;
	
BEGIN
	h := FSActLayer;
	ok := GetObjEndMarker (h, style, angle, size, width, thickBasis, thickness, visibility);
	Message (style, ' /  ', angle, '  /  ', size, '  /  ', width, ' /  ', thickBasis, ' /  ', thickness, ' /  ', visibility);
END;

RUN(Example);

See Also:

GetObjBeginningMarker  



  GetOpacity Object Attributes 

Declaration:

PROCEDURE   GetOpacity
(   h :HANDLE;
  VAR  opacity :INTEGER
) ;

Description:

Gets the opacity of and object. Opacity is obtained as percentage value in range [0-100].

Parameters:

h The object which opacity will be get.
opacity Output parameter. Return the object's opacity as percentage value in range [0-100].



  GetOpacityByClass Object Attributes 

Declaration:

PROCEDURE   GetOpacityByClass
(   h :HANDLE;
  VAR  isByClass :BOOLEAN
) ;

Description:

Returns whether the object is using the class opacity.



  GetPenBack Object Attributes 

Declaration:

PROCEDURE   GetPenBack
(   h :HANDLE;
  VAR  red :LONGINT;
  VAR  green :LONGINT;
  VAR  blue :LONGINT
) ;

Description:

Procedure GetPenBack returns the pen background color of the referenced object. RGB values are in the range of 0~65535.

Parameters:

h Handle to object.
red Returns RGB color component value.
green Returns RGB color component value.
blue Returns RGB color component value.

Example:

PROCEDURE Example;
VAR
	h :HANDLE;
	r, g, b :LONGINT;
BEGIN
	h := FSActLayer;
	GetPenBack(h, r, g, b);
	Message('r= ', r, ' g= ', g, ' b= ', b);
END;
RUN(Example);

See Also:

RGBToColorIndex   ColorIndexToRGB  



  GetPenFore Object Attributes 

Declaration:

PROCEDURE   GetPenFore
(   h :HANDLE;
  VAR  red :LONGINT;
  VAR  green :LONGINT;
  VAR  blue :LONGINT
) ;

Description:

Procedure GetPenFore returns the pen foreground color components of the referenced object. RGB values are in the range of 0~65535.

Parameters:

h Handle to object.
red Returns RGB color component value.
green Returns RGB color component value.
blue Returns RGB color component value.

Example:

GetPenFore(handleToObject,redValue,greenValue,blueValue);

See Also:

ColorIndexToRGB   RGBToColorIndex  



  GetViewMatrix Object Attributes 

Declaration:

FUNCTION   GetViewMatrix
(   objectHandle :HANDLE;
  VAR  offsetX :REAL;
  VAR  offsetY :REAL;
  VAR  offsetZ :REAL;
  VAR  rotationXAng :REAL;
  VAR  rotationYAng :REAL;
  VAR  rotationZAng :REAL
) :BOOLEAN ;

Description:

Gets view matrix for layer or viewport object.



  IsFillColorByClass Object Attributes 

Declaration:

FUNCTION   IsFillColorByClass
( h:HANDLE ) :BOOLEAN ;

Description:

Function IsFillColorByClass returns whether class fill colors are used for the referenced object.

Parameters:

h Handle to object.



  IsFPatByClass Object Attributes 

Declaration:

FUNCTION   IsFPatByClass
( h:HANDLE ) :BOOLEAN ;

Description:

Function IsFPatByClass whether a class fill pattern is used for the referenced object.

Parameters:

h Handle to object.



  IsLSByClass Object Attributes 

Declaration:

FUNCTION   IsLSByClass
( h:HANDLE ) :BOOLEAN ;

Description:

Function IsLSByClass returns whether a class line style is used for the referenced object.

Parameters:

h Handle to object.



  IsLWByClass Object Attributes 

Declaration:

FUNCTION   IsLWByClass
( h:HANDLE ) :BOOLEAN ;

Description:

Function IsLWByClass returns whether a class line weight is used for the referenced object.

Parameters:

h Handle to object.

Example:

PROCEDURE Example;
VAR
   symDefHandle, h :HANDLE;

PROCEDURE AlertMe;
BEGIN
   Message(GetSDName(symDefHandle));
   SetSelect(h);
END;

BEGIN
   DSelectAll;
   ClrMessage;
   symDefHandle := FSymDef;
   WHILE symDefHandle <> NIL DO BEGIN
      h := FInSymDef(symDefHandle);
      WHILE h <> NIL DO BEGIN
         IF IsLWByClass(h) THEN AlertMe;
         h := NextObj(h);
      END;
      symDefHandle := NextObj(symDefHandle);
   END;
END;
RUN(Example);



  IsMarkerByClass Object Attributes 

Declaration:

FUNCTION   IsMarkerByClass
( h:HANDLE ) :BOOLEAN ;

Description:

Function IsMarkerByClass returns whether a class marker style is used for the referenced object.

Parameters:

h Handle to object.



  IsPenColorByClass Object Attributes 

Declaration:

FUNCTION   IsPenColorByClass
( h:HANDLE ) :BOOLEAN ;

Description:

Function IsPenColorByClass returns whether class pen colors are used for the referenced object.

Parameters:

h Handle to object.



  SetClass Object Attributes 

Declaration:

PROCEDURE   SetClass
(   h :HANDLE;
    class :STRING
) ;

Description:

Procedure SetClass assigns a class to the referenced object.

Parameters:

h Handle to object.
class Name of class to assign to object.

Example:

SetClass(ObjHd,'Dimension');



  SetFillBack Object Attributes 

Declaration:

PROCEDURE   SetFillBack
(   h :HANDLE;
    colorR :LONGINT;
    colorG :LONGINT;
    colorB :LONGINT
) ;

Description:

Procedure SetFillBack sets the fill background color setting of the specified object. RGB values are in the range of 0~65535.

Parameters:

h Handle to object.
color RGB color value.

See Also:

RGBToColorIndex   ColorIndexToRGB  



  SetFillColorByClass Object Attributes 

Declaration:

PROCEDURE   SetFillColorByClass
( h:HANDLE ) ;

Description:

Procedure SetFillColorByClass sets the referenced object to use the class attribute fill colors.

Parameters:

h Handle to object.



  SetFillFore Object Attributes 

Declaration:

PROCEDURE   SetFillFore
(   h :HANDLE;
    colorR :LONGINT;
    colorG :LONGINT;
    colorB :LONGINT
) ;

Description:

Procedure SetFillFore sets the fill foreground color setting of the referenced object. RGB values are in the range of 0~65535.

Parameters:

h Handle to object.
color RGB color value.

Example:

SetFillFore(h, 65535, 0, 0);

See Also:

RGBToColorIndex   ColorIndexToRGB  



  SetFillIAxisEndPoint Object Attributes 

Declaration:

PROCEDURE   SetFillIAxisEndPoint
(   objectHandle :HANDLE;
    xIAxisEndPoint :REAL;
    yIAxisEndPoint :REAL
) ;

Description:

Sets the I-axis end point of the fill.

Note: only works with 2D objects that have a gradient or image fill.

Parameters:

objectHandle Handle to the object with fill.
xIAxisEndPoint X coordinate of I-axis point.
yIAxisEndPoint Y coordinate of I-axis point.

Example:

SetFillIAxisEndPoint(objectHandle, 20.0, 10.0);



  SetFillJAxisEndPoint Object Attributes 

Declaration:

PROCEDURE   SetFillJAxisEndPoint
(   objectHandle :HANDLE;
    xJAxisEndPoint :REAL;
    yJAxisEndPoint :REAL
) ;

Description:

Sets the J-axis end point of the fill.

Note: only works with 2D objects that have a gradient or image fill.

Parameters:

objectHandle Handle to object with fill.
xJAxisEndPoint X coordinate of J-axis point.
yJAxisEndPoint Y coordinate of J-axis point.

Example:

SetFillJAxisEndPoint(objectHandle, 15.0, 25.0);



  SetFillOriginPoint Object Attributes 

Declaration:

PROCEDURE   SetFillOriginPoint
(   objectHandle :HANDLE;
    xOriginPoint :REAL;
    yOriginPoint :REAL
) ;

Description:

Sets the origin point of the fill.

Note: only works with 2D objects that have a gradient or image fill.

Parameters:

objectHandle Handle to the object with fill.
xOriginPoint X coordinate of origin point.
yOriginPoint Y coordinate of origin point.

Example:

SetFillOriginPoint(objectHandle, 10.0, 20.0);



  SetFPat Object Attributes 

Declaration:

PROCEDURE   SetFPat
(   h :HANDLE;
    fillPattern :LONGINT
) ;

Description:

Procedure SetFPat sets the fill pattern of the referenced object.

To apply a bitmap fill pattern, use positive value corresponding to the index of the bitmap pattern. To apply a vector fill pattern, use the negative of the vector fill index (index * -1).

Fill patterns and their associated constants can be found in the VectorScript Appendix.

Parameters:

h Handle to object.
fillPattern Fill index value.

Example:

{ Apply a bitmap fill pattern. }
SetFPat(objectOne, 47);

{ Apply a vector fill. }
SetFPat(objectTwo, -Name2Index('My Hatch'));



  SetFPatByClass Object Attributes 

Declaration:

PROCEDURE   SetFPatByClass
( h:HANDLE ) ;

Description:

Procedure SetFPatByClass sets the referenced object to use the class attribute fill pattern.

Parameters:

h Handle to object.



  SetLS Object Attributes 

Declaration:

PROCEDURE   SetLS
(   h :HANDLE;
    ls :INTEGER
) ;

Description:

Procedure SetLS sets the linestyle of the referenced object.

If the value is in the range 0 to 71, the specified fill pattern is applied as the linestyle; a value in the range of -1 to -8 will apply the specified linestyle.

Fill patterns and their associated constants can be found in the VectorScript Appendix.

Parameters:

h Handle to object.
ls Linestyle to apply to object.

Example:

PROCEDURE Example;
VAR
	cnt :INTEGER;
BEGIN
	PushAttrs;
	TextSize(1);
	TextJust(3);
	TextVerticalAlign(3);
	FOR cnt := -10 TO 71 DO BEGIN
		TextOrigin(-2, cnt);
		CreateText(Concat(cnt));
		MoveTo(0, cnt);
		LineTo(24", cnt);
		SetLS(LNewObj, cnt);
	END;
	PopAttrs;
END;
RUN(Example);



  SetLSByClass Object Attributes 

Declaration:

PROCEDURE   SetLSByClass
( h:HANDLE ) ;

Description:

Procedure SetLSByClass sets the referenced object to use the class attribute line style.

Parameters:

h Handle to object.



  SetLW Object Attributes 

Declaration:

PROCEDURE   SetLW
(   h :HANDLE;
    lw :INTEGER
) ;

Description:

Procedure SetLW sets the line weight of the referenced object.

Parameters:

h Handle to object
lw Line weight to be applied to object (in mils).

Example:

SetLW(ObjHd,12);



  SetLWByClass Object Attributes 

Declaration:

PROCEDURE   SetLWByClass
( h:HANDLE ) ;

Description:

Procedure SetLWByClass sets the referenced object to use the class attribute line weight.

Parameters:

h Handle to object.



  SetMarker Object Attributes 

Declaration:

PROCEDURE   SetMarker
(   h :HANDLE;
    start :BOOLEAN;
    end :BOOLEAN;
    style :INTEGER;
    size :REAL
) ;

Special Notes:

SetMarker is obsolete as of VectorWorks13.0

Description:

Specifies marker information for the referenced object - OBSOLETE procedure: Use SetObjBeginningMarker and/or SetObjEndMarker instead.

Parameters:

h Handle to the object
start True if a marker is visible at start of object.
end True if a marker is visible at end of object.
style Marker style:
0 - Filled Arrow Marker
1 - Empty Arrow Marker
2 - Open Arrow Marker
3 - Filled Ball Marker
4 - Empty Ball Marker
5 - Slash Marker
6 - Cross Marker
size Size of marker

Example:

PROCEDURE Example;
BEGIN
   MoveTo(0, 0);
   LineTo(100, 0);
   SetMarker(LNewObj, TRUE, FALSE, 2, 10000);
END;
RUN(Example);

See Also:

GetMarker   SetObjBeginningMarker   SetObjEndMarker  



  SetMarkerByClass Object Attributes 

Declaration:

PROCEDURE   SetMarkerByClass
( h:HANDLE ) ;

Description:

Procedure SetMarkerByClass sets the referenced object to use the class attribute marker style.

Parameters:

h Handle to object.

See Also:

SetObjArrow  



  SetObjArrow Object Attributes 

Declaration:

PROCEDURE   SetObjArrow
(   obj :HANDLE;
    style :INTEGER;
    size :REAL;
    angle :INTEGER;
    start :BOOLEAN;
    end :BOOLEAN
) ;

Special Notes:

SetObjArrow is obsolete as of VectorWorks13.0

Description:

Procedure SetObjArrow sets the arrow style parameters for the indicated object.

Marker Styles

Marker Style Constant
Filled Arrow 0
Empty Arrow 1
Open Arrow 2
Filled Circle 3
Empty Circle 4
Slash 5
Cross 6

Parameters:

obj The indicated object.
style The arrow style.
size The arrow size in inches measured in page space.
angle The arrow angle (in degrees).
start Whether the start point of the object has an arrow.
end Whether the endpoint of the object has an arrow.

Example:

PROCEDURE SetObjArrowValues;
BEGIN
	SetObjArrow(FSActLayer, 1, .25, 15, TRUE, TRUE);
END;
RUN(SetObjArrowValues);



  SetObjBeginningMarker Object Attributes 

Declaration:

FUNCTION   SetObjBeginningMarker
(   object :HANDLE;
    style :LONGINT;
    angle :INTEGER;
    size :REAL;
    width :REAL;
    thicknessBasis :INTEGER;
    thickness :REAL;
    visibility :BOOLEAN
) :BOOLEAN ;

Description:

Sets all properties of an object's beginning marker. Return TRUE if operation was successful.

Parameters:

object Handle to object.
style The marker style. (see comments for details)
angle The marker angle in degrees. (0 to 90)
size The marker size in page inches.
width The marker width in page inches.
thicknessBasis The marker thickness basis. ( see comments for details)
thickness The marker thickness.
visibility The marker visibility.

Example:

PROCEDURE Example;
VAR
	ok : BOOLEAN;
	
BEGIN
	MoveTo (0,0);
LineTo (100, 0);
	ok := SetObjBeginningMarker(LNewObj, 1280, 25, 0.25, 0.125, 34, 2, TRUE);	
END;

RUN(Example);

See Also:

SetObjEndMarker  



  SetObjEndMarker Object Attributes 

Declaration:

FUNCTION   SetObjEndMarker
(   object :HANDLE;
    style :LONGINT;
    angle :INTEGER;
    size :REAL;
    width :REAL;
    thicknessBasis :INTEGER;
    thickness :REAL;
    visibility :BOOLEAN
) :BOOLEAN ;

Description:

Sets all properties of an object's end marker. Return TRUE if operation was successful.

Parameters:

object Handle to object.
style The marker style. (see comments for details)
angle The marker angle in degrees. (0 to 90)
size The marker size in page inches.
width The marker width in page inches.
thicknessBasis The marker thickness basis. ( see comments for details)
thickness The marker thickness.
visibility The marker visibility.

Example:

PROCEDURE Example;
VAR
	ok : BOOLEAN;
	
BEGIN
	MoveTo (0,0);
LineTo (100, 0);
	ok := SetObjEndMarker(LNewObj, 1280, 25, 0.25, 0.125, 34, 2, TRUE);	
END;

RUN(Example);

See Also:

SetObjBeginningMarker  



  SetOpacity Object Attributes 

Declaration:

PROCEDURE   SetOpacity
(   h :HANDLE;
    opacity :INTEGER
) ;

Description:

Sets the opacity of the object to the opacity passed in.



  SetOpacityByClass Object Attributes 

Declaration:

PROCEDURE   SetOpacityByClass
( h:HANDLE ) ;

Description:

Sets the specified class to use the class opacity.



  SetPenBack Object Attributes 

Declaration:

PROCEDURE   SetPenBack
(   h :HANDLE;
    colorR :LONGINT;
    colorG :LONGINT;
    colorB :LONGINT
) ;

Description:

Procedure SetPenBack sets the pen background color of the referenced object. RGB values are in the range of 0~65535.

Parameters:

h Handle to object.
color RGB color value.

See Also:

RGBToColorIndex   ColorIndexToRGB  



  SetPenColorByClass Object Attributes 

Declaration:

PROCEDURE   SetPenColorByClass
( h:HANDLE ) ;

Description:

Procedure SetPenColorByClass sets the referenced object to use the class attribute pen colors.

Parameters:

h Handle to object.



  SetPenFore Object Attributes 

Declaration:

PROCEDURE   SetPenFore
(   h :HANDLE;
    colorR :LONGINT;
    colorG :LONGINT;
    colorB :LONGINT
) ;

Description:

Procedure SetPenFore sets the pen foreground color of the referenced object. RGB values are in the range of 0~65535.

Parameters:

h Handle to object.
color RGB color value.

Example:

SetPenFore(HandleToObj,65535,0,39321); 

See Also:

RGBToColorIndex   ColorIndexToRGB  



  SetViewMatrix Object Attributes 

Declaration:

FUNCTION   SetViewMatrix
(   objectHandle :HANDLE;
    offsetX :REAL;
    offsetY :REAL;
    offsetZ :REAL;
    rotationXAng :REAL;
    rotationYAng :REAL;
    rotationZAng :REAL
) :BOOLEAN ;

Description:

Sets view matrix for layer or viewport object.



  UpdateThumbnailPreview Object Attributes 

Declaration:

FUNCTION   UpdateThumbnailPreview
( resourceHandle:HANDLE ) :BOOLEAN ;

Description:

For a given Vectorworks resource (i.e. Hatch, Texture, Symbol/PIO, etc...), this function will create or update it's thumbnail preview.

Parameters:

resourceHandle Handle to the resource.

Result:

This function returns true if the operation was successful, false otherwise.