AddTileGeometryObject | Document Attributes Vectorworks 2011 |
VectorScript Declaration:
FUNCTION AddTileGeometryObject
( tileHandle :HANDLE; objectHandle :HANDLE ) :BOOLEAN ; Python:
return BOOLEAN
def vs.AddTileGeometryObject(tileHandle, objectHandle): Description:
Adds the specified object to the specified tile resource.説明
指定したタイルリソースに指定した図形を追加します。Parameters:
tileHandle The handle to the tile resource. タイルのハンドル objectHandle The handle to the object to add. 追加する図形のハンドル Result:
TRUE if a valid object was successfully added; FALSE otherwise.返り値
オブジェクトが追加されたらTRUEが返りますExample:
return := AddTileGeometryGroup(tileHandle, objectHandle);See Also:
CreateTile ShowEditTileDialog ShowEditTileSettingsDialog ShowNewTileDialog GetTileGeometryGroup BeginGroupN AddTileGeometryObject GetTileGroupParent IsTileGroupContainedObject GetTileBackgroundColor SetTileBackgroundColor GetTileRepetitionPoint SetTileRepetitionPoint GetTileOffsetPoint SetTileOffsetPoint
CreateImageFromPaint | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
FUNCTION CreateImageFromPaint
( paint :HANDLE; imageName :STRING ) :HANDLE ; Python:
return HANDLE
def vs.CreateImageFromPaint(paint, imageName): Description:
Creates an image resource from a paint node.説明
ペイントノードからイメージを作成します。Parameters:
paint Handle to the paint node to be used to create the image resource. ペイントノードのハンドル imageName User-specified name to be used to identify the newly created image resource. イメージの名前 Result:
Returns the handle to the newly create image resource if successful; nil otherwise.返り値
新しく作成されたイメージのハンドルを返します。その他の場合はNILを返します。Example:
imageHandle := CreateImageFromPaint(paintHandle, 'My Image');
CreateImgFromSymbol | Document Attributes Vectorworks 2018 |
VectorScript Declaration:
FUNCTION CreateImgFromSymbol
( symbolName :STRING; symbolHeight :INTEGER; symbolWidth :INTEGER; symbolMargin :INTEGER; renderMode :INTEGER; view :INTEGER ) :HANDLE ; Python:
return HANDLE
def vs.CreateImgFromSymbol(symbolName, symbolHeight, symbolWidth, symbolMargin, renderMode, view): Parameters:
symbolName The name of the symbol to display. シンボルの表示名 symbolHeight The height of the symbol to display. シンボルの高さ symbolWidth The width of the symbol to display. シンボルの幅 symbolMargin The margin of the symbol to display. シンボルの間隔 renderMode The render mode in which to display the symbol. シンボルのレンダリングモード view The standard view in which to display the symbol. シンボルの基本のビュー Result:
Returns the handle to the newly create image resource if successful; nil otherwise.返り値
シンボルからシメージリソースを作成します。成功した場合、新しく作成されたイメージリソースのハンドルを返します。 失敗した場合は nil を返します。
CreateImgFromSymbolN | Document Attributes Vectorworks 2019 |
VectorScript Declaration:
FUNCTION CreateImgFromSymbolN
( symbolName :STRING; width :INTEGER; height :INTEGER; margin :INTEGER; renderMode :INTEGER; view :INTEGER; component :INTEGER ) :HANDLE ; Python:
return HANDLE
def vs.CreateImgFromSymbolN(symbolName, width, height, margin, renderMode, view, component): Description:
Creates an image from the specified symbol in the specified rendering mode and view, and uses the specified component of the image.
Table - Render Modes
Render Mode Constant Wireframe 0 Unshaded Polygon 2 Shaded Polygon 3 Shaded Polygon No Lines 4 Final Shaded Polygon 5 Hidden Line 6 Dashed Hidden Line 7 OpenGL 11 Fast RenderWorks 12 Fast RenderWorks with Shadows 13 Final Quality RenderWorks 14 Custom RenderWorks 15 Artistic RenderWorks 17 Sketch 18
Table - Views
View Constant Top/Plan 2 Front 3 Back 4 Left 5 Right 6 Top 7 Bottom 8 Right Isometric 9 Left Isometric 10 Right Rear Isometric 11 Left Rear Isometric 12 Bottom Right Isometric 13 Bottom Left Isometric 14 Bottom Right Rear Isometric 15 Bottom Left Rear Isometric 16
Table - Components
Component Constant 3D 0 2D 1 2D Cut 2 Not set 4 説明
指定したシンボルから、指定したレンダリングモードとビューで、指定したイメージのコンポーネントを使用してイメージを作成します。
Table - Render Modes
Render Mode Constant Wireframe 0 Unshaded Polygon 2 Shaded Polygon 3 Shaded Polygon No Lines 4 Final Shaded Polygon 5 Hidden Line 6 Dashed Hidden Line 7 OpenGL 11 Fast RenderWorks 12 Fast RenderWorks with Shadows 13 Final Quality RenderWorks 14 Custom RenderWorks 15 Artistic RenderWorks 17 Sketch 18
Table - Views
View Constant Top/Plan 2 Front 3 Back 4 Left 5 Right 6 Top 7 Bottom 8 Right Isometric 9 Left Isometric 10 Right Rear Isometric 11 Left Rear Isometric 12 Bottom Right Isometric 13 Bottom Left Isometric 14 Bottom Right Rear Isometric 15 Bottom Left Rear Isometric 16
Table - Components
Component Constant 3D 0 2D 1 2D Cut 2 Not set 4 Parameters:
symbolName The name of the symbol to display. シンボルの表示名 width The width of the symbol to display. 表示枠の幅 height The height of the symbol to display. 表示枠の高さ margin The margin of the symbol to display. 表示枠とシンボルの間隔 renderMode The render mode in which to display the symbol. レンダリングモード view The standard view in which to display the symbol. ビュー component Image component to use. コンポーネント Result:
Returns the handle to the newly create image resource if successful; NULL otherwise.返り値
成功した場合、イメージのハンドルを返します。それ以外は、NULLを返します。See Also:
CreateImgFromSymbol
CreateTile | Document Attributes Vectorworks 2011 |
VectorScript Declaration:
FUNCTION CreateTile
( tileName:DYNARRAY[] of CHAR ) :HANDLE ; Python:
return HANDLE
def vs.CreateTile(tileName): Description:
Creates a new tile resource.説明
タイルを新規に作成します。Parameters:
tileName A user-specified name by which the newly created tile will be identified. タイルの名称 Result:
Returns a handle to a new tile resource if successful, otherwise the function returns nil.返り値
タイルが新規作成されたら、ハンドルを返します。作成が成功しなかったら、NILを返します。Example:
tileHandle := CreateTile('My Tile');See Also:
CreateTile ShowEditTileDialog ShowEditTileSettingsDialog ShowNewTileDialog GetTileGeometryGroup BeginGroupN AddTileGeometryObject GetTileGroupParent IsTileGroupContainedObject GetTileBackgroundColor SetTileBackgroundColor GetTileRepetitionPoint SetTileRepetitionPoint GetTileOffsetPoint SetTileOffsetPoint
DefDrpShadowEnabled | Document Attributes Vectorworks 2017 |
VectorScript Declaration:
FUNCTION DefDrpShadowEnabled
:BOOLEAN ; Python:
return BOOLEAN
def vs.DefDrpShadowEnabled():
DocDropShadowByCls | Document Attributes Vectorworks 2017 |
VectorScript Declaration:
FUNCTION DocDropShadowByCls
:BOOLEAN ; Python:
return BOOLEAN
def vs.DocDropShadowByCls():
DS_GetAngle | Document Attributes Vectorworks 2014 |
VectorScript Declaration:
FUNCTION DS_GetAngle
:REAL ; Python:
return REAL
def vs.DS_GetAngle(): Description:
Returns document shadow angle.説明
書類の影の角度を返します。
DS_GetFillStyle | Document Attributes Vectorworks 2014 |
VectorScript Declaration:
PROCEDURE DS_GetFillStyle
( VAR shadowFillStyle :INTEGER; VAR shadowFillName :STRING; VAR solidColorRef :LONGINT ) ; Python:
return (shadowFillStyle, shadowFillName, solidColorRef)
def vs.DS_GetFillStyle(): Description:
Returns document shadow fill style, fill name or color index.説明
書類の、影の面属性、面属性の名前、あるいは色インデックスを返します。
DS_GetOffset | Document Attributes Vectorworks 2014 |
VectorScript Declaration:
FUNCTION DS_GetOffset
:REAL ; Python:
return REAL
def vs.DS_GetOffset(): Description:
Returns document shadow offset.説明
書類の影のオフセットを返します
DS_GetOffsetUnit | Document Attributes Vectorworks 2014 |
VectorScript Declaration:
FUNCTION DS_GetOffsetUnit
:INTEGER ; Python:
return INTEGER
def vs.DS_GetOffsetUnit(): Description:
Returns document shadow offset unit.説明
書類の影のオフセットの単位を返します
DS_GetOpacity | Document Attributes Vectorworks 2014 |
VectorScript Declaration:
FUNCTION DS_GetOpacity
:LONGINT ; Python:
return LONGINT
def vs.DS_GetOpacity(): Description:
Returns document shadow opacity.説明
書類の影の不透明度を返します。
DS_IsOpacityByClass | Document Attributes Vectorworks 2014 |
VectorScript Declaration:
FUNCTION DS_IsOpacityByClass
:BOOLEAN ; Python:
return BOOLEAN
def vs.DS_IsOpacityByClass(): Description:
Returns whether document shadow opacity is by class.説明
書類の影の不透明度がクラスによるかどうかを返します。
DS_IsUnderCanopy | Document Attributes Vectorworks 2017 |
VectorScript Declaration:
FUNCTION DS_IsUnderCanopy
:BOOLEAN ; Python:
return BOOLEAN
def vs.DS_IsUnderCanopy(): Description:
Returns whether document shadow is under Canopy.説明
ファイル設定で、影が樹冠の下に表示されるかどうかを返します。
EnableDefDropShadow | Document Attributes Vectorworks 2017 |
VectorScript Declaration:
PROCEDURE EnableDefDropShadow
( bEnable:BOOLEAN ) ; Python:
return None
def vs.EnableDefDropShadow(bEnable):
FFillBack | Document Attributes MiniCAD |
VectorScript Declaration:
PROCEDURE FFillBack
( VAR red :LONGINT; VAR green :LONGINT; VAR blue :LONGINT ) ; Python:
return (red, green, blue)
def vs.FFillBack(): Description:
Procedure FFillBack returns the current fill background color. RGB values are in the range of 0~65535.
説明
現在設定されている面の地色の成分を返します。値の範囲は0から65535までです。Parameters:
red Returns RGB color component value. 赤の成分 green Returns RGB color component value. 緑の成分 blue Returns RGB color component value. 青の成分 Example:
FFillBack(redValue,greenValue,blueValue);See Also:
RGBToColorIndex ColorIndexToRGB
FFillColorByClass | Document Attributes VectorWorks8.0 |
VectorScript Declaration:
FUNCTION FFillColorByClass
:BOOLEAN ; Python:
return BOOLEAN
def vs.FFillColorByClass(): Description:
Function FFillColorByClass returns whether the global attributes are set to use the fill colors of the default class.説明
現在設定されている面の色に、クラス属性を使っている場合はTRUEを返します。Example:
useClassFillCol:=FFillColorByClass;
FFillFore | Document Attributes MiniCAD |
VectorScript Declaration:
PROCEDURE FFillFore
( VAR red :LONGINT; VAR green :LONGINT; VAR blue :LONGINT ) ; Python:
return (red, green, blue)
def vs.FFillFore(): Description:
Procedure FFillFore returns the current fill foreground color. RGB values are in the range of 0~65535.
説明
現在設定されている面の色の成分を返します。値の範囲は0から65535までです。Parameters:
red Returns RGB color component value. 赤の成分 green Returns RGB color component value. 緑の成分 blue Returns RGB color component value. 青の成分 Example:
FFillFore(redValue,greenValue,blueValue);See Also:
RGBToColorIndex ColorIndexToRGB
FFillPat | Document Attributes MiniCAD |
VectorScript Declaration:
FUNCTION FFillPat
:LONGINT ; Python:
return LONGINT
def vs.FFillPat(): Description:
Function FFillPat returns the current fill pattern setting.
Fill patterns and their associated constants can be found in the VectorScript Appendix.説明
現在設定されている模様番号を返します。Example:
currFillStyle:=FFillPat;
FFPatByClass | Document Attributes VectorWorks8.0 |
VectorScript Declaration:
FUNCTION FFPatByClass
:BOOLEAN ; Python:
return BOOLEAN
def vs.FFPatByClass(): Description:
Function FFPatByClass returns whether the global attributes are set to use the fill pattern of the default class.説明
現在設定されている面の模様に、クラス属性を使っている場合はTRUEを返します。Example:
useClassFPat:=FFPatByClass;
FillBack | Document Attributes MiniCAD |
VectorScript Declaration:
PROCEDURE FillBack
( colorR :LONGINT; colorG :LONGINT; colorB :LONGINT ) ; Python:
return None
def vs.FillBack(color): Description:
Procedure FillBack sets the active fill background color setting for the document. RGB values are in the range of 0~65535.
説明
現在設定されている面の地色を変更します。値の範囲は0から65535までです。Parameters:
color RGB color value to set as active fill background color. 赤、緑、青の成分 Example:
FillBack(65535,0,39321);See Also:
RGBToColorIndex ColorIndexToRGB
FillFore | Document Attributes MiniCAD |
VectorScript Declaration:
PROCEDURE FillFore
( colorR :LONGINT; colorG :LONGINT; colorB :LONGINT ) ; Python:
return None
def vs.FillFore(color): Description:
Procedure FillFore sets the active fill foreground color setting for the document. RGB values are in the range of 0~65535.
説明
現在設定されている面の色を変更します。値の範囲は0から65535までです。Parameters:
color RGB color value to set as active fill foreground color. 赤、緑、青の成分 Example:
FillFore(65535,0,39321);See Also:
RGBToColorIndex ColorIndexToRGB
FillPat | Document Attributes MiniCAD |
VectorScript Declaration:
PROCEDURE FillPat
( patNumber:LONGINT ) ; Python:
return None
def vs.FillPat(patNumber): Description:
Procedure FillPat sets the active fill pattern for the document. Any objects created after a calling this procedure will use the specified fill pattern.
Fill patterns and their associated constants can be found in the VectorScript Appendix.説明
アクティブな面の模様を設定します。この手続きの後に作成された図形は指定した面の模様が使われます。Parameters:
patNumber Index of fill pattern to be set as document default. 模様番号 Example:
Rect(0,0,2,2); FillPat(21); Rect(2,2,4,4);
FLSByClass | Document Attributes VectorWorks8.0 |
VectorScript Declaration:
FUNCTION FLSByClass
:BOOLEAN ; Python:
return BOOLEAN
def vs.FLSByClass(): Description:
Function FLSByClass returns whether the global attributes are set to use the line style of the default class.説明
現在設定されている線の種類に、クラス属性を使っている場合はTRUEを返します。Example:
useClassLStyle:=FLSByClass;
FLWByClass | Document Attributes VectorWorks8.0 |
VectorScript Declaration:
FUNCTION FLWByClass
:BOOLEAN ; Python:
return BOOLEAN
def vs.FLWByClass(): Description:
Function FLWByClass returns whether the global attributes are set to use the line weight of the default class.説明
現在設定されている線の太さに、クラス属性を使っている場合はTRUEを返します。Example:
useClassLWidth:=FLWByClass;
FMarker | Document Attributes MiniCAD6.0 - obsolete as of VectorWorks 2008 |
VectorScript Declaration:
PROCEDURE FMarker
( VAR style :INTEGER; VAR size :REAL; VAR ang :INTEGER ) ; Python:
return (style, size, ang)
def vs.FMarker(): Special Notes:
FMarker is obsolete as of VectorWorks 2008
Description:
Procedure FMarker returns the active marker style parameters.
A complete listing of marker styles can be found in the Appendix説明
現在設定されているマーカスタイル、長さ(インチ)、角度(度数)を返します。
VW2008で使用できなくなった関数/手続きです。
GetDefaultBeginningMarker、GetDefaultEndMarkerをご利用ください。Parameters:
style Returns marker style. スタイル size Returns marker size in inches measured in page space. 長さ(インチ) ang Returns marker angle (in degrees). 角度(度数) Example:
PROCEDURE Example; VAR style :INTEGER; size :REAL; ang :INTEGER; BEGIN FMarker(style, size, ang); Message(style, ' ', size, ' ', ang); END; RUN(Example);
FMarkerByClass | Document Attributes VectorWorks8.0 |
VectorScript Declaration:
FUNCTION FMarkerByClass
:BOOLEAN ; Python:
return BOOLEAN
def vs.FMarkerByClass(): Description:
Function FMarkerByClass returns whether the global attributes are set to use the arrow style of the default class.説明
現在設定されているマーカの種類に、クラス属性を使っている場合はTRUEを返します。Example:
useClassMarker:=FMarkerByClass;
FPenBack | Document Attributes MiniCAD |
VectorScript Declaration:
PROCEDURE FPenBack
( VAR red :LONGINT; VAR green :LONGINT; VAR blue :LONGINT ) ; Python:
return (red, green, blue)
def vs.FPenBack(): Description:
Procedure FPenBack returns the current pen background color. RGB values are in the range of 0~65535.説明
現在設定されている線の地色の成分を返します。値の範囲は0から65535までです。Parameters:
red Returns RGB color component value. 赤の成分 green Returns RGB color component value. 緑の成分 blue Returns RGB color component value. 青の成分 See Also:
RGBToColorIndex ColorIndexToRGB
FPenColorByClass | Document Attributes VectorWorks8.0 |
VectorScript Declaration:
FUNCTION FPenColorByClass
:BOOLEAN ; Python:
return BOOLEAN
def vs.FPenColorByClass(): Description:
Function FPenColorByClass returns whether the global attributes are set to use the pen colors of the default class.説明
現在設定されている線の色に、クラス属性を使っている場合はTRUEを返します。Example:
useClassPenColor:=FPenColorByClass;
FPenFore | Document Attributes MiniCAD |
VectorScript Declaration:
PROCEDURE FPenFore
( VAR red :LONGINT; VAR green :LONGINT; VAR blue :LONGINT ) ; Python:
return (red, green, blue)
def vs.FPenFore(): Description:
Procedure FPenFore returns the current pen foreground color of the document. RGB values are in the range of 0~65535.説明
現在設定されている線の色成分を返します。値の範囲は0から65535までです。Parameters:
red Returns RGB color component value. 赤の成分 green Returns RGB color component value. 緑の成分 blue Returns RGB color component value. 青の成分 See Also:
RGBToColorIndex ColorIndexToRGB
FPenPat | Document Attributes MiniCAD - obsolete as of Vectorworks 2013 |
VectorScript Declaration:
FUNCTION FPenPat
:INTEGER ; Python:
return INTEGER
def vs.FPenPat(): Special Notes:
FPenPat is obsolete as of Vectorworks 2013
Description:
Deprecated - will generate error. Use FPenPatN instead.
説明
現在設定されている線の模様を返します。Example:
CurrPenStyle:=FPenPat;See Also:
FPenPatN
FPenPatN | Document Attributes Vectorworks 2013 |
VectorScript Declaration:
FUNCTION FPenPatN
:LONGINT ; Python:
return LONGINT
def vs.FPenPatN(): Description:
Function FPenPatN returns the active pen pattern setting.説明
現在設定されている線の模様を返します。See Also:
PenPatN
FPenSize | Document Attributes MiniCAD |
VectorScript Declaration:
FUNCTION FPenSize
:INTEGER ; Python:
return INTEGER
def vs.FPenSize(): Description:
Function FPenSize returns the active pen size setting (in mils).
説明
現在設定されている線の太さを返します。Example:
CurrPenSize:=FPenSize;
GetDashDataValPairAt | Document Attributes Vectorworks 2015 - obsolete as of Vectorworks 2019 |
VectorScript Declaration:
FUNCTION GetDashDataValPairAt
( dashStyleIndex :INTEGER; dataIndex :INTEGER; VAR dash :REAL; VAR gap :REAL ) :BOOLEAN ; Python:
return (BOOLEAN, dash, gap)
def vs.GetDashDataValPairAt(dashStyleIndex, dataIndex): Special Notes:
GetDashDataValPairAt is obsolete as of Vectorworks 2019
Description:
Deprecated - will generate error. Use GetDashDataValPrAtN instead.説明
指定した破線の種類の破線データを返します。 破線データは破線/間隔のペアです。 破線の種類や破線データがない場合はFalseを返します。 破線の種類では破線/間隔のペアを5つまで指定できます。Parameters:
dashStyleIndex The dash style index. 破線の種類のインデックス dataIndex Index fo the data value pair. 破線データのインデックス dash The dash segement value. 破線の長さ gap The gap segment value. 間隔の長さ Example:
The dash-related functions here have been deprecated and will return errors. PROCEDURE Example; VAR n, numPairs, dashIndex : INTEGER; scaleWThick :BOOLEAN; arrayDashDat : ARRAY[1..5] OF POINT; x,y : REAL; BEGIN dashIndex := GetDashStyleIndex(TRUE, 2, 0.12, 0.18, 0.03, 0.07); numPairs := GetNumDashDataPairs(dashIndex,scaleWThick); FOR n := 1 TO numPairs DO BEGIN IF (GetDashDataValPairAt(dashIndex, n , x, y)) THEN BEGIN arrayDashDat[n].x := x ; arrayDashDat[n].y := y ; END; END; END; RUN(Example);See Also:
GetDashDataValPrAtN
GetDashDataValPrAtN | Document Attributes Vectorworks 2019 |
VectorScript Declaration:
FUNCTION GetDashDataValPrAtN
( dashStyleIndex :LONGINT; dataIndex :INTEGER; VAR dash :REAL; VAR gap :REAL ) :BOOLEAN ; Python:
return (BOOLEAN, dash, gap)
def vs.GetDashDataValPrAtN(dashStyleIndex, dataIndex): Description:
Function GetDashDataValPrAtN gets the dash data for the specified dash style. The dash data is a dash/gap value pair. GetDashDataValPrAtN returns false if the dash style or dash data doesn't exist. Dash styles support up to 5 dash/gap value pairs.説明
指定した破線の種類の破線データを返します。 破線データは破線/間隔のペアです。 破線の種類や破線データがない場合はFalseを返します。 破線の種類では破線/間隔のペアを5つまで指定できます。Parameters:
dashStyleIndex The negative value of the dash pattern's internal index. 破線の種類のインデックス(負の値) dataIndex Index of the data value pair. 破線/間隔データの番号 dash The dash segement value. 破線データの値 gap The gap segment value. 間隔データの値 Example:
PROCEDURE Example; VAR n, numPairs : INTEGER; dashIndex : LONGINT; scaleWThick :BOOLEAN; arrayDashDat : ARRAY[1..5] OF POINT; x,y : REAL; BEGIN dashIndex := GetDashStyleIndexN(TRUE, 2, 0.12, 0.18, 0.03, 0.07); numPairs := GetNumDashDataPairsN(dashIndex,scaleWThick); FOR n := 1 TO numPairs DO BEGIN IF (GetDashDataValPrAtN(dashIndex, n , x, y)) THEN BEGIN arrayDashDat[n].x := x ; arrayDashDat[n].y := y ; END; END; END; RUN(Example);See Also:
GetNumDashDataPairsN GetDashStyleIndexN
GetDashStyle | Document Attributes MiniCAD5.0 - obsolete as of Vectorworks 2019 |
VectorScript Declaration:
FUNCTION GetDashStyle
( swt :BOOLEAN; numPairs :INTEGER; pair1DX :REAL; pair1DY :REAL; pair2DX :REAL; pair2DY :REAL; pair3DX :REAL; pair3DY :REAL; pair4DX :REAL; pair4DY :REAL; pair5DX :REAL; pair5DY :REAL ) :INTEGER ; Python:
return INTEGER
def vs.GetDashStyle(swt, numPairs, pair1, pair2, pair3, pair4, pair5): Special Notes:
GetDashStyle is obsolete as of Vectorworks 2019
Description:
Deprecated - will generate error. Use GetDashStyleN instead.説明
現在設定されている破線の種類を返します。Example:
currLS:=GetDashStyle;See Also:
GetDashStyleN
GetDashStyleIndex | Document Attributes Vectorworks 2010 - obsolete as of Vectorworks 2019 |
VectorScript Declaration:
FUNCTION GetDashStyleIndex
( swt :BOOLEAN; numPairs :INTEGER; pair1DX :REAL; pair1DY :REAL; pair2DX :REAL; pair2DY :REAL; pair3DX :REAL; pair3DY :REAL; pair4DX :REAL; pair4DY :REAL; pair5DX :REAL; pair5DY :REAL ) :INTEGER ; Python:
return INTEGER
def vs.GetDashStyleIndex(swt, numPairs, pair1, pair2, pair3, pair4, pair5): Special Notes:
GetDashStyleIndex is obsolete as of Vectorworks 2019
Description:
Deprecated - will generate error. Use GetDashStyleIndexN instead.説明
現在設定されている破線の名前と種類を返します。Example:
GetDashStyleIndex(TRUE, 2, 0.12, 0.18, 0.03, 0.07); GetDashStyleIndex(TRUE, 3, 0.12, 0.18, 0.03, 0.07, 0.2, 0.05);See Also:
GetDashStyleIndexN
GetDashStyleIndexN | Document Attributes Vectorworks 2019 |
VectorScript Declaration:
FUNCTION GetDashStyleIndexN
( swt :BOOLEAN; numPairs :INTEGER; pair1DX :REAL; pair1DY :REAL; pair2DX :REAL; pair2DY :REAL; pair3DX :REAL; pair3DY :REAL; pair4DX :REAL; pair4DY :REAL; pair5DX :REAL; pair5DY :REAL ) :LONGINT ; Python:
return LONGINT
def vs.GetDashStyleIndexN(swt, numPairs, pair1, pair2, pair3, pair4, pair5): Description:
Function GetDashStyleIndexN searches for the pattern specified by the parameters. If it exists, then the negative value of the dash pattern's internal index is returned. If it does not exist, then it is added to the document and the negative value of the new dash pattern's internal index is returned.説明
パラメータで指定した破線パターンを探します。存在する場合は破線の負の値の内部インデックス番号を返します。存在しない場合は、ファイルにその破線を追加し、新しい破線の負の値の内部インデックス番号を返します。Example:
GetDashStyleIndexN(TRUE, 2, 0.12, 0.18, 0.03, 0.07); GetDashStyleIndexN(TRUE, 3, 0.12, 0.18, 0.03, 0.07, 0.2, 0.05);See Also:
GetDashDataValPrAtN GetNumDashDataPairsN
GetDashStyleN | Document Attributes Vectorworks 2019 |
VectorScript Declaration:
FUNCTION GetDashStyleN
( swt :BOOLEAN; numPairs :INTEGER; pair1DX :REAL; pair1DY :REAL; pair2DX :REAL; pair2DY :REAL; pair3DX :REAL; pair3DY :REAL; pair4DX :REAL; pair4DY :REAL; pair5DX :REAL; pair5DY :REAL ) :LONGINT ; Python:
return LONGINT
def vs.GetDashStyleN(swt, numPairs, pair1, pair2, pair3, pair4, pair5): Description:
Function GetDashStyleN searches for the pattern specified by the parameters. If it exists, then the negative value of the dash pattern's internal index is returned. If it does not exist, then it is added to the document and the negative value of the dash pattern's internal index is returned.説明
パラメータで指定した破線パターンを探します。存在する場合は破線の負の値の内部インデックス番号を返します。存在しない場合は、ファイルにその破線を追加し、破線の負の値の内部インデックス番号を返します。Example:
currLS:=GetDashStyleN;
GetDefaultBeginningMarker | Document Attributes VectorWorks 2008 |
VectorScript Declaration:
FUNCTION GetDefaultBeginningMarker
( VAR style :LONGINT; VAR angle :INTEGER; VAR size :REAL; VAR width :REAL; VAR thicknessBasis :INTEGER; VAR thickness :REAL; VAR visibility :BOOLEAN ) :BOOLEAN ; Python:
return (BOOLEAN, style, angle, size, width, thicknessBasis, thickness, visibility)
def vs.GetDefaultBeginningMarker(): Description:
Gets all properties for the document default beginning marker. Return TRUE if operation was successful.説明
ファイルのデフォルト始点マーカのすべての設定値を返します。正常終了するとTRUEが返されます。Parameters:
style The marker style. (see comments for details) タイプ angle The marker angle in degrees. (0 to 90) 角度(度数、0から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; style: INTEGER; angle: INTEGER; size: REAL; width: REAL; thickBasis: INTEGER; thickness: REAL; visibility: BOOLEAN; BEGIN ok := GetDefaultBeginningMarker (style, angle, size, width, thickBasis, thickness, visibility); Message (style, ' / ', angle, ' / ', size, ' / ', width, ' / ', thickBasis, ' / ', thickness, ' / ', visibility); END; RUN(Example);See Also:
GetDefaultEndMarker
GetDefaultEndMarker | Document Attributes VectorWorks 2008 |
VectorScript Declaration:
FUNCTION GetDefaultEndMarker
( VAR style :LONGINT; VAR angle :INTEGER; VAR size :REAL; VAR width :REAL; VAR thicknessBasis :INTEGER; VAR thickness :REAL; VAR visibility :BOOLEAN ) :BOOLEAN ; Python:
return (BOOLEAN, style, angle, size, width, thicknessBasis, thickness, visibility)
def vs.GetDefaultEndMarker(): Description:
Gets all properties for the document default end marker. Return TRUE if operation was successful.説明
ファイルのデフォルト終点マーカのすべての設定値を返します。正常終了するとTRUEが返されます。Parameters:
style The marker style. (see comments for details) タイプ angle The marker angle in degrees. (0 to 90) 角度(度数、0から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; style: INTEGER; angle: INTEGER; size: REAL; width: REAL; thickBasis: INTEGER; thickness: REAL; visibility: BOOLEAN; BEGIN ok := GetDefaultEndMarker (style, angle, size, width, thickBasis, thickness, visibility); Message (style, ' / ', angle, ' / ', size, ' / ', width, ' / ', thickBasis, ' / ', thickness, ' / ', visibility); END; RUN(Example);See Also:
GetDefaultBeginningMarker
GetDefaultOpacity | Document Attributes VectorWorks 2008 |
VectorScript Declaration:
PROCEDURE GetDefaultOpacity
( VAR opacity:INTEGER ) ; Python:
return opacity
def vs.GetDefaultOpacity(): Description:
Returns the default opacity.説明
デフォルトの不透明度に返します。
GetDefaultOpacityN | Document Attributes Vectorworks 2017 |
VectorScript Declaration:
PROCEDURE GetDefaultOpacityN
( VAR outPenOpacity :INTEGER; VAR outFillOpacity :INTEGER ) ; Python:
return (outPenOpacity, outFillOpacity)
def vs.GetDefaultOpacityN():
GetDefOpacityByClsN | Document Attributes Vectorworks 2017 |
VectorScript Declaration:
PROCEDURE GetDefOpacityByClsN
( VAR outDefFillOpacityByClass :BOOLEAN; VAR outDefPenOpacityByClass :BOOLEAN ) ; Python:
return (outDefFillOpacityByClass, outDefPenOpacityByClass)
def vs.GetDefOpacityByClsN():
GetDocDrpShadowData | Document Attributes Vectorworks 2017 |
VectorScript Declaration:
PROCEDURE GetDocDrpShadowData
( VAR bUseDropShadow :BOOLEAN; VAR nUnits :INTEGER; VAR dOffset :REAL; VAR dBlurRadius :REAL; VAR dAngle :REAL; VAR nOpacity :INTEGER; VAR colorRV :INTEGER; VAR colorGV :INTEGER; VAR colorBV :INTEGER ) ; Python:
return (bUseDropShadow, nUnits, dOffset, dBlurRadius, dAngle, nOpacity, colorRV, colorGV, colorBV)
def vs.GetDocDrpShadowData():
GetDocumentDefaultSketchStyle | Document Attributes VectorWorks11.5 |
VectorScript Declaration:
FUNCTION GetDocumentDefaultSketchStyle
:STRING ; Python:
return STRING
def vs.GetDocumentDefaultSketchStyle(): Description:
Returns the document default sketch style. Returns the string 'No Sketch' if the current sketch style is 'No Sketch'.説明
ドキュメントデフォルトのスケッチスタイルを返します。
ドキュメントデフォルトのスケッチスタイルが「スケッチなし」であれば、「スケッチなし」という文字列を返します。
GetGradientData | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE GetGradientData
( gradient :HANDLE; segmentIndex :INTEGER; VAR spotPosition :REAL; VAR midpointPosition :REAL; VAR red :LONGINT; VAR green :LONGINT; VAR blue :LONGINT ) ; Python:
return (spotPosition, midpointPosition, red, green, blue)
def vs.GetGradientData(gradient, segmentIndex): Description:
Gets the spot position, midpoint position and color of the specified gradient segment.説明
変化位置の変化点、変化の中心点の位置と色を返します。Parameters:
gradient Gradient that contains the segment. グラデーションのハンドル segmentIndex Segment from which to get the data. (segment indexes begin with 1) 変化位置番号(最も左を1とする) spotPosition Position of the segment's color spot relative to left-most point of the gradient. (position >= 0.0 and position <= 1.0) 変化点の位置(0.0以上1.0以下) midpointPosition Position of the segment's midpoint relative to color spot immediately to left. (position >= 0.0 and position <= 1.0) 変化の中心点の位置(0.0以上1.0以下) red Red component of the color spot's color. (red >= 0 and red <= 255) 変化点の色の赤成分(0以上255以下) green Green component of the color spot's color. (green >= 0 and green <= 255) 変化点の色の緑成分(0以上255以下) blue Blue component of the color spot's color. (blue >= 0 and blue <= 255) 変化点の色の青成分(0以上255以下) Example:
PROCEDURE Example; VAR gradient :HANDLE; segmentIndex :INTEGER; spotPosition, midpointPosition :REAL; red, green, blue :LONGINT; BEGIN gradient := GetObject('Cyan-Magenta-Yellow'); segmentIndex := 3; GetGradientData(gradient, segmentIndex, spotPosition, midpointPosition, red, green, blue); Message(red, ' ', green, ' ', blue); END; RUN(Example);
GetGradientDataN | Document Attributes Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE GetGradientDataN
( gradient :HANDLE; segmentIndex :INTEGER; VAR spotPosition :REAL; VAR midpointPosition :REAL; VAR red :LONGINT; VAR green :LONGINT; VAR blue :LONGINT; VAR opacity :INTEGER ) ; Python:
return (Boolean, spotPosition, midpointPosition, red, green, blue, opacity)
def vs.GetGradientDataN(gradient, segmentIndex): Parameters:
gradient Gradient that contains the segment. グラデーションのハンドル segmentIndex Segment from which to get the data. 変化位置番号(最も左を1とする) spotPosition Position of the segment's color spot relative to left-most point of the gradient. 変化点の位置 midpointPosition Position of the segment's midpoint relative to color spot immediately to left. 変化の中心点の位置 red Red component of the color spot's color. 変化点の色の赤成分 green Green component of the color spot's color. 変化点の色の緑成分 blue Blue component of the color spot's color. 変化点の色の青成分 opacity Opacity of the color spot. 変化点の色の不透明度 Example:
PROCEDURE Example; VAR gradient :HANDLE; segmentIndex :INTEGER; spotPosition, midpointPosition :REAL; red, green, blue :LONGINT; opacity :INTEGER BEGIN gradient := GetObject('Cyan-Magenta-Yellow'); segmentIndex := 3; GetGradientData(gradient, segmentIndex, spotPosition, midpointPosition, red, green, blue.opacity); Message(red, ' ', green, ' ', blue, ' ', opacity); END; RUN(Example);See Also:
SetGradientDataN InsertGradientData
GetGradientMidpointPosition | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE GetGradientMidpointPosition
( gradient :HANDLE; segmentIndex :INTEGER; VAR position :REAL ) ; Python:
return position
def vs.GetGradientMidpointPosition(gradient, segmentIndex): Description:
Gets the midpoint position of the specified gradient segment.説明
変化位置の変化の中心点の位置を返します。Parameters:
gradient Gradient that contains the segment. グラデーションのハンドル segmentIndex Segment from which to get the data. (segment indexes begin with 1) 変化位置番号(最も左を1とする) position Position of the segment's midpoint relatvie to color spot immediately to left. (position >= 0.0 and position <= 1.0) 変化の中心点の位置(0.0以上1.0以下) Example:
GetGradientMidpointPosition(gradientHandle, 4, midpointPosition);
GetGradientOpacity | Document Attributes Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE GetGradientOpacity
( gradient :HANDLE; segmentIndex :INTEGER; VAR opacity :INTEGER ) ; Python:
return opacity
def vs.GetGradientOpacity(gradient, segmentIndex): Parameters:
gradient Gradient that contains the segment. グラデーションのハンドル segmentIndex Segment from which to get the data. 変化位置番号(最も左を1とする) opacity Opacity at the spot position. 変化点の色の不透明度 Example:
GetGradientOpacity(gradientHandle, 4, opacity);See Also:
SetGradientOpacity
GetGradientSpotColor | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE GetGradientSpotColor
( gradient :HANDLE; segmentIndex :INTEGER; VAR red :LONGINT; VAR green :LONGINT; VAR blue :LONGINT ) ; Python:
return (red, green, blue)
def vs.GetGradientSpotColor(gradient, segmentIndex): Description:
Gets the spot color of the specified gradient segment.説明
変化位置の変化点の色を返します。Parameters:
gradient Gradient that contains the segment. グラデーションのハンドル segmentIndex Segment from which to get the data. (segment indexes begin with 1) 変化位置番号(最も左を1とする) red Red component of the color spot's color. (red >= 0 and red <= 255) 変化点の色の赤成分(0以上255以下) green Green component of the color spot's color. (green >= 0 and green <= 255) 変化点の色の緑成分(0以上255以下) blue Blue component of the color spot's color. (blue >= 0 and blue <= 255) 変化点の色の青成分(0以上255以下) Example:
GetGradientSpotColor(gradientHandle, 4, red, green, blue);
GetGradientSpotPosition | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE GetGradientSpotPosition
( gradient :HANDLE; segmentIndex :INTEGER; VAR position :REAL ) ; Python:
return position
def vs.GetGradientSpotPosition(gradient, segmentIndex): Description:
Gets the spot position of the specified gradient segment.説明
変化位置の変化点の位置を返します。Parameters:
gradient Gradient that contains the segment. グラデーションのハンドル segmentIndex Segment from which to get the data. (segment indexes begin with 1) 変化位置番号(最も左を1とする) position Position of the segment's color spot relative to left-most point of the gradient. (position >= 0.0 and position <= 1.0) 変化点の位置(0.0以上1.0以下) Example:
GetGradientSpotPosition(gradientHandle, 4, spotPosition);
GetNumDashDataPairs | Document Attributes Vectorworks 2015 - obsolete as of Vectorworks 2019 |
VectorScript Declaration:
FUNCTION GetNumDashDataPairs
( dashIndex :INTEGER; VAR swt :BOOLEAN ) :INTEGER ; Python:
return (INTEGER, swt)
def vs.GetNumDashDataPairs(dashIndex): Special Notes:
GetNumDashDataPairs is obsolete as of Vectorworks 2019
Description:
Deprecated - will generate error. Use GetNumDashDataPairsN instead.説明
指定した破線の種類で定義されている、破線/間隔のペアの数を返します。 線の太さに連動しているかどうかも返します。 破線/間隔のペアは最大で5組です。Parameters:
dashIndex The dash style index. 破線の種類のインデックス swt The "scale with thickness" setting. 線の太さに連動している(TRUE)/していない(FALSE) Example:
The dash-related functions here have been deprecated and will return errors. PROCEDURE Example; VAR n, numPairs, dashIndex : INTEGER; scaleWThick :BOOLEAN; arrayDashDat : ARRAY[1..5] OF POINT; x,y : REAL; BEGIN dashIndex := GetDashStyleIndex(TRUE, 2, 0.12, 0.18, 0.03, 0.07); numPairs := GetNumDashDataPairs(dashIndex,scaleWThick); FOR n := 1 TO numPairs DO BEGIN IF (GetDashDataValPairAt(dashIndex, n , x, y)) THEN BEGIN arrayDashDat[n].x := x ; arrayDashDat[n].y := y ; END; END; END; RUN(Example);See Also:
GetNumDashDataPairsN
GetNumDashDataPairsN | Document Attributes Vectorworks 2019 |
VectorScript Declaration:
FUNCTION GetNumDashDataPairsN
( dashIndex :LONGINT; VAR swt :BOOLEAN ) :INTEGER ; Python:
return (INTEGER, swt)
def vs.GetNumDashDataPairsN(dashIndex): Description:
Function GetNumDashDataPairsN returns the number of dash/gap value pairs defined for the specified dash style. The "scale with thickness" setting is also returned. Dash styles support up to 5 dash/gap value pairs.説明
指定した破線の種類で定義されている、破線/間隔のペアの数を返します。 線の太さに連動しているかどうかも返します。 破線/間隔のペアは最大で5組です。Parameters:
dashIndex The negative value of the dash pattern's internal index. 破線の種類のインデックス(負の値) swt The "scale with thickness" setting. 線の太さに連動するかどうか Example:
PROCEDURE Example; VAR n, numPairs : INTEGER; dashIndex : LONGINT; scaleWThick :BOOLEAN; arrayDashDat : ARRAY[1..5] OF POINT; x,y : REAL; BEGIN dashIndex := GetDashStyleIndexN(TRUE, 2, 0.12, 0.18, 0.03, 0.07); numPairs := GetNumDashDataPairsN(dashIndex,scaleWThick); FOR n := 1 TO numPairs DO BEGIN IF (GetDashDataValPrAtN(dashIndex, n , x, y)) THEN BEGIN arrayDashDat[n].x := x ; arrayDashDat[n].y := y ; END; END; END; RUN(Example);See Also:
GetDashDataValPrAtN GetDashStyleIndexN
GetNumGradientSegments | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
FUNCTION GetNumGradientSegments
( gradient:HANDLE ) :INTEGER ; Python:
return INTEGER
def vs.GetNumGradientSegments(gradient): Description:
Gets the number of segments in the gradient.説明
グラデーションの変化位置の数を返します。Parameters:
gradient The gradient from which to get the number of segments. グラデーションのハンドル Result:
Returns the number of segments in the gradient if successful; 0 otherwise.返り値
グラデーションの変化位置の数を返します。変化位置の数を取得できなかった場合は0を返します。Example:
numSegments := GetNumGradientSegments(gradientHandle);
GetTileBackgroundColor | Document Attributes Vectorworks 2011 |
VectorScript Declaration:
PROCEDURE GetTileBackgroundColor
( tileHandle :HANDLE; VAR red :LONGINT; VAR green :LONGINT; VAR blue :LONGINT ) ; Python:
return (red, green, blue)
def vs.GetTileBackgroundColor(tileHandle): Description:
Gets the specified tile resource's background color.説明
指定したタイルリソースの背景色を取得します。Parameters:
tileHandle The tile resource from which to get the background color. タイルリソースのハンドル red Returns RGB color component value. 赤色の成分 green Returns RGB color component value. 緑色の成分 blue Returns RGB color component value. 青色の成分 Example:
GetTileBackgroundColor(tileHandle, backgroundColor);See Also:
CreateTile ShowEditTileDialog ShowEditTileSettingsDialog ShowNewTileDialog GetTileGeometryGroup BeginGroupN AddTileGeometryObject GetTileGroupParent IsTileGroupContainedObject GetTileBackgroundColor SetTileBackgroundColor GetTileRepetitionPoint SetTileRepetitionPoint GetTileOffsetPoint SetTileOffsetPoint
GetTileGeometryGroup | Document Attributes Vectorworks 2011 |
VectorScript Declaration:
FUNCTION GetTileGeometryGroup
( tileHandle:HANDLE ) :HANDLE ; Python:
return HANDLE
def vs.GetTileGeometryGroup(tileHandle): Description:
Gets the tile resource's geometry group.説明
タイルリソースの形状グループを取得します。Parameters:
tileHandle The handle to the tile from which to get the group. タイルリソースのハンドル Result:
A handle to the tile geometry group, if successful; nil otherwise.返り値
タイルリソースのグループハンドルExample:
tileGroupHandle := GetTileGeometryGroup(tileHandle);See Also:
CreateTile ShowEditTileDialog ShowEditTileSettingsDialog ShowNewTileDialog GetTileGeometryGroup BeginGroupN AddTileGeometryObject GetTileGroupParent IsTileGroupContainedObject GetTileBackgroundColor SetTileBackgroundColor GetTileRepetitionPoint SetTileRepetitionPoint GetTileOffsetPoint SetTileOffsetPoint
GetTileGroupParent | Document Attributes Vectorworks 2011 |
VectorScript Declaration:
FUNCTION GetTileGroupParent
( groupHandle:HANDLE ) :HANDLE ; Python:
return HANDLE
def vs.GetTileGroupParent(groupHandle): Description:
Gets the tile resource parent of the specified tile group.説明
指定したタイルグループを内包するコンテナのハンドルを取得します。Parameters:
groupHandle The group handle of which to get the tile resource parent. タイルリソースのグループハンドル Result:
The tile parent handle; nil otherwise.返り値
内包するハンドル。取得できない場合nilが返ります。Example:
tileHandle := GetTileGroupParent(groupHandle);See Also:
CreateTile ShowEditTileDialog ShowEditTileSettingsDialog ShowNewTileDialog GetTileGeometryGroup BeginGroupN AddTileGeometryObject GetTileGroupParent IsTileGroupContainedObject GetTileBackgroundColor SetTileBackgroundColor GetTileRepetitionPoint SetTileRepetitionPoint GetTileOffsetPoint SetTileOffsetPoint
GetTileOffsetPoint | Document Attributes Vectorworks 2011 |
VectorScript Declaration:
PROCEDURE GetTileOffsetPoint
( tileHandle :HANDLE; offsetPoint :POINT ) ; Python:
return offsetPoint
def vs.GetTileOffsetPoint(tileHandle): Description:
Gets the specified tile resource's offset point.説明
指定したタイルリソースのオフセットポイントを取得します。Parameters:
tileHandle The tile resource from which to get the offset point. タイルリソースのハンドル offsetPoint The retrieved offset point. オフセット座標 Example:
GetTileOffsetPoint(tileHandle, offsetPoint);See Also:
CreateTile ShowEditTileDialog ShowEditTileSettingsDialog ShowNewTileDialog GetTileGeometryGroup BeginGroupN AddTileGeometryObject GetTileGroupParent IsTileGroupContainedObject GetTileBackgroundColor SetTileBackgroundColor GetTileRepetitionPoint SetTileRepetitionPoint GetTileOffsetPoint SetTileOffsetPoint
GetTileRepetitionPoint | Document Attributes Vectorworks 2011 |
VectorScript Declaration:
PROCEDURE GetTileRepetitionPoint
( tileHandle :HANDLE; repetitionPoint :POINT ) ; Python:
return repetitionPoint
def vs.GetTileRepetitionPoint(tileHandle): Description:
Gets the specified tile resource's repetition point.説明
指定したタイルリソースの繰り返しポイントを取得します。Parameters:
tileHandle The tile resource from which to get the repetition point. タイルリソースのハンドル repetitionPoint The retrieved repetition point. 繰り返し座標 Example:
GetTileRepetitionPoint(tileHandle, repetitionPoint);See Also:
CreateTile ShowEditTileDialog ShowEditTileSettingsDialog ShowNewTileDialog GetTileGeometryGroup BeginGroupN AddTileGeometryObject GetTileGroupParent IsTileGroupContainedObject GetTileBackgroundColor SetTileBackgroundColor GetTileRepetitionPoint SetTileRepetitionPoint GetTileOffsetPoint SetTileOffsetPoint
InsertGradientData | Document Attributes Vectorworks 2015 |
VectorScript Declaration:
FUNCTION InsertGradientData
( gradient :HANDLE; spotPosition :REAL; midpointPosition :REAL; red :LONGINT; green :LONGINT; blue :LONGINT; opacity :INTEGER ) :INTEGER ; Python:
return INTEGER
def vs.InsertGradientData(gradient, spotPosition, midpointPosition, red, green, blue, opacity): Description:
A segment consists of a single color spot and the single midpoint immediately to the right of the color spot.説明
グラデーションに新しい変化位置を挿入し、そのデータを指定した値で初期化します。Parameters:
gradient Gradient into which a segment is to be inserted. グラデーションのハンドル spotPosition Position of the segment's color spot relative to left-most point of the gradient. 変化点の位置(0.0以上1.0以下) midpointPosition Position of the segment's midpoint relative to color spot immediately to left. 変化の中心点の位置(0.0以上1.0以下) red Red component of the color spot's color. 変化点の色の赤成分(0以上255以下) green Green component of the color spot's color. 変化点の色の緑成分(0以上255以下) blue Blue component of the color spot's color. 変化点の色の青成分(0以上255以下) opacity Opacity of the color spot. 変化点の色の不透明度 Result:
Returns the index of the newly created segment; 0 otherwise.
Note: segment indexes begin with 1.
返り値
新しく作成された変化位置の番号を返します。作成できなかった場合は0を返します。
注:変化位置の番号は1から始まります。
Example:
index := InsertGradientData(gradientHandle, 0.35, 0.4, 255, 255, 255, 100); { inserts a white color spot at position, 0.35, with a midpoint position of 0.4; 100 is max opacity (i.e. opaque) }See Also:
GetGradientDataN SetGradientDataN
InsertGradientSegment | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
FUNCTION InsertGradientSegment
( gradient :HANDLE; spotPosition :REAL; midpointPosition :REAL; red :LONGINT; green :LONGINT; blue :LONGINT ) :INTEGER ; Python:
return INTEGER
def vs.InsertGradientSegment(gradient, spotPosition, midpointPosition, red, green, blue): Description:
Inserts a new segment into the gradient and initializes its data to the specified values.
A segment consists of a single color spot and the single midpoint immediately to the right of the color spot.説明
グラデーションに新しい変化位置を挿入し、そのデータを指定した値で初期化します。
変化位置は1つの変化点と、そのすぐ右にある1つの変化の中心点から構成されています。Parameters:
gradient Gradient into which a segment is to be inserted. グラデーションのハンドル spotPosition Position of the segment's color spot relative to left-most point of the gradient. (position >= 0.0 and position <= 1.0) 変化点の位置(0.0以上1.0以下) midpointPosition Position of the segment's midpoint relative to color spot immediately to left. (position >= 0.0 and position <= 1.0) 変化の中心点の位置(0.0以上1.0以下) red Red component of the color spot's color. (red >= 0 and red <= 255) 変化点の色の赤成分(0以上255以下) green Green component of the color spot's color. (green >= 0 and green <= 255) 変化点の色の緑成分(0以上255以下) blue Blue component of the color spot's color. (blue >= 0 and blue <= 255) 変化点の色の青成分(0以上255以下) Result:
Returns the index of the newly created segment; 0 otherwise.
Note: segment indexes begin with 1.返り値
新しく作成された変化位置の番号を返します。作成できなかった場合は0を返します。Example:
index := InsertGradientSegment(gradientHandle, 0.35, 0.4, 255, 255, 255); { inserts a white color spot at position, 0.35, with a midpoint position of 0.4 }
IsTileGroupContainedObject | Document Attributes Vectorworks 2011 |
VectorScript Declaration:
FUNCTION IsTileGroupContainedObject
( objectHandle:HANDLE ) :BOOLEAN ; Python:
return BOOLEAN
def vs.IsTileGroupContainedObject(objectHandle): Description:
Determines if the specified object is a tile group-contained object.説明
指定した図形がタイルグループに含まれている/いないを返します。Parameters:
objectHandle The object handle to check. 調べたい図形のハンドル Result:
TRUE if the object is a tile group-contained object; FALSE otherwise.返り値
含まれていたらTRUEが返ります。いない場合はFALSEが返ります。Example:
return := IsTileGroupContainedObject(objectHandle);See Also:
CreateTile ShowEditTileDialog ShowEditTileSettingsDialog ShowNewTileDialog GetTileGeometryGroup BeginGroupN AddTileGeometryObject GetTileGroupParent IsTileGroupContainedObject GetTileBackgroundColor SetTileBackgroundColor GetTileRepetitionPoint SetTileRepetitionPoint GetTileOffsetPoint SetTileOffsetPoint
IsUserColor | Document Attributes VectorWorks 2008 |
VectorScript Declaration:
FUNCTION IsUserColor
( ColorIDX :INTEGER; VAR ColorName :DYNARRAY[] of CHAR ) :BOOLEAN ; Python:
return (BOOLEAN, ColorName)
def vs.IsUserColor(ColorIDX): Description:
Returns True if the color is a user color.説明
色がユーザ色の場合は、TRUEを返します。
Marker | Document Attributes MiniCAD6.0 - obsolete as of VectorWorks 2008 |
VectorScript Declaration:
PROCEDURE Marker
( style :INTEGER; size :REAL; ang :INTEGER ) ; Python:
return None
def vs.Marker(style, size, ang): Special Notes:
Marker is obsolete as of VectorWorks 2008
Description:
Marker defines a marker (arrowhead) style for the document. This marker style becomes the active style for the document.
A complete listing of marker styles can be found in the Appendix説明
現在設定されているマーカスタイル、長さ(インチ)、角度(度数)を変更します。
VW2008で使用できなくなった関数/手続きです。
SetDefaultBeginningMarker、SetDefaultEndMarkerをご利用ください。Parameters:
style Marker style constant. スタイル size Marker size in inches measured in page space. Legal values are 0.0 to 2.0. 長さ(インチ) ang Marker angle. 角度(度数) Example:
Marker(2,0.25,60);
NumColors | Document Attributes VectorWorks 2008 |
VectorScript Declaration:
FUNCTION NumColors
:INTEGER ; Python:
return INTEGER
def vs.NumColors(): Description:
Returns the last used color index in the current document.説明
現在のファイルで最後に使用した色番号を返します。
NumDashStyles | Document Attributes MiniCAD4.0 - obsolete as of Vectorworks 2019 |
VectorScript Declaration:
FUNCTION NumDashStyles
:INTEGER ; Python:
return INTEGER
def vs.NumDashStyles(): Special Notes:
NumDashStyles is obsolete as of Vectorworks 2019
Description:
Function NumDashStyles returns the number of available line dash patterns.説明
現在設定されている破線の数を返します。返り値
破線の数Example:
numLS:=NumDashStyles;
Opacity | Document Attributes VectorWorks 2008 |
VectorScript Declaration:
PROCEDURE Opacity
( opacity:INTEGER ) ; Python:
return None
def vs.Opacity(opacity): Description:
Sets the active opacity.説明
アクティブな不透明度を設定します。
OpacityN | Document Attributes Vectorworks 2017 |
VectorScript Declaration:
PROCEDURE OpacityN
( fillOpacity :INTEGER; penOpacity :INTEGER ) ; Python:
return None
def vs.OpacityN(fillOpacity, penOpacity):
PenBack | Document Attributes MiniCAD |
VectorScript Declaration:
PROCEDURE PenBack
( colorR :LONGINT; colorG :LONGINT; colorB :LONGINT ) ; Python:
return None
def vs.PenBack(color): Description:
Procedure PenBack set the active pen background color for the document. RGB values are in the range of 0~65535.説明
現在設定されている線の地色を変更します。値の範囲は0から65535までです。Parameters:
color RGB color value to be set as active pen background. 赤、緑、青の成分 Example:
PenBack(65535,0,39321);See Also:
RGBToColorIndex ColorIndexToRGB
PenFore | Document Attributes MiniCAD |
VectorScript Declaration:
PROCEDURE PenFore
( colorR :LONGINT; colorG :LONGINT; colorB :LONGINT ) ; Python:
return None
def vs.PenFore(color): Description:
Procedure PenFore sets the active pen foreground color for the document. RGB values are in the range of 0~65535.説明
現在設定されている線の色を変更します。値の範囲は0から65535までです。Parameters:
color RGB color value to be set as active pen foreground. 赤、緑、青の成分 Example:
PenFore(65535,0,39321);See Also:
RGBToColorIndex ColorIndexToRGB
PenPat | Document Attributes MiniCAD - obsolete as of Vectorworks 2013 |
VectorScript Declaration:
PROCEDURE PenPat
( patNumber:INTEGER ) ; Python:
return None
def vs.PenPat(patNumber): Special Notes:
PenPat is obsolete as of Vectorworks 2013
Description:
Deprecated - will generate error. Use PenPatN instead.
説明
アクティブな線の模様/種類を設定します。
patNumberに0から71までの値を設定すると、ビットマップの線の模様が設定されます。
-1から-8までの値を設定すると、線の種類が設定されます。
Parameters:
patNumber Pattern/linestyle ID value. 模様番号 Example:
PenPat(25); { uses fill pattern 25 as the active pen pattern } PenPat(-3); { sets a linestyle as the active pen pattern }See Also:
PenPatN
PenPatN | Document Attributes Vectorworks 2013 |
VectorScript Declaration:
PROCEDURE PenPatN
( patNumber:LONGINT ) ; Python:
return None
def vs.PenPatN(patNumber): Description:
Procedure PenPatN sets the active pen pattern (line style) for the document.
If patNumber is in the range 0 to 71 the linestyle will be set to the corresponding fill pattern. A negative value, will set the linestyle to the line type resource whose index is the negative of the value.説明
アクティブな線の模様/種類を、0から71または負の値で設定します。Parameters:
patNumber Pattern/linestyle ID value. 線の模様/種類番号 Example:
PenPat(25); { uses fill pattern 25 as the active pen pattern } PenPat(-10); { sets the line type with the index of 10 as the active pen pattern }See Also:
FPenPatN
PenSize | Document Attributes MiniCAD |
VectorScript Declaration:
PROCEDURE PenSize
( lw:INTEGER ) ; Python:
return None
def vs.PenSize(lw): Description:
Procedure PenSize sets the active line weight for the document.説明
現在設定されている線の太さを変更します。Parameters:
lw Line weight (in mils). Fourteen (14) mils equals one pixel. 線の太さ Example:
PenSize(28);
RemoveGradientSegment | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE RemoveGradientSegment
( gradient :HANDLE; segmentIndex :INTEGER ) ; Python:
return None
def vs.RemoveGradientSegment(gradient, segmentIndex): Description:
Removes the specified segment from the specified gradient.説明
グラデーションから変化位置を削除します。Parameters:
gradient Gradient from which to remove a segment. グラデーションのハンドル segmentIndex Index of segment to be removed. (segment indexes begin with 1) 変化位置番号(最も左を1とする) Example:
RemoveGradientSegment (gradientHandle, 4); { removes the segment with index 4 }
SetDashStyle | Document Attributes MiniCAD4.0 |
VectorScript Declaration:
PROCEDURE SetDashStyle
( swt :BOOLEAN; numPairs :INTEGER; pair1DX :REAL; pair1DY :REAL; pair2DX :REAL; pair2DY :REAL; pair3DX :REAL; pair3DY :REAL; pair4DX :REAL; pair4DY :REAL; pair5DX :REAL; pair5DY :REAL ) ; Python:
return None
def vs.SetDashStyle(swt, numPairs, pair1, pair2, pair3, pair4, pair5): Description:
Procedure SetDashStyle creates a new linestyle in a Vectorworks document. Parameter swt defines whether the linestyle will be scaled with thickness, and parameter numPairs specifies the number of length pairs defining the linestyle.
The linestyle is defined by up to five black/white length pairs, which are specified in parameters b1,w1 through b5,w5. The minimum length of any given black or white parameter is 1 point, or 1/72 of an inch, and the line specification must be in pairs.
説明
指定された線の長さと間隔をもとに破線の種類を追加します。
破線は5組の黒/白の線分のペアで定義されています。
Example:
SetDashStyle(True,0,1",1/4",1/4",1/4");
SetDashStyleN | Document Attributes Vectorworks 2010 |
VectorScript Declaration:
PROCEDURE SetDashStyleN
( name :STRING; swt :BOOLEAN; numPairs :INTEGER; pair1DX :REAL; pair1DY :REAL; pair2DX :REAL; pair2DY :REAL; pair3DX :REAL; pair3DY :REAL; pair4DX :REAL; pair4DY :REAL; pair5DX :REAL; pair5DY :REAL ) ; Python:
return None
def vs.SetDashStyleN(name, swt, numPairs, pair1, pair2, pair3, pair4, pair5): Description:
Procedure SetDashStyleN creates a new linestyle in a Vectorworks document. Parameter name defines the name of the linestyle, parameter swt defines whether the linestyle will be scaled with thickness, and parameter numPairs specifies the number of length pairs defining the linestyle.
The linestyle is defined by up to five black/white length pairs, which are specified in parameters b1,w1 through b5,w5. The minimum length of any given black or white parameter is 1 point, or 1/72 of an inch, and the line specification must be in pairs.説明
指定された名前と線の長さと間隔をもとに破線の種類を追加します。
破線は5組の黒/白の線分のペアで定義されています。
Example:
SetDashStyle('My Dash Style', True,0,1",1/4",1/4",1/4");
SetDefaultBeginningMarker | Document Attributes VectorWorks 2008 |
VectorScript Declaration:
FUNCTION SetDefaultBeginningMarker
( style :LONGINT; angle :INTEGER; size :REAL; width :REAL; thicknessBasis :INTEGER; thickness :REAL; visibility :BOOLEAN ) :BOOLEAN ; Python:
return BOOLEAN
def vs.SetDefaultBeginningMarker(style, angle, size, width, thicknessBasis, thickness, visibility): Description:
Sets all properties of the document default beginning marker. Return TRUE if operation was successful.説明
ファイルのデフォルト始点マーカのすべての設定値を設定します。正常終了するとTRUEが返されます。Parameters:
style The marker style. (see comments for details) タイプ angle The marker angle in degrees. (0 to 90) 角度(度数、0から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 ok := SetDefaultBeginningMarker(2176, 15, 0.5, 0, 0, 2, TRUE); END; RUN(Example);See Also:
SetDefaultEndMarker
SetDefaultEndMarker | Document Attributes VectorWorks 2008 |
VectorScript Declaration:
FUNCTION SetDefaultEndMarker
( style :LONGINT; angle :INTEGER; size :REAL; width :REAL; thicknessBasis :INTEGER; thickness :REAL; visibility :BOOLEAN ) :BOOLEAN ; Python:
return BOOLEAN
def vs.SetDefaultEndMarker(style, angle, size, width, thicknessBasis, thickness, visibility): Description:
Sets all properties of the document default end marker. Return TRUE if operation was successful.説明
ファイルのデフォルト終点マーカのすべての設定値を設定します。正常終了するとTRUEが返されます。Parameters:
style The marker style. (see comments for details) タイプ angle The marker angle in degrees. (0 to 90) 角度(度数、0から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 ok := SetDefaultEndMarker(2176, 15, 0.5, 0, 0, 2, TRUE); END; RUN(Example);See Also:
SetDefaultBeginningMarker
SetDefaultOpacity | Document Attributes VectorWorks 2008 |
VectorScript Declaration:
PROCEDURE SetDefaultOpacity
( opacity:INTEGER ) ; Python:
return None
def vs.SetDefaultOpacity(opacity): Description:
Sets the default opacity to document.説明
デフォルトの不透明度を設定します。Parameters:
opacity The opacity as percent value in range [0-100]. 不透明度は、0から100までの値で指定します。
SetDefaultOpacityByClass | Document Attributes VectorWorks 2008 |
VectorScript Declaration:
PROCEDURE SetDefaultOpacityByClass
; Python:
return None
def vs.SetDefaultOpacityByClass(): Description:
Sets the default opacity to use the current class opacity.説明
現在のクラスの不透明度を、デフォルトの不透明度に設定します。
SetDefaultOpacityN | Document Attributes Vectorworks 2017 |
VectorScript Declaration:
PROCEDURE SetDefaultOpacityN
( inPenOpacity :INTEGER; inFillOpacity :INTEGER ) ; Python:
return None
def vs.SetDefaultOpacityN(inPenOpacity, inFillOpacity):
SetDefOpacityByClsN | Document Attributes Vectorworks 2017 |
VectorScript Declaration:
PROCEDURE SetDefOpacityByClsN
( inIsPenOpacityByClass :BOOLEAN; inIsFillOpacityByClass :BOOLEAN ) ; Python:
return None
def vs.SetDefOpacityByClsN(inIsPenOpacityByClass, inIsFillOpacityByClass):
SetDocDrpShadowData | Document Attributes Vectorworks 2017 |
VectorScript Declaration:
PROCEDURE SetDocDrpShadowData
( bUseDropShadow :BOOLEAN; nUnits :INTEGER; dOffset :REAL; dBlurRadius :REAL; dAngle :REAL; nOpacity :INTEGER; colorR :LONGINT; colorG :LONGINT; colorB :LONGINT ) ; Python:
return None
def vs.SetDocDrpShadowData(bUseDropShadow, nUnits, dOffset, dBlurRadius, dAngle, nOpacity, color):
SetDocDrpShadwByCls | Document Attributes Vectorworks 2017 |
VectorScript Declaration:
PROCEDURE SetDocDrpShadwByCls
( bEnable:BOOLEAN ) ; Python:
return None
def vs.SetDocDrpShadwByCls(bEnable):
SetDocumentDefaultSketchStyle | Document Attributes VectorWorks11.5 |
VectorScript Declaration:
FUNCTION SetDocumentDefaultSketchStyle
( sketchName:STRING ) :BOOLEAN ; Python:
return BOOLEAN
def vs.SetDocumentDefaultSketchStyle(sketchName): Description:
Sets the document default sketch style. Set sketchName to 'No Sketch' to set the document default sketch to 'No Sketch'.説明
ドキュメントデフォルトのスケッチスタイルを設定します。
ドキュメントデフォルトのスケッチを「スケッチなし」に設定するには、sketchNameを「スケッチなし」にします。Parameters:
sketchName Sketch Style name. スケッチスタイルの名前
SetGradientData | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE SetGradientData
( gradient :HANDLE; VAR segmentIndex :INTEGER; spotPosition :REAL; midpointPosition :REAL; red :LONGINT; green :LONGINT; blue :LONGINT ) ; Python:
return segmentIndex
def vs.SetGradientData(gradient, segmentIndex, spotPosition, midpointPosition, red, green, blue): Description:
Sets the spot position, midpoint position and color of the specified gradient segment.
Note: you must use a variable, initialized to the segment index, to pass as a parameter. After the data has been set, this variable will contain the index of the segment, which may have changed because of the spot position specified.説明
変化位置の変化点、変化の中心点の位置や色を設定します。
注:変化位置の番号には初期化した変数を使わなければなりません。変化点の位置が変更されデータが設定された後は、変数に変化位置の番号を返します。Parameters:
gradient Gradient that contains the segment. グラデーションのハンドル segmentIndex Segment for which to set the data. (segment indexes begin with 1) 変化位置番号(最も左を1とする) spotPosition Position of the segment's color spot relative to left-most point of the gradient. (position >= 0.0 and position <= 1.0) 変化点の位置(0.0以上1.0以下) midpointPosition Position of the segment's midpoint relative to color spot immediately to left. (position >= 0.0 and position <= 1.0) 変化の中心点の位置(0.0以上1.0以下) red Red component of the color spot's color. (red >= 0 and red <= 255) 変化点の色の赤成分(0以上255以下) green Green component of the color spot's color. (green >= 0 and green <= 255) 変化点の色の緑成分(0以上255以下) blue Blue component of the color spot's color. (blue >= 0 and blue <= 255) 変化点の色の青成分(0以上255以下) Example:
segmentIndex := 4; SetGradientData(gradientHandle, segmentIndex, 0.9, 0.5, 255, 255, 255);
SetGradientDataN | Document Attributes Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE SetGradientDataN
( gradient :HANDLE; VAR segmentIndex :INTEGER; spotPosition :REAL; midpointPosition :REAL; red :LONGINT; green :LONGINT; blue :LONGINT; opacity :INTEGER ) ; Python:
return segmentIndex
def vs.SetGradientDataN(gradient, segmentIndex, spotPosition, midpointPosition, red, green, blue, opacity): Description:
Note: you must use a variable, initialized to the segment index, to pass as a parameter. After the data has been set, this variable will contain the index of the segment, which may have changed because of the spot position specified.説明
変化位置の変化点、変化の中心点の位置や色、不透明度を設定します。
注:変化位置の番号には初期化した変数を使わなければなりません。変化点の位置が変更されデータが設定された後は、変数に変化位置の番号を返します。Parameters:
gradient Gradient that contains the segment. グラデーションのハンドル segmentIndex Segment for which to set the data. 変化位置番号 spotPosition Position of the segment's color spot relative to left-most point of the gradient. 変化点の位置 midpointPosition Position of the segment's midpoint relative to color spot immediately to left. 変化の中心点の位置 red Red component of the color spot's color. 変化点の色の赤成分 green Green component of the color spot's color. 変化点の色の緑成分 blue Blue component of the color spot's color. 変化点の色の青成分 opacity Opacity of the color spot. 変化点の色の不透明度 Example:
segmentIndex := 4; SetGradientData(gradientHandle, segmentIndex, 0.9, 0.5, 255, 255, 255,100);See Also:
GetGradientDataN InsertGradientData
SetGradientMidpointPosition | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE SetGradientMidpointPosition
( gradient :HANDLE; segmentIndex :INTEGER; position :REAL ) ; Python:
return None
def vs.SetGradientMidpointPosition(gradient, segmentIndex, position): Description:
Sets the midpoint position of the specified gradient segment.説明
変化位置の変化の中心点の位置を設定します。Parameters:
gradient Gradient that contains the segment. グラデーションのハンドル segmentIndex Segment for which to set the data. (segment indexes begin with 1) 変化位置番号(最も左を1とする) position Position of the segment's midpoint relatvie to color spot immediately to left. (position >= 0.0 and position <= 1.0) 変化の中心点の位置(0.0以上1.0以下) Example:
SetGradientMidpointPosition(gradientHandle, 4, 0.6);
SetGradientOpacity | Document Attributes Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE SetGradientOpacity
( gradient :HANDLE; segmentIndex :INTEGER; opacity :INTEGER ) ; Python:
return None
def vs.SetGradientOpacity(gradient, segmentIndex, opacity): Parameters:
gradient Gradient that contains the segment. グラデーションのハンドル segmentIndex Segment for which to set the data. 変化位置番号(最も左を1とする) opacity Opacity at the spot position. 変化点の色の不透明度 Example:
SetGradientSpotColor(gradientHandle, 4, 100);See Also:
GetGradientOpacity
SetGradientSpotColor | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE SetGradientSpotColor
( gradient :HANDLE; segmentIndex :INTEGER; red :LONGINT; green :LONGINT; blue :LONGINT ) ; Python:
return None
def vs.SetGradientSpotColor(gradient, segmentIndex, red, green, blue): Description:
Sets the spot color of the specified gradient segment.説明
変化位置の変化点を設定します。Parameters:
gradient Gradient that contains the segment. グラデーションのハンドル segmentIndex Segment for which to set the data. (segment indexes begin with 1) 変化位置番号(最も左を1とする) red Red component of the color spot's color. (red >= 0 and red <= 255) 変化点の色の赤成分(0以上255以下) green Green component of the color spot's color. (green >= 0 and green <= 255) 変化点の色の緑成分(0以上255以下) blue Blue component of the color spot's color. (blue >= 0 and blue <= 255) 変化点の色の青成分(0以上255以下) Example:
SetGradientSpotColor(gradientHandle, 4, 255, 255, 255);
SetGradientSpotPosition | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE SetGradientSpotPosition
( gradient :HANDLE; VAR segmentIndex :INTEGER; position :REAL ) ; Python:
return segmentIndex
def vs.SetGradientSpotPosition(gradient, segmentIndex, position): Description:
Sets the spot position of the specified gradient segment.
Note: you must use a variable, initialized to the segment index, to pass as a parameter. After the data has been set, this variable will contain the index of the segment, which may have changed because of the spot position specified.説明
変化位置の変化点の位置を設定します。
注:変化位置の番号には初期化した変数を使わなければなりません。変化点の位置が変更されデータが設定された後は、変数に変化位置の番号を返します。Parameters:
gradient Gradient that contains the segment. グラデーションのハンドル segmentIndex Segment for which to set the data. (segment indexes begin with 1) 変化位置番号(最も左を1とする) position Position of the segment's color spot relative to left-most point of the gradient. (position >= 0.0 and position <= 1.0) 変化点の位置(0.0以上1.0以下) Example:
SetGradientSpotPosition(gradientHandle, segmentIndex, 0.9);
SetTileBackgroundColor | Document Attributes Vectorworks 2011 |
VectorScript Declaration:
PROCEDURE SetTileBackgroundColor
( tileHandle :HANDLE; backgroundColorR :LONGINT; backgroundColorG :LONGINT; backgroundColorB :LONGINT ) ; Python:
return None
def vs.SetTileBackgroundColor(tileHandle, backgroundColor): Description:
Sets the specified tile resource's background color.説明
指定したタイルリソースの背景色を設定します。Parameters:
tileHandle The tile resource in which to set the background color. タイルリソースのハンドル backgroundColor The RGB background color to set. 背景色のRGB値 Example:
SetTileBackgroundColor(tileHandle, backgroundColor);See Also:
CreateTile ShowEditTileDialog ShowEditTileSettingsDialog ShowNewTileDialog GetTileGeometryGroup BeginGroupN AddTileGeometryObject GetTileGroupParent IsTileGroupContainedObject GetTileBackgroundColor SetTileBackgroundColor GetTileRepetitionPoint SetTileRepetitionPoint GetTileOffsetPoint SetTileOffsetPoint
SetTileOffsetPoint | Document Attributes Vectorworks 2011 |
VectorScript Declaration:
PROCEDURE SetTileOffsetPoint
( tileHandle :HANDLE; offsetPoint :POINT ) ; Python:
return None
def vs.SetTileOffsetPoint(tileHandle, offsetPoint): Description:
Sets the specified tile resource's offset point.説明
指定したタイルリソースのオフセットポイントを設定します。Parameters:
tileHandle The tile resource in which to set the offset point. タイルリソースのハンドル offsetPoint The offsets point to be set. オフセット座標 Example:
SetTileRepetitionPoint(tileHandle, offsetPoint);See Also:
CreateTile ShowEditTileDialog ShowEditTileSettingsDialog ShowNewTileDialog GetTileGeometryGroup BeginGroupN AddTileGeometryObject GetTileGroupParent IsTileGroupContainedObject GetTileBackgroundColor SetTileBackgroundColor GetTileRepetitionPoint SetTileRepetitionPoint GetTileOffsetPoint SetTileOffsetPoint
SetTileRepetitionPoint | Document Attributes Vectorworks 2011 |
VectorScript Declaration:
PROCEDURE SetTileRepetitionPoint
( tileHandle :HANDLE; repetitionPoint :POINT ) ; Python:
return None
def vs.SetTileRepetitionPoint(tileHandle, repetitionPoint): Description:
Sets the specified tile resource's repetition point.説明
指定したタイルリソースの繰り返しポイントを設定します。Parameters:
tileHandle The tile resource in which to set the repetition point. タイルリソースのハンドル repetitionPoint The repetition point to be set. 繰り返し座標 Example:
SetTileRepetitionPoint(tileHandle, repetitionPoint);See Also:
CreateTile ShowEditTileDialog ShowEditTileSettingsDialog ShowNewTileDialog GetTileGeometryGroup BeginGroupN AddTileGeometryObject GetTileGroupParent IsTileGroupContainedObject GetTileBackgroundColor SetTileBackgroundColor GetTileRepetitionPoint SetTileRepetitionPoint GetTileOffsetPoint SetTileOffsetPoint
SheetList | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
FUNCTION SheetList
( sheetIndex:INTEGER ) :STRING ; Python:
return STRING
def vs.SheetList(sheetIndex): Description:
Returns the name of the sheet specified by index.説明
番号で指定した登録画面の名前を返します。Parameters:
sheetIndex Index of the sheet 番号 Result:
Returns a string containing the name of the sheet.返り値
登録画面の名前を返します。See Also:
SheetNum
SheetNum | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
FUNCTION SheetNum
:INTEGER ; Python:
return INTEGER
def vs.SheetNum(): Description:
Returns the number of sheets contained within the current document.説明
ドキュメントに含まれる登録画面の数を返します。Result:
The number of sheets.返り値
登録画面の数を返します。See Also:
SheetList
ShowCreateImageDialog | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
FUNCTION ShowCreateImageDialog
:HANDLE ; Python:
return HANDLE
def vs.ShowCreateImageDialog(): Description:
Displays a dialog that allows the user to select an image file from which a new image resource is created.説明
ダイアログを表示して、イメージ属性を作成するためのファイルをユーザーに選択させます。Result:
Returns the handle to the newly created image resource if successful; nil otherwise.返り値
新しく作成されたイメージのハンドルを返します。その他の場合はNILを返します。Example:
imageHandle := ShowCreateImageDialog;
ShowGradientEditorDialog | Document Attributes VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE ShowGradientEditorDialog
( VAR gradient:HANDLE ) ; Python:
return gradient
def vs.ShowGradientEditorDialog(gradient): Description:
Displays the gradient editor dialog for the specified gradient.
To create and edit a new gradient resource, pass in a handle variable initialized to nil. If successful, the handle variable will be initialized with the handle to the new gradient resource.説明
グラデーションの編集ダイアログを表示します。
新しいグラデーションを作成したり編集するために、NILで初期化したハンドル型の変数を渡します。問題なく動作すれば、新しいグラデーションのハンドルを返します。Parameters:
gradient The gradient resource to display in the editor dialog; nil if a new gradient is to be created. グラデーションのハンドル Example:
ShowGradientEditorDialog(gradientHandle); { displays the specified gradient resource in the editor } newGradientHandle := nil; ShowGradientEditorDialog(newGradientHandle); { creates a new gradient resource and displays it in the editor }
ShowPlanShadowsTab | Document Attributes Vectorworks 2014 |
VectorScript Declaration:
FUNCTION ShowPlanShadowsTab
:BOOLEAN ; Python:
return BOOLEAN
def vs.ShowPlanShadowsTab(): Description:
Opens the Pane Shadows tab of the Document Preferences dialog説明
「ファイル設定」ダイアログの「影の表現」タブを開く。