Arbortext IsoView > Programmer's Reference > Object Attributes > Iso3SetGrAttribute
  
Iso3SetGrAttribute
Sets a graphic attribute for an object and enables you to change the appearance of an object and its children on screen. The content of the graphics file is not changed.
Introduced with Arbortext IsoView 3.0.
Syntax
Iso3SetGRAttributeobjExprattrNamevalue
Parameters:
objExpr
Defines the object expression identifying for one or multiple objects as BSTR.
attrName
Defines the attribute name as BSTR. There are several predefined attribute names:
stroke-width
line weight of stroked elements
stroke
stroke color of stroked elements
fill
fill color of filled elements
text-color
text color
color
sets stroke, fill, and text colors
backColor
sets background color
visibility
visibility of the object
greeked-size
minimum text size before greeking is applied (negative value disables greeking)
click-radius
selection proximity for line hotspots
value
Defines a new value for the attribute; use empty string to reset original values.
Allowed values for stroke-width
positive value in mm or percentage
Allowed values for colors
RGB values separated by commas or percentage
Allowed values for visibility
use "hidden" to hide; all other values will show the object
objExpr = IsoViewX1.Iso3GetRootObject
Call IsoViewX1.Iso3SetGrAttribute(objExpr, "stroke", "20%")
Call IsoViewX1.Iso3SetGrAttribute(objExpr, "text-color", "20%")
Call IsoViewX1.Iso3SetGrAttribute(objExpr, "fill", "20%")
Call IsoViewX1.Refresh
//Examples for stroke-width:
Call IsoViewX1.Iso3SetGrAttribute(objExpr, "stroke-width", "2")
Call IsoViewX1.Iso3SetGrAttribute(objExpr, "stroke-width", "200%")
//Examples for colors:
Call IsoViewX1.Iso3SetGrAttribute(objExpr, "color", "255,0,0")
Call IsoViewX1.Iso3SetGrAttribute(objExpr, "color", "20%")
//Other expamples:
Call IsoViewX1.Iso3SetGrAttribute("", "greeked-size", "2")