BeginContext | Utility VectorWorks12.5 |
VectorScript Declaration:
PROCEDURE BeginContext
; Python:
return None
def vs.BeginContext(): Description:
Use this function in conjuction with EndContext to starts logging changes that are made until the EndContext is reached.説明
この手続きを実行した後、EndContextを実行するまでの変化を記録します。
EndContextとともに使用します。See Also:
EndContext
BeginMultDashConvert | Utility Vectorworks 2019 |
VectorScript Declaration:
PROCEDURE BeginMultDashConvert
; Python:
return None
def vs.BeginMultDashConvert(): Description:
Used when a number of pseudo index to dash style conversion operations (or vice versa) are going to be performed.
Use EndMultDashConvert when the conversions are complete.説明
複数の疑似インデックスから破線の種類への変換操作(またはその逆の操作)を実行するときに使用します。
EndMultDashConvertと共に使用します。See Also:
GetPseudoIndFromDash GetDashFromPseudoInd EndMultDashConvert
CallToolByIndex | Utility Vectorworks 2014 |
VectorScript Declaration:
FUNCTION CallToolByIndex
( toolIndex:INTEGER ) :BOOLEAN ; Python:
return BOOLEAN
def vs.CallToolByIndex(toolIndex): Description:
Similar to CallTool. Takes the internal ID of a tool.説明
CallToolと同様。ツールの内部IDを引数にとる。
CallToolByName | Utility Vectorworks 2014 |
VectorScript Declaration:
FUNCTION CallToolByName
( toolName:STRING ) :BOOLEAN ; Python:
return BOOLEAN
def vs.CallToolByName(toolName): Description:
Similar to CallTool, but takes name rather than ID. Supports plug-in tools (but not yet internal tools).説明
CallToolと同様。IDの代わりに名前を引数にとる。プラグインツールに対応。(内部ツールには未対応)
CallToolWithMode | Utility Vectorworks 2016 |
VectorScript Declaration:
PROCEDURE CallToolWithMode
( toolIndex :INTEGER; modeGroup :LONGINT; modeButton :LONGINT ) ; Python:
return None
def vs.CallToolWithMode(toolIndex, modeGroup, modeButton): Description:
Activates the specified Vectorworks tool for a single use with the specified tool mode. After the tool has been used Vectorworks will revert back to the previously active tool.説明
アクティブツールとそのモードを設定します。終了すると、その前のアクティブツールに戻ります。Parameters:
toolIndex Vectorworks tool constant. ツール番号 modeGroup Index of the mode group モードの番号 modeButton Index of the button in the group. ボタンの番号
ClrMessage | Utility MiniCAD |
VectorScript Declaration:
PROCEDURE ClrMessage
; Python:
return None
def vs.ClrMessage(): Description:
Procedure ClrMessage closes the message palette.
説明
メッセージウインドウを消去します。
ColorIndexToRGB | Utility MiniCAD6.0 |
VectorScript Declaration:
PROCEDURE ColorIndexToRGB
( color :INTEGER; VAR red :LONGINT; VAR green :LONGINT; VAR blue :LONGINT ) ; Python:
return (red, green, blue)
def vs.ColorIndexToRGB(color): Description:
Procedure ColorIndexToRGB converts the Vectorworks palette colors from the colors' palette position index to its red, green, and blue component values. RGB values are in the range of 0~65535.
A color table listing with associated index values can be found in the Appendix.説明
カラーパレットの色番号から各色の成分を取り出します。値の範囲は0から65535までです。Parameters:
color Color index. 色番号 red RGB color component value. 赤の成分 green RGB color component value. 緑の成分 blue RGB color component value. 青の成分 Example:
ColorIndexToRGB(45,r,g,b); {returns the color value components of the color at position 45}
ColorIndexToRGBN | Utility Vectorworks 2010 |
VectorScript Declaration:
PROCEDURE ColorIndexToRGBN
( color :INTEGER; VAR red :LONGINT; VAR green :LONGINT; VAR blue :LONGINT; ignoreBlackBackground :BOOLEAN ) ; Python:
return (red, green, blue)
def vs.ColorIndexToRGBN(color, ignoreBlackBackground): Description:
Procedure ColorIndexToRGBN converts the Vectorworks palette colors from the colors' palette position index to its red, green, and blue component values. RGB values are in the range of 0~65535.Parameter ignoreBlackBackground specifies whether the black background preference should be ignored. If set to TRUE, black and white indexes will not be inverted in black background.
A color table listing with associated index values can be found in the Appendix.説明
カラーパレットの色番号から各色の成分を取り出します。値の範囲は0から65535までです。ignoreBlackBackgroundパラメータは背景色を黒にする設定を無視するか否かを設定します。TRUEに設定すると、白と黒のインデックスは背景色が黒であっても逆にされません。
A color table listing with associated index values can be found in the Appendix.Parameters:
color Color index 色番号 red RGB color component value. 赤の成分 green RGB color component value. 緑の成分 blue RGB color component value. 青の成分 ignoreBlackBackground Ignore black background preference setting or not. 背景色を黒にする設定を無視する設定 Example:
ColorIndexToRGBN(257,r,g,b,TRUE); {returns the color value components of the color index 257 (black)} {Because ignoreBlackBackground is set to TRUE, the result } {will always be black RGB color regardless of the black background }{preference setting.}
CreateUUID | Utility Vectorworks 2014 |
VectorScript Declaration:
FUNCTION CreateUUID
:STRING ; Python:
return STRING
def vs.CreateUUID(): Description:
Creates a string representing universe unique identifier. The string is in the form: '{00000000-0000-0000-0000-000000000000}'説明
Universally Unique Identifierを表す文字列を生成します。文字列は次のような形式である:'{00000000-0000-0000-0000-000000000000}'
Date | Utility MiniCAD |
VectorScript Declaration:
FUNCTION Date
( dateFormat :INTEGER; infoFormat :INTEGER ) :STRING ; Python:
return STRING
def vs.Date(dateFormat, infoFormat): Description:
Function Date returns a formatted date and time string.
Table - Values for dateFormat parameter:
Date Format Constant Full Date 0 Abbreviated Date 1 Short Date 2
Table - Values for infoFormat parameter:
Date/Time Constant Date only 0 Date and Time 1 Time only 2
説明
現在の日付と時間を文字列で返します。Parameters:
dateFormat Specify how verbose or compact the resulting string is. 日付の種類 infoFormat Specify if result should contain date, time or both. 情報の種類 Example:
{ All examples are for the date Friday, } { Nov. 18, 1988 and the time 10:42:24 AM } Date(0,1); {returns Friday, November 18, 1988 10:42:24 AM} Date(0,0); {returns Friday, November 18, 1988} Date(2,2); {returns 10:42:24 AM} Date(2,1); {returns 11/18/88 10:42:24 AM}
DelSavedSetting | Utility Vectorworks 2014 |
VectorScript Declaration:
FUNCTION DelSavedSetting
( category :STRING; setting :STRING ) :BOOLEAN ; Python:
return BOOLEAN
def vs.DelSavedSetting(category, setting): Description:
Delete saved settings.説明
保存された設定を削除します。Parameters:
category The category for the setting. 設定のカテゴリ setting The setting to be deleted. 削除する設定 Result:
Return TRUE when successful.返り値
成功した場合TRUEを返します。See Also:
DelSavedSettings SetSavedSetting GetSavedSetting
DelSavedSettings | Utility Vectorworks 2014 |
VectorScript Declaration:
FUNCTION DelSavedSettings
( category:STRING ) :BOOLEAN ; Python:
return BOOLEAN
def vs.DelSavedSettings(category): Description:
Delete all saved settings in the specified category.説明
指定したカテゴリの保存された設定を全て削除します。Parameters:
category The category to be deleted. 削除の対象となるカテゴリ Result:
Return TRUE when successful.返り値
成功した場合TRUEを返します。See Also:
DelSavedSetting SetSavedSetting GetSavedSetting
DisableModules | Utility VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE DisableModules
( modules:LONGINT ) ; Python:
return None
def vs.DisableModules(modules): Description:
Disables modules. The modules parameter is a bitfield indicating which modules to disable.説明
動作させないモジュールを設定します。モジュールパラメータは、どのモジュールで動作させないかを指定するビットフィールドです。Parameters:
modules This modules parameter is a LONGINT value which contains a bit for each possible product module. If a module is enabled, then the corresponding bit is set to 1. If that module is disabled, then its bit is 0. The table below contains selectors that can be used to interpret the results of this function. To determine if a module is enabled, do a bitwise "and" operation with the selector and the value returned by this function. See the usage example below. Table - GetEnabledModules Selectors
Module Selector Description Foundation 0 Vectorworks general purpose CAD. RenderWorks 1 Advanced rendering features, lighting, textures. Architect 2 Architectural features including advanced window, door, wall framing, HVAC. Landmark 4 Site modeling and landscape design module. Spotlight 8 Theater lighting, set, and scenic design features. Mechanical 16 Mechanical engineering module for designers and fabricators. Pro 32 Foundation for European market. モジュール
DisplayContextHelpOfCurrentPlugin | Utility VectorWorks12.0 |
VectorScript Declaration:
PROCEDURE DisplayContextHelpOfCurrentPlugin
; Python:
return None
def vs.DisplayContextHelpOfCurrentPlugin(): Description:
This function will display the context help of the plug-in that is considered 'current'. This could be a command plug-in that has a dialog open, or a tool plug-in that is active.説明
アクティブなプラグインのヘルプをウェブブラウザに表示します。
DisplayContextualHelp | Utility VectorWorks12.0 |
VectorScript Declaration:
FUNCTION DisplayContextualHelp
( Identifier:STRING ) :BOOLEAN ; Python:
return BOOLEAN
def vs.DisplayContextualHelp(Identifier): Description:
Using the identifier string for a GUI element given by the Contextual Help Manager displays the associated contextual help. This could be a WebWorks webpage, a Internet webpage or even a local file.説明
コンテクストヘルプマネージャから提供されるGUI要素のID文字列を使用して、関連するコンテクストヘルプを表示します。このヘルプには、WebWorksのウェブページ、インターネットのウェブページ、またはローカルファイルを指定できます。
DisplayOrganizationDialog | Utility VectorWorks12.0 |
VectorScript Declaration:
PROCEDURE DisplayOrganizationDialog
( tabToSelect:INTEGER ) ; Python:
return None
def vs.DisplayOrganizationDialog(tabToSelect): Description:
Displays the organization dialog with the specified integer as the initially slected tab.
0: The most recently displayed tab is selected
1: The Classes tab is selected .
2: The Design Layers tab is selected.
3: The Sheet Layers tab is selected.
4: The Viewports tab is selected.
5: The Saved Views tab is selected.
説明
デフォルトで選択するタブを指定して「階層」ダイアログを表示します。
0:最後に表示されたタブ
1:クラス設定タブ
2:レイヤ設定タブ
3:シートレイヤ設定タブ
4:ビューポート設定タブ
5:登録画面設定タブParameters:
tabToSelect The tab to be initially selected. 選択するタブの番号
EditCriteriaWithUI | Utility Vectorworks 2014 |
VectorScript Declaration:
FUNCTION EditCriteriaWithUI
( VAR criteria:DYNARRAY[] of CHAR ) :INTEGER ; Python:
return (INTEGER, criteria)
def vs.EditCriteriaWithUI(criteria): Description:
Edit a criteria string with Edit Criteria Dialog.説明
条件編集ダイアログで検索条件を編集します。Parameters:
criteria Pass in a criteria to be edited, and output the modified criteria if the function result is TRUE. 編集される検索条件を渡すと、結果がTRUEの場合は、変更された検索条件が返されます。 Result:
The funtion returns the following values:
0 - failed. The input criteria is incorrect.
1 - The edit was OK
2 - The edit was Cancel
返り値
次の値を返します:
0 - 失敗。検索条件が不正
1 - 編集がOK
2 - 編集がキャンセル
EndContext | Utility VectorWorks12.5 |
VectorScript Declaration:
PROCEDURE EndContext
( acceptOrReject:INTEGER ) ; Python:
return None
def vs.EndContext(acceptOrReject): Description:
Use this function in conjuction with BeginContext to have VW automatically accept or reject any changes that were made during the Begin/End block.説明
Begin/Endブロックの間に、自動的になされたどんな変更にも対応する/しないを設定します。BeginContextとともに使用します。Parameters:
acceptOrReject Specify 0 to reject changes or 1 to accept changes 1:対応する/0:しない See Also:
BeginContext
EndMultDashConvert | Utility Vectorworks 2019 |
VectorScript Declaration:
PROCEDURE EndMultDashConvert
; Python:
return None
def vs.EndMultDashConvert(): Description:
Used in conjunction with BeginMultDashConvert to end the set of conversions.説明
BeginMultDashConvertと共に使用して、破線の複数変換操作を終了します。See Also:
GetPseudoIndFromDash GetDashFromPseudoInd BeginMultDashConvert
ExportImageFile | Utility Vectorworks 2015 |
VectorScript Declaration:
FUNCTION ExportImageFile
( hHmage :HANDLE; filePath :DYNARRAY[] of CHAR ) :BOOLEAN ; Python:
return BOOLEAN
def vs.ExportImageFile(hHmage, filePath): Description:
Export the specified Image object in Vectorworks as an image file.説明
指定したイメージ図形をイメージファイルとして取り出します。Parameters:
hHmage The handle of the image object to be exported. イメージ図形のハンドル filePath Full path to the output image file. イメージファイル取り出し先のフルパス
FndError | Utility MiniCAD |
VectorScript Declaration:
FUNCTION FndError
:BOOLEAN ; Python:
return BOOLEAN
def vs.FndError(): Description:
Function FndError returns whether an error has occurred within a VectorScript subroutine. Provided as a debugging tool, FndError receives notification after execution of every line of code whether an error has occurred.説明
直前で実行したプログラムにエラーが発生した場合はTRUEを返します。
ForEachObjectAtPoint | Utility VectorWorks 2008 |
VectorScript Declaration:
PROCEDURE ForEachObjectAtPoint
( actionFunc :PROCEDURE; objOptions :INTEGER; travOptions :INTEGER; locX :REAL; locY :REAL; pickRadius :REAL ) ; Python:
return None
def vs.ForEachObjectAtPoint(actionFunc, objOptions, travOptions, loc, pickRadius): Description:
Performs an action for each object at the specified point in the drawing. This call was implemented to get past the practical limitations of PickObject, which only finds the topmost object. This call will find all of the objects at a given point.
"actionFunc" should actually be a function, not a procedure as the declaration indicates.
If the callback function returns FALSE, ForEachObjectAtPoint will not process any more objects at the specified point.
Table - ForEachObjectAtPoint Selectors
Object OptionsOption Selector Description All objects 0 Visible Objects only 1 Selected Objects only 2 Unlocked objects only 4 Traversal OptionsOption Selector Description Traverse Shallow 0 Traverse Groups 1 Traverse inside groups 説明
指定した座標の下にある、条件に合致した図形を、指定した手続きで処理します。Example:
PROCEDURE Example; VAR gx1, gy1 : REAL; FUNCTION DoIt(h1 :HANDLE) :BOOLEAN; BEGIN DSelectAll; SetSelect(h1); Redraw; Wait(1); END; BEGIN GetPt(gx1, gy1); ForEachObjectAtPoint(DoIt, 0, 0, gx1, gy1, 5); END; RUN(Example);See Also:
PickObject GetPickObjectInfo
ForEachObjectInLayer | Utility VectorWorks8.5 |
VectorScript Declaration:
PROCEDURE ForEachObjectInLayer
( actionFunc :PROCEDURE; objOptions :INTEGER; travOptions :INTEGER; layerOptions :INTEGER ) ; Python:
return None
def vs.ForEachObjectInLayer(actionFunc, objOptions, travOptions, layerOptions): Description:
Traverses through all objects according to specified search options and applies the specified action to each object. The 'actionFunc' procedure should return false to continue with next object, or return true to stop the traversal.
Table - ForEachObjectInLayer Selectors
Object OptionsOption Selector Description All objects 0 Visible Objects only 1 Selected Objects only 2 Unlocked objects only 4 Traversal OptionsOption Selector Description Traverse Shallow 0 Traverse Groups 1 Traverse inside groups Traverse Deep 2 Traverse all containers (walls, extrudes, sweeps, etc) Layer OptionsOption Selector Description Current layer 0 All layers 1 Visible layers 2 Editable layers 4 Snappable layers 8 説明
指定した条件に合致した図形を、指定した手続きで処理します。Parameters:
actionFunc Subroutine which performs operation on found objects. 関数型サブルーチンの名前 objOptions Object selection option index. 図形選択オプション番号 travOptions Search options index. 検索オプション番号 layerOptions Layer selection option index. レイヤ選択オプション番号 Example:
PROCEDURE Example; FUNCTION MakeItRed(h :HANDLE) :BOOLEAN; VAR r, g, b :LONGINT; BEGIN ColorIndexToRGB(7, r, g, b); SetFillBack(h, r, g, b); END; BEGIN ForEachObjectInLayer(MakeItRed, 2, 0, 4); END; RUN(Example);
ForEachObjectInList | Utility VectorWorks8.5 |
VectorScript Declaration:
PROCEDURE ForEachObjectInList
( actionFunc :PROCEDURE; objOptions :INTEGER; travOptions :INTEGER; list :HANDLE ) ; Python:
return None
def vs.ForEachObjectInList(actionFunc, objOptions, travOptions, list): Description:
Processes all items in the specified list and and applies the specified action to each item.
Table - ForEachObjectInList Selectors
Object Options Option Selector Description All objects 0 Visible Objects only 1 Selected Objects only 2 Locked objects only 4 Traversal OptionsOption Selector Description Traverse Shallow 0 Traverse Groups 1 Traverse inside groups Traverse Deep 2 Traverse all containers (walls, extrudes, sweeps, etc) 説明
指定した条件に合致した図形を、指定した手続きで処理します。Parameters:
actionFunc Subroutine which performs operation on found objects. 手続き型サブルーチンの名前 objOptions Object selection option index. 図形選択オプション番号 travOptions Search options index. 検索オプション番号 list Handle to first item in list. ハンドル Example:
PROCEDURE Example; CONST pioName = 'Complex Window 2'; parameter = 'MeasureHeight'; value = 'Head of Window'; FUNCTION DoIt(h :HANDLE) :BOOLEAN; BEGIN h := FInSymDef(h); SetRField(h, pioName, parameter, value); END; BEGIN ForEachObjectInList(DoIt, 0, 0, FSymDef); END; RUN(Example);
GetActiveSerialNumber | Utility VectorWorks10.0 |
VectorScript Declaration:
FUNCTION GetActiveSerialNumber
:STRING ; Python:
return STRING
def vs.GetActiveSerialNumber(): Description:
Gets the currently active serial number.説明
アクティブなシリアル番号を返します。
GetArrayDimensions | Utility VectorWorks9.0 |
VectorScript Declaration:
PROCEDURE GetArrayDimensions
( arrayname :ARRAY; VAR rowStart :INTEGER; VAR rowEnd :INTEGER; VAR columnStart :INTEGER; VAR columnEnd :INTEGER ) ; Python:
return (rowStart, rowEnd, columnStart, columnEnd)
def vs.GetArrayDimensions(arrayname): Description:
Returns the dimensions of the specified array.説明
指定した配列の大きさを返します。Parameters:
arrayname Name of array. 配列 rowStart Start row value. 行の開始番号 rowEnd End row value. 行の終了番号 columnStart Start column value. 列の開始番号 columnEnd End column value. 列の終了番号
GetCallBackInval | Utility Vectorworks 2014 |
VectorScript Declaration:
FUNCTION GetCallBackInval
:BOOLEAN ; Python:
return BOOLEAN
def vs.GetCallBackInval(): Description:
Returns whether callbacks are invalidating portions of the screen that are being changed.説明
コールバック関数による画面の更新を無効にしているかどうかを返します。
GetClosestPt | Utility VectorWorks8.5 |
VectorScript Declaration:
PROCEDURE GetClosestPt
( VAR obj :HANDLE; ptX :REAL; ptY :REAL; VAR index :INTEGER; VAR containedObj :LONGINT ) ; Python:
return (obj, index, containedObj)
def vs.GetClosestPt(obj, pt): Description:
Returns the index number of the object closest to the specified location.
The index value will return 0 if no vertex can be determined as closest, and will return -1 if the object does not support GetClosestPt.
For container objects, GetClosestPt has distinct behaviors. For walls, if the closest vertex is
is in a subobject, obj will be set to a handle to the subobject. For symbols and plug-in objects, an index to the sub-object will be returned via parameter containedObj.
GetClosestPt supports only 2D objects.説明
ハンドルで指定した図形の頂点を返します。頂点が見つからない場合は、0を返します。Parameters:
obj Handle to object. 図形のハンドル pt Coordinate location of comparison point. 頂点のX座標 index Index to vertex. 頂点のY座標 containedObj Index of sub-object. 頂点番号 Example:
PROCEDURE GetClosestPtExample; VAR obj :HANDLE; ptX, ptY :REAL; index :INTEGER; containedObj :LONGINT; BEGIN GetPt(ptX, ptY); obj := PickObject(ptX, ptY); GetClosestPt(obj, ptX, ptY, index, containedObj); SetPenFore(obj, 65535, 0, 0); END; RUN(GetClosestPtExample);
GetClosestSide | Utility VectorWorks8.5 |
VectorScript Declaration:
PROCEDURE GetClosestSide
( obj :HANDLE; ptX :REAL; ptY :REAL; VAR index1 :INTEGER; VAR index2 :INTEGER ) ; Python:
return (index1, index2)
def vs.GetClosestSide(obj, pt): Description:
Returns the indices of the vertices that define the side closest to the specified location.
GetClosestSide supports only 2D objects. If the object is unsupported, -1 will be returned as the index values.説明
ハンドルで指定した2次元図形で、指定した座標に最も近い頂点の番号を返します。Parameters:
obj Handle to object. 図形のハンドル pt Coordinates of location. 指定する座標 index1 Index of first vertex of closest side. 頂点番号1 index2 Index of second vertex of closest side. 頂点番号2
GetCurrentLocalization | Utility Vectorworks 2010 |
VectorScript Declaration:
PROCEDURE GetCurrentLocalization
( VAR language :STRING; VAR subLanguage :STRING ) ; Python:
return (language, subLanguage)
def vs.GetCurrentLocalization(): Description:
Get the Vectorworks language in the ISO 639-3 draft standard Language ID and sublanguage is unused and will be the empty string reserved for future use for a regional dialect.
Currently this will always return the same language for a given installation of Vectorworks.説明
Vectorworksの言語環境をISO 639-3 ドラフト形式の言語IDで返します。sublanguageは現在使われていません。Parameters:
language Output parameter. Returns language in ISO 639-3 draft standard Language ID. 言語環境番号 subLanguage Output parameter. Unused. Returns empty string. 未使用
GetCurrentMode | Utility VectorWorks10.0 |
VectorScript Declaration:
FUNCTION GetCurrentMode
:INTEGER ; Python:
return INTEGER
def vs.GetCurrentMode(): Description:
Returns the current application protection mode.
Return values:
0 - Mode Not Set
1 - Full Mode
2 - Demo Mode
4 - Education Mode
8 - Student Mode
16 - Viewer Mode
32 - Unlicensed Mode
64 - Banner Mode
128 - Watermark New Files Mode
256 - Print Watermark Mode
512 - Save Educational File Format Mode
1024 - Open Educational File Format Mode
2048 - Vector Script Export Mode
4096 - Beta Serial Number Mode説明
アプリケーションの現在のプロテクトモードを返します。Example:
Procedure TestMode; Var vwMode : LongInt; ModeCheck : Boolean; FUNCTION BitCheck(largeNum, smallNum :LONGINT) :BOOLEAN; {Returns true if smallNum is a power of 2 present in largeNum.} VAR bit :INTEGER; BEGIN BitCheck := FALSE; bit := 15; while bit > -1 do BEGIN if largeNum >= (2 ^ bit) then BEGIN largeNum := largeNum - (2 ^ bit); IF (2 ^ bit) = smallNum THEN BEGIN BitCheck := TRUE; bit := 0; END; END; bit := bit - 1; END; END; Begin vwMode := GetCurrentMode; {Educational or Student version} ModeCheck := (BitCheck(vwMode, 4)) | (BitCheck(vwMode, 8)); AlrtDialog(Concat(vwMode,':',ModeCheck)); End; Run (TestMode)
GetDashFromPseudoInd | Utility Vectorworks 2019 |
VectorScript Declaration:
FUNCTION GetDashFromPseudoInd
( pseudoIndex :INTEGER; VAR outDashStyle :LONGINT ) :BOOLEAN ; Python:
return (BOOLEAN, outDashStyle)
def vs.GetDashFromPseudoInd(pseudoIndex): Description:
Gets the dash style that corresponds to the pseudo index and returns the style's internal index. Returns TRUE if successful.
説明
疑似インデックスと合致する破線の種類を検索し、その内部インデックス番号を返します。成功すると、TRUEを返します。
Parameters:
pseudoIndex Pseudo index (negative value) for which a dash style is requested. 疑似インデックス outDashStyle Negative internal index of a dashed line type corresponding to the pseudo index. 破線の種類のインデックス(負の値) See Also:
GetPseudoIndFromDash BeginMultDashConvert EndMultDashConvert
GetEnabledModules | Utility VectorWorks10.0 |
VectorScript Declaration:
FUNCTION GetEnabledModules
:LONGINT ; Python:
return LONGINT
def vs.GetEnabledModules(): Description:
Determines which combination of product modules are currently enabled.
This function returns a LONGINT value which contains a bit for each possible product module. If a module is enabled, then the corresponding bit will be set to 1. If that module is disabled, then its bit will be 0. The table below contains selectors that can be used to interpret the results of this function. To determine if a module is enabled, do a bitwise "and" operation with the selector and the value returned by this function. See the usage example below.
Table - GetEnabledModules Selectors
Module Selector Description Foundation 0 Vectorworks general purpose CAD. RenderWorks 1 Advanced rendering features, lighting, textures. Architect 2 Architectural features including advanced window, door, wall framing, HVAC. Landmark 4 Site modeling and landscape design module. Spotlight 8 Theater lighting, set, and scenic design features. Mechanical 16 Mechanical engineering module for designers and fabricators. Pro 32 Foundation for European market.
説明
現在利用可能なプロダクトモジュールの組み合わせを返します。
この関数は利用可能なプロダクトモジュールのビットを含んだLONGINT値を返します。モジュールが利用可能な場合は、相当するビットを1に設定されます。モジュールが利用不可能な場合は、相当するビットを0に設定されます。上記の表はこの関数の結果を解釈するために使用するセレクタです。モジュールが利用可能かを調べるために、セレクタと返された値とでAND計算をします。下記の使用例をご参照ください。Result:
A LONGINT bitfield value with a bit for each possible product module.返り値
利用可能なプロダクトモジュールのビットを含んだLONGINT値を返します。Example:
PROCEDURE testModules; {----------------------------------------------------------} FUNCTION bittest(value, mask :LONGINT) :BOOLEAN; VAR bit :INTEGER; BEGIN bittest := FALSE; bit := 31; { 2 ^ 31 is high order bit of a LONGINT argument. } WHILE ((bit > -1) & (bittest = false)) DO BEGIN IF value >= (2 ^ bit) THEN BEGIN value := value - (2 ^ bit); IF (2 ^ bit) = mask THEN bittest := TRUE; END; bit := bit - 1; END; END; {----------------------------------------------------------} FUNCTION IsModuleEnabled(whichModule :LONGINT) :BOOLEAN; VAR enabledModules :LONGINT; BEGIN enabledModules := GetEnabledModules; IsModuleEnabled := bittest(enabledModules, whichModule) END; BEGIN IF IsModuleEnabled(4) & IsModuleEnabled(1) THEN BEGIN { Landmark and Renderworks are both enabled. } { ... } END; END; RUN(testModules);See Also:
DisableModules
GetMainDisplayBounds | Utility Vectorworks 2014 |
VectorScript Declaration:
PROCEDURE GetMainDisplayBounds
( VAR outTop :INTEGER; VAR outLeft :INTEGER; VAR outBottom :INTEGER; VAR outRight :INTEGER ) ; Python:
return (outTop, outLeft, outBottom, outRight)
def vs.GetMainDisplayBounds(): Description:
Returns the bounds of the main display device (Macintosh Only).説明
主画面の境界を返します(Macntoshのみ)
GetModifierFlags | Utility Vectorworks 2025 |
VectorScript Declaration:
PROCEDURE GetModifierFlags
( VAR optionFlag :BOOLEAN; VAR cmdFlag :BOOLEAN; VAR shiftFlag :BOOLEAN ) ; Python:
return (optionFlag, cmdFlag, shiftFlag)
def vs.GetModifierFlags(): Description:
Returns the state of option/alt, cmd/ctrl, shift keys.説明
option/alt、cmd/ctrl、shiftキーなどの修飾キーの状態を返します。Parameters:
optionFlag The state of the option/alt key. option/altキーの状態 cmdFlag The state of the cmd/ctrl key. cmd/ctrlキーの状態 shiftFlag The state of the shift key. shiftキーの状態 Result:
Returns the state of option/alt, cmd/ctrl, shift keys.返り値
option/alt、cmd/ctrl、shiftキーなどの修飾キーの状態を返します。
GetNetAdapterInfo | Utility Vectorworks 2014 |
VectorScript Declaration:
FUNCTION GetNetAdapterInfo
( adapterIndex :INTEGER; VAR outMacAddr :STRING ) :BOOLEAN ; Python:
return (BOOLEAN, outMacAddr)
def vs.GetNetAdapterInfo(adapterIndex): Description:
Return information about the network adapter説明
ネットワークアダプターの情報を取得します。
GetOSVersion | Utility VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE GetOSVersion
( VAR major :LONGINT; VAR minor :LONGINT; VAR incr :LONGINT ) ; Python:
return (major, minor, incr)
def vs.GetOSVersion(): Description:
Returns the version of the current operating system.説明
動作しているOSのバージョンを返します。Parameters:
major Major revision number メジャー minor Minor revision number マイナー incr Increment revision number 増値 Example:
PROCEDURE ShowVersionInfo; VAR osMajor, osMinor, osIncr :LONGINT; vwMajor, vwMinor, vwMaint, platform: INTEGER; str :STRING; BEGIN str := ''; GetOSVersion(osMajor, osMinor, osIncr); GetVersion(vwMajor, vwMinor, vwMaint, platform); If platform = 1 then BEGIN str := Concat(str, 'Platform: Macintosh', chr(13)); IF osMajor = 0 THEN osMajor := 10; str := Concat(str, 'OS Version: ', osMajor, '.', osMinor, '.', osIncr, chr(13)); end else if platform = 2 then BEGIN str := Concat(str, 'Platform: Windows', chr(13)); IF (osMajor = 4) & (osMinor = 10) THEN str := Concat(str, 'OS Version: 98 SE', chr(13)) ELSE IF (osMajor = 5) & (osMinor = 1) THEN str := Concat(str, 'OS Version: XP', chr(13)) ELSE str := Concat(str, 'OS Version: ', osMajor, '.', osMinor, '.', osIncr, chr(13)); END; str := Concat(str, 'VW Version: ', vwMajor, '.', vwMinor, '.', vwMaint); AlrtDialog(str); END; RUN(ShowVersionInfo);
GetPaletteVisibility | Utility VectorWorks10.0 |
VectorScript Declaration:
FUNCTION GetPaletteVisibility
( paletteName:STRING ) :BOOLEAN ; Python:
return BOOLEAN
def vs.GetPaletteVisibility(paletteName): Description:
Gets the visibility state of a palette.説明
パレットの表示/非表示を返します。Parameters:
paletteName Name of the palette パレットの名前 Result:
Returns true if the palette is visible, false otherwise.返り値
TRUE:パレットは表示されています。
FALSE:パレットは表示されてません。See Also:
SetPaletteVisibility
GetPickObjectInfo | Utility VectorWorks8.0 |
VectorScript Declaration:
FUNCTION GetPickObjectInfo
( pX :REAL; pY :REAL; VAR h :HANDLE; VAR subH :HANDLE; VAR message :INTEGER ) :BOOLEAN ; Python:
return (BOOLEAN, h, subH, message)
def vs.GetPickObjectInfo(p): Description:
Function GetPickObjectInfo returns a handle to an object found at a user selected point.
Parameter subH returns a handle to a sub-selectable object (e.g., a symbol in a wall) if such an object exists. Parameter message is currently unused, and always returns 0.
説明
指定した座標の下にある図形のハンドルを返します。座標の下にある図形が、他の図形を内包されている場合(壁に挿入されたシンボルなど)は、内包されている図形のハンドルも返します。Parameters:
p Coordinate location to test for object. 座標 h Returns handle to object. 図形のハンドル subH Returns handle to sub selectable object. 内包されている図形のハンドル message Resereved for future use. Specify a dummy INTEGER variable. 不使用(常に0が返る) Example:
WHILE NOT GetPickObjectInfo(pX,pY,hObject,hSymbol,dummyVar) DO BEGIN GetPt(pX,pY); END;See Also:
PickObject ForEachObjectAtPoint
GetPlantToolInitialized | Utility VectorWorks 2008 |
VectorScript Declaration:
FUNCTION GetPlantToolInitialized
:BOOLEAN ; Python:
return BOOLEAN
def vs.GetPlantToolInitialized(): Description:
Returns whether or not the plant tool has been initialized or not.説明
「植栽シンボル配置」ツールが初期化されているかどうかを返します。
GetPlantToolPlacementMode | Utility VectorWorks 2008 |
VectorScript Declaration:
FUNCTION GetPlantToolPlacementMode
:INTEGER ; Python:
return INTEGER
def vs.GetPlantToolPlacementMode(): Description:
This returns the current placement mode stored in the plant tool説明
「植栽シンボル配置」ツールで設定されている配置モードを返します。
GetPlantToolPlantName | Utility VectorWorks 2008 |
VectorScript Declaration:
FUNCTION GetPlantToolPlantName
:STRING ; Python:
return STRING
def vs.GetPlantToolPlantName(): Description:
Returns the name of the current plant that is stored in the plant tool.説明
「植栽シンボル配置の設定」ダイアログで設定した植栽名を返します。
GetPlantToolSpacing | Utility VectorWorks 2008 |
VectorScript Declaration:
FUNCTION GetPlantToolSpacing
:REAL ; Python:
return REAL
def vs.GetPlantToolSpacing(): Description:
This returns the spacing that is currently stored in the plant tool.説明
「植栽シンボル配置の設定」ダイアログで設定した間隔を返します。
GetProduct | Utility VectorWorks9.0 |
VectorScript Declaration:
PROCEDURE GetProduct
( VAR product :INTEGER; VAR modules :LONGINT ) ; Python:
return (product, modules)
def vs.GetProduct(): Description:
Identifies what NNA products and product packages are available in the current product installation.
Obsolete as of 10. Use GetEnabledModules instead.説明
製品番号とパッケージ番号を返します。
使用できなくなった関数/手続きです。代わりにGetEnabledModulesを使用してください。Parameters:
product Product index. 製品番号 modules Package index. パッケージ番号 See Also:
GetEnabledModules
GetPseudoIndFromDash | Utility Vectorworks 2019 |
VectorScript Declaration:
FUNCTION GetPseudoIndFromDash
( dashStyle :LONGINT; VAR outPseudoIndex :INTEGER ) :BOOLEAN ; Python:
return (BOOLEAN, outPseudoIndex)
def vs.GetPseudoIndFromDash(dashStyle): Description:
Supplies a pseudo index for a dashed style. The returned index is not guaranteed to produce the same line type from file to file, nor even in the same file if line types change.
Returns TRUE if successful.説明
破線の種類の疑似インデックスを返します。返り値のインデックスは、タイプが変更されると、ファイル間や同じファイル場でも同じ破線の種類を作成するとは限りません。
成功すると、TRUEを返します。Parameters:
dashStyle Negative internal index of a dashed line type. 破線の種類 outPseudoIndex Pseudo index (a negative number) corresponding to the dash style. The pseudo index is not guaranteed to produce the same line across files (or even in the same file if line types are changed). 擬似インデックス(負の値) See Also:
GetDashFrompseudoInd BeginMultDashConvert EndMultDashConvert
GetSavedSetting | Utility VectorWorks12.0 |
VectorScript Declaration:
FUNCTION GetSavedSetting
( category :STRING; setting :STRING; VAR value :STRING ) :BOOLEAN ; Python:
return (BOOLEAN, value)
def vs.GetSavedSetting(category, setting): Description:
Reads a value from the saved settnigs file. This can be used to remember various user settings between running sessions of Vectorworks. For example, a script may want to remember a dialog's position or a font settings. The saved settings should not be used for critical information, but rather for convenience settings.
If the settings file is lost or damaged the script should revert to a reasonable default value, and typically this would not warrant an alert dialog.説明
設定ファイル(SavedSettings.xml)から値を読み込みます。
設定ファイルはVectorWorks使用中に行った様々なユーザ設定を記憶するために使用します。
スクリプトでダイアログ位置、フォント設定などを記憶する場合に利用できます。Result:
Returns true is the requested setting is found and read from the saved settings file, false otherwise.返り値
TRUE : 読み込み成功
GetScreen | Utility MiniCAD |
VectorScript Declaration:
PROCEDURE GetScreen
( VAR x1 :INTEGER; VAR y1 :INTEGER; VAR x2 :INTEGER; VAR y2 :INTEGER ) ; Python:
return (x1, y1, x2, y2)
def vs.GetScreen(): Description:
Procedure GetScreen returns the top-left and bottom-right corners of the display screen. These values will change as different sized screens are used. This procedure can be utilized to aid in development of dialog boxes, or as a check of screen size for sizing or displaying custom dialogs.説明
モニタ画面の左上と右下の座標を返します。Parameters:
x1 Returns X coordinate of top left of screen. 画面の左上のX座標 y1 Returns Y coordinate of top left of screen. 画面の左上のY座標 x2 Returns X coordinate of bottom right of screen. 画面の右下のX座標 y2 Returns Y coordinate of bottom right of screen. 画面の右下のY座標 Example:
PROCEDURE Example; VAR x1, y1, x2, y2 :INTEGER; BEGIN GetScreen(x1, y1, x2, y2); Message(x1,' ',y1,' ',x2,' ',y2); END; RUN(Example);
GetTickCount | Utility VectorWorks8.5 |
VectorScript Declaration:
FUNCTION GetTickCount
:LONGINT ; Python:
return LONGINT
def vs.GetTickCount(): Description:
Returns number of ticks (1/60th second) since system startup.説明
システムの時間を返します。返り値
システムの時間(Tick=60分の1秒)Example:
PROCEDURE Example; VAR tick1, tick2 :LONGINT; BEGIN tick1 := GetTickCount; ForEachObject(ResetObject, (T=86)); tick2 := GetTickCount; Message('Seconds elapsed equals: ', (tick2 - tick1) / 60); END; Run(Example);
GetVersion | Utility MiniCAD7.0 |
VectorScript Declaration:
PROCEDURE GetVersion
( VAR major :INTEGER; VAR minor :INTEGER; VAR maintenance :INTEGER; VAR platform :INTEGER ) ; Python:
return (major, minor, maintenance, platform)
def vs.GetVersion(): Description:
Returns version information about the Vectorworks application. Parameter major returns the major version number of the application. Parameters minor and maintenance return minor version information. Parameter platform returns the OS platform on which Vectorworks is running (1 = Macintosh, 2 = Windows).
Vectorworks 2008 has version major number 13, 2009 - 14 and so on.
For example:
Vectorworks 8.0.1 running on a Macintosh would return:
major: 8
minor: 0
maintenance: 1
platform: 1
説明
VectorWorksのバージョンとOSの種類を返します。Parameters:
major Returns major version number of application. バージョンの整数部 minor Returns minor version number of application. バージョンの小数部 maintenance Returns maintenance version number of application. OSの種類 platform Returns platform of application. 1 : Macintosh / 2 : Windows Example:
PROCEDURE Example; VAR osMajor, osMinor, osIncr :LONGINT; appMajor, appMinor, appMaint, platform :INTEGER; platformStr :STRING; BEGIN GetVersion(appMajor, appMinor, appMaint, platform); GetOSVersion(osMajor, osMinor, osIncr); IF (platform = 1) THEN platformStr := 'MacOS' ELSE platformStr := 'Windows'; Message('Vectorworks ', appMajor, '.', appMinor, '.', appMaint, ' running on ', platformStr, ' ', osMajor, '.', osMinor, '.', osIncr); END; RUN(Example);
GetVersionEx | Utility Vectorworks 2010 |
VectorScript Declaration:
PROCEDURE GetVersionEx
( VAR major :INTEGER; VAR minor :INTEGER; VAR maintenance :INTEGER; VAR platform :INTEGER; VAR buildNum :LONGINT ) ; Python:
return (major, minor, maintenance, platform, buildNum)
def vs.GetVersionEx(): Description:
Returns version information about the Vectorworks application. Parameter major returns the major version number of the application. Parameters minor and maintenance return minor version information. Parameter platform returns the OS platform on which Vectorworks is running (1 = Macintosh, 2 = Windows).
Parameter buildNum returns the build number of the version.
Vectorworks 2008 has version major number 13, 2009 - 14 and so on.
For example:
Vectorworks 2010.0.1 running on a Macintosh would return:
major: 15
minor: 0
maintenance: 1
platform: 1
buildNum: 95668
説明
VectorWorksのバージョンとビルド番号とOSの種類を返します。Parameters:
major Returns major version number of application. メジャー minor Returns minor version number of application. マイナー maintenance Returns maintenance version number of application. 増値 platform Returns platform of application. OSの種類 buildNum Returns the build number of application. ビルド番号 Example:
PROCEDURE Example; VAR osMajor, osMinor, osIncr, buildNum :LONGINT; appMajor, appMinor, appMaint, platform :INTEGER; platformStr :STRING; BEGIN GetVersionEx(appMajor, appMinor, appMaint, platform, buildNum); GetOSVersion(osMajor, osMinor, osIncr); IF (platform = 1) THEN platformStr := 'MacOS' ELSE platformStr := 'Windows'; Message('Vectorworks ', appMajor, '.', appMinor, '.', appMaint, ' build ', buildNum, ' running on ', platformStr, ' ', osMajor, '.', osMinor, '.', osIncr); END; RUN(Example);
GetWorkingPlane | Utility VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE GetWorkingPlane
( VAR x :REAL; VAR y :REAL; VAR z :REAL; VAR xRotation :REAL; VAR yRotation :REAL; VAR zRotation :REAL ) ; Python:
return (x, y, z, xRotation, yRotation, zRotation)
def vs.GetWorkingPlane(): Description:
Retrieves the location and orientation of the working plane.説明
ワーキングプレーンの位置と方向を返します。Parameters:
x X-coordinate of the working plane X座標 y Y-coordinate of the working plane Y座標 z Z-coordinate of the working plane Z座標 xRotation X-coordinate value of the rotation X軸方向の回転角度 yRotation Y-coordinate value of the rotation Y軸方向の回転角度 zRotation Z-coordinate value of the rotation Z軸方向の回転角度 See Also:
SetWorkingPlane
GetWorkingPlaneMat | Utility Vectorworks 2011 |
VectorScript Declaration:
PROCEDURE GetWorkingPlaneMat
( refID :LONGINT; VAR outCenterPtX :REAL; VAR outCenterPtY :REAL; VAR outCenterPtZ :REAL; VAR outNormalX :REAL; VAR outNormalY :REAL; VAR outNormalZ :REAL; VAR outUVecX :REAL; VAR outUVecY :REAL; VAR outUVecZ :REAL ) ; Python:
return (outCenterPt, outNormal, outUVec)
def vs.GetWorkingPlaneMat(refID): Description:
Get the specified working plane matrix.説明
指定したワーキングプレーンマトリックスを取得します。Parameters:
refID Reference ID of the working plane. ワーキングプレーンの参照ID outCenterPt Output. The working plane center. 出力。ワーキングプレーン中心 outNormal Output. The working plane normal. 出力。ワーキングプレーン法線 outUVec Output. The U Vector of the plane. 出力。面のUベクトル。
GetWorkingPlaneN | Utility Vectorworks 2011 |
VectorScript Declaration:
PROCEDURE GetWorkingPlaneN
( VAR outCenterPtX :REAL; VAR outCenterPtY :REAL; VAR outCenterPtZ :REAL; VAR outNormalX :REAL; VAR outNormalY :REAL; VAR outNormalZ :REAL; VAR outUVecX :REAL; VAR outUVecY :REAL; VAR outUVecZ :REAL ) ; Python:
return (outCenterPt, outNormal, outUVec)
def vs.GetWorkingPlaneN(): Description:
Get the active working plane.説明
アクティブなワーキングプレーンを取得します。Parameters:
outCenterPt Output. The working plane center. 出力。ワーキングプレーン中心 outNormal Output. The working plane normal. 出力。ワーキングプレーン法線 outUVec Output. The U Vector of the plane. 出力。面のUベクトル。
ImportImageFile | Utility Vectorworks 2014 |
VectorScript Declaration:
FUNCTION ImportImageFile
( filePath :DYNARRAY[] of CHAR; importPtX :REAL; importPtY :REAL ) :HANDLE ; Python:
return HANDLE
def vs.ImportImageFile(filePath, importPt): Description:
Import the specified image file as an Image object in Vectorworks.説明
指定したイメージファイルをVectorworksのイメージ図形として取り込みます。Parameters:
filePath Full path to the image file. イメージファイルのフルパス importPt Location on which the file should be imported. ファイルが取り込まれる位置
ImportImageFileN | Utility Vectorworks 2015 |
VectorScript Declaration:
FUNCTION ImportImageFileN
( filePath :DYNARRAY[] of CHAR; importPtX :REAL; importPtY :REAL; mode :INTEGER ) :HANDLE ; Python:
return HANDLE
def vs.ImportImageFileN(filePath, importPt, mode): Description:
Import the specified image file as an Image object in Vectorworks. This function allow controlling the options when importing the image.説明
指定したイメージファイルをVectorworksのイメージ図形として取り込みます。取り込み時にオプションを設定できます。Parameters:
filePath Import file path. イメージファイルのパス importPt The import location. イメージが取り込まれる位置 mode Import mode: 0 - import using import option dialog; 1 - import using the last options. If the call was never made with option dialog, then the first time it will show the options dialog. 取り込みモード:
0 - 取り込み時にオプション設定ダイアログをひらく
1 - 最後に使用したオプション設定で取り込みを実行する。オプションが未設定の場合、取り込み時にダイアログをひらくResult:
Return the imported image handle, or NIL if the import failed.返り値
イメージ図形のハンドルを返します。 取り込みに失敗した場合はNILを返します。See Also:
ImportImageFile
InstallScriptAddPath | Utility Vectorworks 2021 |
VectorScript Declaration:
PROCEDURE InstallScriptAddPath
( fullPath:DYNARRAY[] of CHAR ) ; Python:
return None
def vs.InstallScriptAddPath(fullPath): Description:
This function can only be used doring Partner Product install script to add files, by full path, to the install memento for automatic deletion during uninstall.説明
「パートナー製品」のインストールスクリプト中でのみ使用できます。アンインストール時の自動削除用にフルパスでファイルをインストール記録に追加します。
IsCoPlanar | Utility Vectorworks 2011 |
VectorScript Declaration:
FUNCTION IsCoPlanar
( refID1 :LONGINT; refID2 :LONGINT ) :BOOLEAN ; Python:
return BOOLEAN
def vs.IsCoPlanar(refID1, refID2): Description:
Returns true if two planes are coplanar.説明
2つの平面が同一平面の場合、TRUEを返します。Parameters:
refID1 Reference ID of the first plane. 一つ目の面の参照ID refID2 Reference ID of the second plane. 二つ目の面の参照ID
IsPerpPlane | Utility Vectorworks 2011 |
VectorScript Declaration:
FUNCTION IsPerpPlane
( refID1 :LONGINT; refID2 :LONGINT ) :BOOLEAN ; Python:
return BOOLEAN
def vs.IsPerpPlane(refID1, refID2): Description:
Returns true if two planes are perpendicular.説明
2つの平面が直交している場合、TRUEを返します。Parameters:
refID1 Reference ID of the first plane. 一つ目の面の参照ID refID2 Reference ID of the second plane. 二つ目の面の参照ID
LandmarkMatchSlope | Utility Vectorworks 2016 |
VectorScript Declaration:
PROCEDURE LandmarkMatchSlope
( h :HANDLE; h3d :HANDLE; landmarkObj :HANDLE ) ; Python:
return None
def vs.LandmarkMatchSlope(h, h3d, landmarkObj): Description:
Matches slope and contour angle information of a Landmark object to the specified 3D polygon.説明
傾斜と造成図形の勾配基準線の角度を、3D多角形に合わせます。
Message | Utility MiniCAD |
VectorScript Declaration:
PROCEDURE Message
( z :ANY ) ; Python:
return None
def vs.Message(z): Description:
Procedure Message displays a floating message palette onscreen. Parameters z1 thru zN specify the values to be displayed in the palette. Parameters can be any supported data type or variables.
If Message is called and the palette is already displayed, the value in the palette will be replaced by the new information.
説明
メッセージウインドウに文字列を表示します。Example:
Message('Hello, world'); Message('The Number of objects was :',theNumber); {displays a string using the variable value}
NameUndoEvent | Utility VectorWorks8.0 |
VectorScript Declaration:
PROCEDURE NameUndoEvent
( eventName:STRING ) ; Python:
return None
def vs.NameUndoEvent(eventName): Description:
Procedure NameUndoEvent names the undo event that is currently being built by VectorScript execution. Parameter eventName is the name of the undo event.説明
スクリプトの実行開始から構築された取り消し(undo)イベントに名前をつけます。引数eventNameが取り消しイベントの名前となります。Parameters:
eventName Name of undo event. イベントの名前
ObjPropsEditDlg | Utility Vectorworks 2017 |
VectorScript Declaration:
FUNCTION ObjPropsEditDlg
( hObj:HANDLE ) :BOOLEAN ; Python:
return BOOLEAN
def vs.ObjPropsEditDlg(hObj): Description:
Show object properties edit dialog.説明
オブジェクトのプロパティを編集するダイアログを表示します。Parameters:
hObj The object which properties will be edited. オブジェクトのハンドル Result:
Return TRUE if the edit was successful.返り値
正常に編集できた場合にTrueを返します。
OpenScriptResPal | Utility Vectorworks 2014 |
VectorScript Declaration:
PROCEDURE OpenScriptResPal
( paletteName :STRING; open :BOOLEAN ) ; Python:
return None
def vs.OpenScriptResPal(paletteName, open): Description:
Open or close a script resource palette.説明
スクリプトリソースパレットを開く、あるいは閉じます。Parameters:
paletteName The script resource palette. スクリプトリソースパレット open Pass in TRUE for the palette to be opened. パレットを開くにはTRUEを渡します。 See Also:
CreateScriptResource GetScriptResource SetScriptResource
OpenURL | Utility VectorWorks10.0 |
VectorScript Declaration:
FUNCTION OpenURL
( URLname:DYNARRAY[] of CHAR ) :BOOLEAN ; Python:
return BOOLEAN
def vs.OpenURL(URLname): Description:
Opens a web page or file using the default browser or appropriate application (e.g. Adobe Acrobat). Returns a boolean indicating the success of the operation.
The URL (Uniform Resource Locator) is a pointer to a resource on the World Wide Web. It specifies both the protocol and location of the document to open. For files on the local computer, the URL should begin with file:// protocol specifier. For web pages, the URL should begin with http://. The URL should use forward slashes / to separate parts of the path.
There are some platform differences to be aware of. Windows will accept either \ or / as the path separators. MacOS X requires that file:// URLs begin with /Volumes/ before the drive name. Also, currently the MacOS X implementation of OpenURL does not accept spaces in the URL. Spaces should be replaced with the escape code %20 before calling this function.
Note: The function GetFolderPath returns a string with separators specific for the platform it is running on (: on Mac and \ on Windows). If your script calls this function to assemble a local file:// URL then you will have to replace the : separators with / characters.
説明
デフォルトブラウザやAdobe Acrobatを使ってURLを開きます。URLが開けた場合はTRUEを返します。Parameters:
URLname The Uniform Resource Locator for the web page or file to open. URL Example:
{ Open a webpage. } status := OpenURL('http://www.vectorworks.net'); { Open an HTML file on MacOS X. } status := OpenURL('file:///Volumes/MyMacXHD/Documents/My%20Files/Test.html'); { Open a PDF file in Acrobat on MacOS X. } status := OpenURL('file:///Volumes/MyMacXHD/Documents/My%20Files/VSLG11.pdf'); { Open a PDF file in Acrobat on MacOS 9. } status := OpenURL('file:///MyMac9HD/My Files/VSLG11.pdf'); { Open a PDF file in Acrobat on Windows. } status := OpenURL('file:///C:/My Files/VSLG11.pdf';
PickObject | Utility MiniCAD |
VectorScript Declaration:
FUNCTION PickObject
( pX :REAL; pY :REAL ) :HANDLE ; Python:
return HANDLE
def vs.PickObject(p): Description:
Function PickObject returns a handle to an object in the document. The function receives a coordinate location, specified by parameter p, and checks this location for the presence of an object. If an object exists at the location, the function returns a handle to the object.
説明
指定した座標の下にある図形のうち、最上位の図形のハンドルを返します。Parameters:
p Coordinate location to test for object. 座標 返り値
図形のハンドルExample:
FUNCTION UserObjectPick :HANDLE; VAR x, y :REAL; BEGIN GetPt(x, y); UserObjectPick := PickObject(x, y); END;See Also:
GetPickObjectInfo ForEachObjectAtPoint
PlanarPtTo3DModelPt | Utility Vectorworks 2011 |
VectorScript Declaration:
FUNCTION PlanarPtTo3DModelPt
( refID :LONGINT; pt2DX :REAL; pt2DY :REAL; VAR outPt3DX :REAL; VAR outPt3DY :REAL; VAR outPt3DZ :REAL ) :BOOLEAN ; Python:
return (BOOLEAN, outPt3D)
def vs.PlanarPtTo3DModelPt(refID, pt2D): Description:
Transform a 2D point on the specified plane into a 3D point.説明
指定した平面の2D座標を3D座標に変換します。Parameters:
refID Reference ID of the plane. 面の参照ID pt2D The 2D point on the specified plane. 指定の面上の2D座標 outPt3D Output. The resulted 3D point. 出力。結果の3D座標
PlanarPtToScreenPlanePt | Utility Vectorworks 2011 |
VectorScript Declaration:
FUNCTION PlanarPtToScreenPlanePt
( refID :LONGINT; pt2DX :REAL; pt2DY :REAL; VAR outPtX :REAL; VAR outPtY :REAL ) :BOOLEAN ; Python:
return (BOOLEAN, outPt)
def vs.PlanarPtToScreenPlanePt(refID, pt2D): Description:
Projects a 2D point from the specified plane onto the screen plane.説明
特定の平面上の2D座標をスクリーンプレーンに投影します。Parameters:
refID Reference ID of the plane. 面の参照ID pt2D Input the 2D point on the plane. 指定の面上の2D座標 outPt Output the 2D point on the screen. 出力。スクリーンプレーン上の2D座標
PrepRelatedObjectForChange | Utility VectorWorks12.5 |
VectorScript Declaration:
PROCEDURE PrepRelatedObjectForChange
( objectAboutToBeChange:HANDLE ) ; Python:
return None
def vs.PrepRelatedObjectForChange(objectAboutToBeChange): Description:
Prepares some other related object for a change thats about to occur.説明
行われようとしている変更に関連した図形を準備します。Parameters:
objectAboutToBeChange The object to be prepared for a change 図形のハンドル
ProgressDlgClose | Utility Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE ProgressDlgClose
; Python:
return None
def vs.ProgressDlgClose(): Description:
Close the progress dialog opened with ProgressDlgOpen.説明
進行状況ダイアログを閉じます。
ProgressDlgEnd | Utility Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE ProgressDlgEnd
; Python:
return None
def vs.ProgressDlgEnd(): Description:
End a progress context started with ProgressDlgStart. This will make the progress jump to the percentage declared when started.説明
進行度の増加を終了します。 開始時に設定した増加率だけ進行状況が推移します。
ProgressDlgHasCancel | Utility Vectorworks 2015 |
VectorScript Declaration:
FUNCTION ProgressDlgHasCancel
:BOOLEAN ; Python:
return BOOLEAN
def vs.ProgressDlgHasCancel(): Description:
Determine if the dialog has been canceled. The dialog must have cancelation enabled when created.説明
ダイアログがキャンセルされたかどうかを返します。 ダイアログ作成時にキャンセルボタンが有効になっている必要があります。
ProgressDlgOpen | Utility Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE ProgressDlgOpen
( title :STRING; canCancel :BOOLEAN ) ; Python:
return None
def vs.ProgressDlgOpen(title, canCancel): Description:
Show a progress dialog that doesn't interrupt the script. ProgressDlgClose must be used to close the dialog.説明
スクリプトの進行状況を表示するダイアログを開きます。 ダイアログを閉じるには、 ProgressDlgClose を使用します。
ProgressDlgOpenDelay | Utility Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE ProgressDlgOpenDelay
( title :STRING; canCancel :BOOLEAN; delaySec :INTEGER ) ; Python:
return None
def vs.ProgressDlgOpenDelay(title, canCancel, delaySec): Description:
Show a progress dialog that doesn't interrupt the script. The dialog will be displaed after specified dealy time (in miliseconds). ProgressDlgClose must be used to close the dialog.説明
スクリプトの進行状況を表示するダイアログを開きます。 指定した時間(ミリ秒)が経過してからダイアログが表示されます。 ダイアログを閉じるには、 ProgressDlgClose を使用します。
ProgressDlgSetBotMsg | Utility Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE ProgressDlgSetBotMsg
( message:STRING ) ; Python:
return None
def vs.ProgressDlgSetBotMsg(message): Description:
Set bottom message of a progress dialog.説明
進行状況ダイアログの下部のメッセージを設定します。
ProgressDlgSetMeter | Utility Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE ProgressDlgSetMeter
( message:STRING ) ; Python:
return None
def vs.ProgressDlgSetMeter(message): Description:
Set progress meter message of a progress dialog.説明
進行状況ダイアログのメーター部分のメッセージを設定します。
ProgressDlgSetTopMsg | Utility Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE ProgressDlgSetTopMsg
( message:STRING ) ; Python:
return None
def vs.ProgressDlgSetTopMsg(message): Description:
Set top message of a progress dialog.説明
進行状況ダイアログの上部のメッセージを設定します。
ProgressDlgStart | Utility Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE ProgressDlgStart
( Percentage :REAL; LoopCount :LONGINT ) ; Python:
return None
def vs.ProgressDlgStart(Percentage, LoopCount): Description:
Start a progress context. This defines progress percentage and loop count for ProgressDlgYield calls. LoopCount is fit in the Percentage of the progress説明
進行度の増加を開始します。 ProgressDlgYeld 呼び出し時に指定するループカウントを定義します。ループカウントにインデックスと増加率を設定します。
ProgressDlgYield | Utility Vectorworks 2015 |
VectorScript Declaration:
PROCEDURE ProgressDlgYield
( count:LONGINT ) ; Python:
return None
def vs.ProgressDlgYield(count): Description:
Increases the progress. This must be called between ProgressDlgStart and ProgressDlgEnd and defines the LoopCount index.説明
インデックスで指定したループカントにより進行度を増加させます。 ProgressDlgStart と ProgressDlgEnd の間で呼ばれます。
PythonBeginContext | Utility Vectorworks 2014 |
VectorScript Declaration:
PROCEDURE PythonBeginContext
; Python:
return None
def vs.PythonBeginContext(): Description:
This function creates a context in which PythonExecute scripts are run.
This function consecutive python scripts to be executed inside the same python environment.説明
この関数はPythonExecuteスクリプトが実行されるコンテキストを作成します。
あとに実行されるPythonスクリプトが同じPython環境で実行されるようにします。.See Also:
PythonExecute PythonEndContext
PythonEndContext | Utility Vectorworks 2014 |
VectorScript Declaration:
PROCEDURE PythonEndContext
; Python:
return None
def vs.PythonEndContext(): Description:
Closes python context previously opened with PythonBeginContext.説明
PythonBeginContextで開いたPythonコンテキストを閉じます。See Also:
PythonBeginContext
PythonExecute | Utility Vectorworks 2014 |
VectorScript Declaration:
PROCEDURE PythonExecute
( script:DYNARRAY[] of CHAR ) ; Python:
return None
def vs.PythonExecute(script): Description:
Execute the given python script.
You can use 'include' in python to run additional code in python files. However, before you execute the script make sure the python file are foundable through the PythonGetSearchPath. Use PythonSetSearchPath to change it.
Scripts executed via this function should not contain User Interactive functions like GetPt for example.説明
与えられたPythonスクリプトを実行します。
Pythonで'include'を用いて追加のコードを実行できます。スクリプトを実行する前に、PythonGetSearchPathでPythonファイルが探せることを確認しておくこと。PythonSetSearchPathで変更できる。
例えばGetPtのように、この関数で実行するスクリプトにはユーザー操作を伴う関数を使ってはいけません。Parameters:
script The script to be executed. 実行するスクリプト See Also:
PythonGetSearchPath PythonSetSearchPath
PythonGetSearchPath | Utility Vectorworks 2014 |
VectorScript Declaration:
FUNCTION PythonGetSearchPath
:DYNARRAY[] of CHAR ; Python:
return DYNARRAY of CHAR
def vs.PythonGetSearchPath(): Description:
Return the search path for python files.説明
Pythonファイルの検索パスを返します。Result:
The result is a string of semicolon delimited paths. The path it similar to the 'Open' function path parameter.返り値
複数のパスをセミコロンで区切って返します。Open関数の引数のパスと同様のパスです。See Also:
PythonSetSearchPath PythonExecute
PythonSetSearchPath | Utility Vectorworks 2014 |
VectorScript Declaration:
PROCEDURE PythonSetSearchPath
( pathList:DYNARRAY[] of CHAR ) ; Python:
return None
def vs.PythonSetSearchPath(pathList): Description:
Set the search path for python files.説明
Pythonファイルの検索パスを設定します。Parameters:
pathList A string of semicolon delimited paths. The path it similar to the 'Open' function path parameter. 複数のパスをセミコロンで区切った文字列を渡します。Open関数の引数のパスと同様のパスです。 See Also:
PythonGetSearchPath PythonExecute
ReDraw | Utility MiniCAD |
VectorScript Declaration:
PROCEDURE ReDraw
; Python:
return None
def vs.ReDraw(): Description:
Procedure ReDraw invokes a screen redraw of newly created objects in the active Vectorworks document. If new objects are to be manipulated using procedures which operate on selected objects, a call to ReDraw should precede the selected object routines to ensure that all new objects are correctly identified.
説明
直前に作成または変更された図形を再描画します。
ReDrawAll | Utility MiniCAD |
VectorScript Declaration:
PROCEDURE ReDrawAll
; Python:
return None
def vs.ReDrawAll(): Description:
Procedure ReDrawAll invokes a full screen redraw of the active Vectorworks document. ReDrawAll is used when the document view needs to be refreshed prior to additional operation being performed in the document.
説明
すべての図形を再描画します。
RedrawSelection | Utility Vectorworks 2010 |
VectorScript Declaration:
PROCEDURE RedrawSelection
; Python:
return None
def vs.RedrawSelection(): Description:
This will update selection indication without redrawing the drawing.説明
選択されている図形を再描画します。
RefreshResManager | Utility Vectorworks 2025 |
VectorScript Declaration:
PROCEDURE RefreshResManager
( updateVWLibs :BOOLEAN; updateUserLibs :BOOLEAN; updateWGLibs :BOOLEAN; updateFavs :BOOLEAN; UpdateOnlineLibs :BOOLEAN ) ; Python:
return REAL
def vs.RefreshResManager(updateVWLibs, updateUserLibs, updateWGLibs, updateFavs, UpdateOnlineLibs): Description:
Procedure RefreshResManager updates the Resource manager palette. It refreshes Libraries specified by the parameters.説明
リソースマネージャパレットを更新します。パラメータで指定したライブラリを更新します。Parameters:
updateVWLibs Update Vectorworks libraries. Vectorworksライブラリの更新 updateUserLibs Update User libraries. ユーザーライブラリの更新 updateWGLibs Update Workgroups libraries. ワークグループライブラリの更新 updateFavs Update Favorites. お気に入りの更新 UpdateOnlineLibs Update Vectorworks online libraries. Vectorworksオンラインライブラリの更新
ResetObject | Utility VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE ResetObject
( objectHandle:HANDLE ) ; Python:
return None
def vs.ResetObject(objectHandle): Description:
Update the specified object using the current settings and parameter values. This will reset the bounding box of the object. If the object is in a wall, then the wall is reset also.
An object of any type may be passed to this function to have its boundary reset. The following object types will be reset in a way that is appropriate for each type: Plug-in Object, Symbol Definition, Wall, Roof Container, Bitmap, Picture, Dimension, Extrude, Multiple Extrude, Sweep, Polygon, Polyline, Worksheet.説明
現在の設定やパラメータの値を使って指定した図形を更新します。図形のバウンドボックスをリセットします。壁の中の図形であれば、壁もリセットします。
以下の図形タイプはそれぞれのタイプに適当なバウンドボックスにリセットされます。
プラグインオブジェクト、シンボル、壁、屋根、ビットマップ、絵、寸法、柱状体、多段柱状体、スイープ、多角形、曲線、ワークシートParameters:
objectHandle Handle to the object to be reset. 図形のハンドル
RGBToColorIndex | Utility MiniCAD6.0 |
VectorScript Declaration:
PROCEDURE RGBToColorIndex
( red :LONGINT; green :LONGINT; blue :LONGINT; VAR color :INTEGER ) ; Python:
return color
def vs.RGBToColorIndex(red, green, blue): Description:
Procedure RGBToColorIndex converts the Vectorworks palette colors from its' red, green, and blue component values to the colors' palette position index. Parameters red, green, and blue return the color components of the swatch, and parameter color is the palette position ID of the color swatch. RGB values are in the range of 0~65535.
A color table listing with associated index values can be found in the Appendix.
説明
各色の成分に一番近いカラーパレットの色番号を返します。値の範囲は0から65535までです。Parameters:
red RGB color component value. 赤の成分 green RGB color component value. 緑の成分 blue RGB color component value. 青の成分 color Color index. 色番号 Example:
PROCEDURE Example; VAR red, green, blue :LONGINT; colorIndex :INTEGER; BEGIN GetPenFore(FSActLayer, red, green, blue); RGBToColorIndex(red, green, blue, colorIndex); Message(colorIndex); END; RUN(Example);
RGBToColorIndexN | Utility Vectorworks 2010 |
VectorScript Declaration:
PROCEDURE RGBToColorIndexN
( red :LONGINT; green :LONGINT; blue :LONGINT; VAR color :INTEGER; ignoreBlackBackground :BOOLEAN ) ; Python:
return color
def vs.RGBToColorIndexN(red, green, blue, ignoreBlackBackground): Description:
Procedure RGBToColorIndexN converts the Vectorworks palette colors from its' red, green, and blue component values to the Vectorworks color index. Parameters red, green, and blue return the color components of the swatch, and parameter color is the Vectorworks color index. RGB values are in the range of 0~65535. Parameter ignoreBlackBackground specifies whether the black background preference should be ignored. If set to TRUE, black and white indexes will not be inverted in black background.
A color table listing with associated index values can be found in the Appendix.説明
各色の成分に一番近いカラーパレットの色番号を返します。値の範囲は0から65535までです。ignoreBlackBackgroundパラメータは背景色を黒にする設定を無視するか否かを設定します。TRUEに設定すると、白と黒のインデックスは背景色が黒であっても逆にされません。
A color table listing with associated index values can be found in the Appendix.Parameters:
red RGB color component value. 赤の成分 green RGB color component value. 緑の成分 blue RGB color component value. 青の成分 color Color index. 色番号 ignoreBlackBackground Ignore black background preference setting or not. 背景色を黒にする設定を無視する設定 Example:
PROCEDURE Example; VAR red, green, blue :LONGINT; colorIndex :INTEGER; BEGIN GetPenFore(FSActLayer, red, green, blue); RGBToColorIndexN(red, green, blue, colorIndex, TRUE); Message(colorIndex); END; RUN(Example)
Rpstr_GetValueBool | Utility Vectorworks 2012 |
VectorScript Declaration:
FUNCTION Rpstr_GetValueBool
( name :STRING; defaultValue :BOOLEAN ) :BOOLEAN ; Python:
return BOOLEAN
def vs.Rpstr_GetValueBool(name, defaultValue): Description:
Get a boolean value from the VectorScript value repository.説明
VectorScriptのリポジトリからブール値を取得します。Parameters:
name The name of the value. 値の名前 defaultValue Default value if the name does not exist in the VectorScript value repository. デフォルト名が存在していない場合、デフォルトはリポジトリの値。 See Also:
Rpstr_RemoveValues Rpstr_RemoveValue Rpstr_GetValueBool Rpstr_SetValueBool Rpstr_GetValueInt Rpstr_SetValueInt Rpstr_GetValueReal Rpstr_SetValueReal Rpstr_GetValueStr Rpstr_SetValueStr
Rpstr_GetValueInt | Utility Vectorworks 2012 |
VectorScript Declaration:
FUNCTION Rpstr_GetValueInt
( name :STRING; defaultValue :INTEGER ) :INTEGER ; Python:
return INTEGER
def vs.Rpstr_GetValueInt(name, defaultValue): Description:
Get an integer value from the VectorScript value repository.説明
VectorScriptのリポジトリから整数値を取得します。Parameters:
name The name of the value. 値の名前 defaultValue Default value if the name does not exist in the VectorScript value repository. デフォルト名が存在していない場合、デフォルトはリポジトリの値。 See Also:
Rpstr_RemoveValues Rpstr_RemoveValue Rpstr_GetValueBool Rpstr_SetValueBool Rpstr_GetValueInt Rpstr_SetValueInt Rpstr_GetValueReal Rpstr_SetValueReal Rpstr_GetValueStr Rpstr_SetValueStr
Rpstr_GetValueReal | Utility Vectorworks 2012 |
VectorScript Declaration:
FUNCTION Rpstr_GetValueReal
( name :STRING; defaultValue :REAL ) :REAL ; Python:
return REAL
def vs.Rpstr_GetValueReal(name, defaultValue): Description:
Get a real value from the VectorScript value repository.説明
VectorScriptのリポジトリからREAL型の値を取得します。Parameters:
name The name of the value. 値の名前 defaultValue Default value if the name does not exist in the VectorScript value repository. デフォルト名が存在していない場合、デフォルトはリポジトリの値。 See Also:
Rpstr_RemoveValues Rpstr_RemoveValue Rpstr_GetValueBool Rpstr_SetValueBool Rpstr_GetValueInt Rpstr_SetValueInt Rpstr_GetValueReal Rpstr_SetValueReal Rpstr_GetValueStr Rpstr_SetValueStr
Rpstr_GetValueStr | Utility Vectorworks 2012 |
VectorScript Declaration:
FUNCTION Rpstr_GetValueStr
( name :STRING; defaultValue :DYNARRAY[] of CHAR ) :DYNARRAY[] of CHAR ; Python:
return DYNARRAY of CHAR
def vs.Rpstr_GetValueStr(name, defaultValue): Description:
Get a string value from the VectorScript value repository.説明
VectorScriptのリポジトリからの文字列値を取得します。Parameters:
name The name of the value. 値の名前 defaultValue Default value if the name does not exist in the VectorScript value repository. デフォルト名が存在していない場合、デフォルトはリポジトリの値。 See Also:
Rpstr_RemoveValues Rpstr_RemoveValue Rpstr_GetValueBool Rpstr_SetValueBool Rpstr_GetValueInt Rpstr_SetValueInt Rpstr_GetValueReal Rpstr_SetValueReal Rpstr_GetValueStr Rpstr_SetValueStr
Rpstr_RemoveValue | Utility Vectorworks 2012 |
VectorScript Declaration:
FUNCTION Rpstr_RemoveValue
( name:STRING ) :BOOLEAN ; Python:
return BOOLEAN
def vs.Rpstr_RemoveValue(name): Description:
Removes a named value from the VectorScript value repository.説明
VectorScriptのリポジトリから名前付きの値を削除します。Parameters:
name The name of the value. 値の名前 Result:
Return true if the value was found and removed.返り値
値が見つかり、削除された場合はtrueを返します。See Also:
Rpstr_RemoveValues Rpstr_RemoveValue Rpstr_GetValueBool Rpstr_SetValueBool Rpstr_GetValueInt Rpstr_SetValueInt Rpstr_GetValueReal Rpstr_SetValueReal Rpstr_GetValueStr Rpstr_SetValueStr
Rpstr_RemoveValues | Utility Vectorworks 2012 |
VectorScript Declaration:
PROCEDURE Rpstr_RemoveValues
; Python:
return None
def vs.Rpstr_RemoveValues(): Description:
Removes all values from the VectorScript value repository.説明
VectorScriptのリポジトリからすべての値を削除します。See Also:
Rpstr_RemoveValues Rpstr_RemoveValue Rpstr_GetValueBool Rpstr_SetValueBool Rpstr_GetValueInt Rpstr_SetValueInt Rpstr_GetValueReal Rpstr_SetValueReal Rpstr_GetValueStr Rpstr_SetValueStr
Rpstr_SetValueBool | Utility Vectorworks 2012 |
VectorScript Declaration:
PROCEDURE Rpstr_SetValueBool
( name :STRING; value :BOOLEAN ) ; Python:
return None
def vs.Rpstr_SetValueBool(name, value): Description:
Set a boolean value from the VectorScript value repository.説明
VectorScriptのリポジトリからブール値を設定します。Parameters:
name The name of the value. 値の名前 value Set a value associated with the name in the VectorScript value repository. VectorScriptのリポジトリ名に関連付けられた値を設定します。 See Also:
Rpstr_RemoveValues Rpstr_RemoveValue Rpstr_GetValueBool Rpstr_SetValueBool Rpstr_GetValueInt Rpstr_SetValueInt Rpstr_GetValueReal Rpstr_SetValueReal Rpstr_GetValueStr Rpstr_SetValueStr
Rpstr_SetValueInt | Utility Vectorworks 2012 |
VectorScript Declaration:
PROCEDURE Rpstr_SetValueInt
( name :STRING; value :INTEGER ) ; Python:
return None
def vs.Rpstr_SetValueInt(name, value): Description:
Set an integer value from the VectorScript value repository.説明
VectorScriptのリポジトリから整数値を設定します。Parameters:
name The name of the value. 値の名前 value Set a value associated with the name in the VectorScript value repository. VectorScriptのリポジトリの名前に関連付けられた値を設定します。 See Also:
Rpstr_RemoveValues Rpstr_RemoveValue Rpstr_GetValueBool Rpstr_SetValueBool Rpstr_GetValueInt Rpstr_SetValueInt Rpstr_GetValueReal Rpstr_SetValueReal Rpstr_GetValueStr Rpstr_SetValueStr
Rpstr_SetValueReal | Utility Vectorworks 2012 |
VectorScript Declaration:
PROCEDURE Rpstr_SetValueReal
( name :STRING; value :REAL ) ; Python:
return None
def vs.Rpstr_SetValueReal(name, value): Description:
Set a real value from the VectorScript value repository.説明
VectorScriptのリポジトリからREAL型の値を設定します。Parameters:
name The name of the value. 値の名前 value Set a value associated with the name in the VectorScript value repository. VectorScriptのリポジトリの名前に関連付けられた値を設定します。 See Also:
Rpstr_RemoveValues Rpstr_RemoveValue Rpstr_GetValueBool Rpstr_SetValueBool Rpstr_GetValueInt Rpstr_SetValueInt Rpstr_GetValueReal Rpstr_SetValueReal Rpstr_GetValueStr Rpstr_SetValueStr
Rpstr_SetValueStr | Utility Vectorworks 2012 |
VectorScript Declaration:
PROCEDURE Rpstr_SetValueStr
( name :STRING; value :DYNARRAY[] of CHAR ) ; Python:
return None
def vs.Rpstr_SetValueStr(name, value): Description:
Set a string value from the VectorScript value repository.説明
VectorScriptのリポジトリからの文字列を設定します。Parameters:
name The name of the value. 値の名前 value Set a value associated with the name in the VectorScript value repository. VectorScriptのリポジトリの名前に関連付けられた値を設定します。 See Also:
Rpstr_RemoveValues Rpstr_RemoveValue Rpstr_GetValueBool Rpstr_SetValueBool Rpstr_GetValueInt Rpstr_SetValueInt Rpstr_GetValueReal Rpstr_SetValueReal Rpstr_GetValueStr Rpstr_SetValueStr
RunImageComp | Utility Vectorworks 2020 |
VectorScript Declaration:
PROCEDURE RunImageComp
( FilePath :STRING; savedView :STRING; SettingsDir :STRING; imageWidth :INTEGER; imageHeight :INTEGER ) ; Python:
return BOOLEAN
def vs.RunImageComp(FilePath, savedView, SettingsDir, imageWidth, imageHeight): Parameters:
FilePath This is the file path to the test file ファイルパス savedView The name of the saved view test ビューテストの名前 SettingsDir The path to the directory where the settings.csv file is 設定ファイル(settings.csv)のフォルダのパス imageWidth The width in pixels of the image this function will save of the saved view. This should be close to the width of the reference image. ビューを保存する画像のピクセル単位の幅 imageHeight The height in pixels of the image this function will save of the saved view. This should be close to the height of the reference image. ビューを保存する画像のピクセル単位の高さ
ScreenPlanePtToPlanarPt | Utility Vectorworks 2011 |
VectorScript Declaration:
PROCEDURE ScreenPlanePtToPlanarPt
( refID :LONGINT; pt2DX :REAL; pt2DY :REAL; VAR outPtX :REAL; VAR outPtY :REAL ) ; Python:
return outPt
def vs.ScreenPlanePtToPlanarPt(refID, pt2D): Description:
Projects a 2D point from the screen plane onto the specified plane.説明
スクリーンプレーン上の2D座標を特定の平面上に投影します。Parameters:
refID Reference ID of the plane. 面の参照ID pt2D Input the 2D point on the screen. スクリーンプレーン上の2D座標 outPt Output the 2D point on the plane. 出力。指定の面上の2D座標
SetCallBackInval | Utility Vectorworks 2014 |
VectorScript Declaration:
PROCEDURE SetCallBackInval
( turnInvalOn:BOOLEAN ) ; Python:
return None
def vs.SetCallBackInval(turnInvalOn): Description:
Sets whether or not callbacks should be invalidating portions of the screen that are being changed. This should be used if you need to create temporary objects for calculation purposes and do not want the screen to be redrawn as a result説明
コールバック関数による画面の更新を無効にするかどうかを設定します。計算のために一時的なオブジェクトを作ったときに、画面の更新をしたくない場合に使われます。
SetCurrentObject | Utility MiniCAD4.0 |
VectorScript Declaration:
PROCEDURE SetCurrentObject
( h:HANDLE ) ; Python:
return None
def vs.SetCurrentObject(h): Description:
Procedure SetCurrentObject sets the referenced object to be the current object of the document. The current object is defined as the last object created, and can be referenced by LNewObj.
説明
ハンドルで指定した図形を、最後に作成された図形とします。Parameters:
h Handle to object. 図形のハンドル
SetDrawingRect | Utility VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE SetDrawingRect
( paperWidth :REAL; paperHeight :REAL ) ; Python:
return None
def vs.SetDrawingRect(paperWidth, paperHeight): Description:
Sets the size of the drawing rectangle.説明
用紙の大きさを設定します。Parameters:
paperWidth The width of the drawing rectangle ヨコ paperHeight The height of the drawing rectangle タテ
SetMaximumUndoEvents | Utility VectorWorks8.0 |
VectorScript Declaration:
PROCEDURE SetMaximumUndoEvents
( events:INTEGER ) ; Python:
return None
def vs.SetMaximumUndoEvents(events): Description:
Procedure SetMaximumUndoEvents sets the maximum number of undo events that can be stored in the undo table. Parameter events specifies the number of undos. Setting this value to zero effectively turns off undo.説明
取り消し可能な回数を設定します。Parameters:
events Number of undo events to store. 記憶回数
SetModeString | Utility Vectorworks 2014 |
VectorScript Declaration:
PROCEDURE SetModeString
( messageStr:STRING ) ; Python:
return None
def vs.SetModeString(messageStr): Description:
Sets the mode string to the given parameter説明
モード文字列を設定します。
SetPaletteVisibility | Utility VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE SetPaletteVisibility
( paletteName :STRING; vis :BOOLEAN ) ; Python:
return None
def vs.SetPaletteVisibility(paletteName, vis): Description:
Sets the visibility state of a palette.説明
パレットの表示/非表示を設定します。Parameters:
paletteName Name of the palette パレットの名前 vis True if the palette should be visible, false otherwise パレットの設定(TRUE:表示/TRUE:非表示) See Also:
GetPaletteVisibility
SetPlanarTransform | Utility Vectorworks 2016 |
VectorScript Declaration:
FUNCTION SetPlanarTransform
( h:HANDLE ) :HANDLE ; Python:
return HANDLE
def vs.SetPlanarTransform(h): Description:
Get planar matrix and transform polygon points.説明
平面マトリックスを取得し、多角形の頂点を移動します。
SetSavedSetting | Utility VectorWorks12.0 |
VectorScript Declaration:
PROCEDURE SetSavedSetting
( category :STRING; setting :STRING; value :STRING ) ; Python:
return None
def vs.SetSavedSetting(category, setting, value): Description:
Writes a value to the saved settings file. This can be used to remember various user settings between running sessions of Vectorworks. For example, a script may want to remember a dialog's position or a font settings. The saved settings should not be used for critical information, but rather for convenience settings.説明
設定ファイル(SavedSettings.xml)に値を書き込みます。
設定ファイルはVectorWorks使用中に行った様々なユーザ設定を記憶するために使用します。
スクリプトでダイアログ位置、フォント設定などを記憶する場合に利用できます。
SetToolByIndex | Utility Vectorworks 2014 |
VectorScript Declaration:
FUNCTION SetToolByIndex
( toolIndex:INTEGER ) :BOOLEAN ; Python:
return BOOLEAN
def vs.SetToolByIndex(toolIndex): Description:
Similar to SetTool. Takes the internal ID of a tool.説明
SetToolと同様。ツールの内部IDを引数にとる。
SetToolByName | Utility Vectorworks 2014 |
VectorScript Declaration:
FUNCTION SetToolByName
( toolName:STRING ) :BOOLEAN ; Python:
return BOOLEAN
def vs.SetToolByName(toolName): Description:
Similar to SetTool, but takes name rather than ID. Supports plug-in tools (but not yet internal tools).説明
SetToolと同様。IDではなく名前を引数にとる。プラグインツールに対応(内部ツールは未対応)。
SetToolWithMode | Utility Vectorworks 2016 |
VectorScript Declaration:
PROCEDURE SetToolWithMode
( toolIndex :INTEGER; modeGroup :LONGINT; modeButton :LONGINT ) ; Python:
return None
def vs.SetToolWithMode(toolIndex, modeGroup, modeButton): Description:
Activates the specified Vectorworks tool for use with specified tool mode. The tool remains selected as the active tool after use.説明
ツールパレットからツールをモードを指定して選択します。ツールが使われた後も、そのツールを選択したままにします。Parameters:
toolIndex Vectorworks tool constant. ツール番号 modeGroup Index of the mode group. モードの番号 modeButton Index of the button in the group. ボタンの番号
SetWorkingPlane | Utility VectorWorks10.0 |
VectorScript Declaration:
PROCEDURE SetWorkingPlane
( x :REAL; y :REAL; z :REAL; xRotation :REAL; yRotation :REAL; zRotation :REAL ) ; Python:
return None
def vs.SetWorkingPlane(x, y, z, xRotation, yRotation, zRotation): Description:
Sets the x, y, and z offset of the working plane as well as the x-, y-, and z-plane rotational values.説明
ワーキングプレーンのx,y,zオフセット値とx,y,z平面の回転角度を設定します。Parameters:
x X-coordinate of the working plane X座標 y Y-coordinate of the working plane Y座標 z Z-coordinate of the working plane Z座標 xRotation X-coordinate of the rotation X軸方向の回転角度 yRotation Y-coordinate of the rotation Y軸方向の回転角度 zRotation Z-coordinate of the rotation Z軸方向の回転角度 See Also:
GetWorkingPlane
SetWorkingPlaneN | Utility Vectorworks 2011 |
VectorScript Declaration:
PROCEDURE SetWorkingPlaneN
( centerPtX :REAL; centerPtY :REAL; centerPtZ :REAL; normalX :REAL; normalY :REAL; normalZ :REAL; uVecX :REAL; uVecY :REAL; uVecZ :REAL ) ; Python:
return None
def vs.SetWorkingPlaneN(centerPt, normal, uVec): Description:
Set the active working plane.説明
アクティブなワーキングプレーンを設定します。Parameters:
centerPt Location of the working plane. ワーキングプレーンの位置 normal Normal vector of the working plane. ワーキングプレーンの法線ベクトル uVec The U Vector of the plane. 面のUベクトル
ShowWebDlg | Utility Vectorworks 2019 |
VectorScript Declaration:
PROCEDURE ShowWebDlg
( title :STRING; url :STRING; buttonText :STRING; contextualHelpID :STRING ) ; Python:
return None
def vs.ShowWebDlg(title, url, buttonText, contextualHelpID): Description:
Display a web view dialog. Provide empty button name to have the button invisible.説明
Webブラウザダイアログボックスを表示します。ボタンを非表示にする場合は、ボタン名を空欄にします。
SortArray | Utility VectorWorks9.0 |
VectorScript Declaration:
PROCEDURE SortArray
( VAR arraytosort :ARRAY; numtosort :INTEGER; fieldnumber :INTEGER ) ; Python:
return arraytosort
def vs.SortArray(numtosort, fieldnumber): Description:
Sorts a 1-dimension array into ascending order. If the array contains handles to records, the array can be sorted by the specified field number index. If the array is an array of structures, the fieldnumber argument denotes the element in the structure on which to sort.説明
指定した1次配列を並び替え(ソート)します。配列がレコードのハンドルの場合、指定したフィールド番号で並び替え(ソート)します。配列が構造体の配列の場合、fieldnumber には並び替え(ソート)する構造体の要素を設定します。
SysBeep | Utility MiniCAD |
VectorScript Declaration:
PROCEDURE SysBeep
; Python:
return None
def vs.SysBeep(): Description:
Procedure SysBeep uses the current system prompt sound to alert the user.
説明
警告音を鳴らします。
TBB_AttachRecords | Utility Vectorworks 2019 |
VectorScript Declaration:
PROCEDURE TBB_AttachRecords
( VAR TitleBlockBorder:HANDLE ) ; Python:
return TitleBlockBorder
def vs.TBB_AttachRecords(): Description:
Attach Project, Sheet, Revision and Issue Records説明
図面枠にProjectレコード、Sheetレコード、Revisionレコード、Issueレコードを割り当てます。
TBB_GetPageArea | Utility Vectorworks 2019.1 |
VectorScript Declaration:
PROCEDURE TBB_GetPageArea
( LayerHand :HANDLE; VAR PageWidth :REAL; VAR PageHeight :REAL ) ; Python:
return (PageWidth, PageHeight)
def vs.TBB_GetPageArea(LayerHand): Description:
Gets the page area of the selected layer in inches説明
選択したレイヤのページ領域をインチ単位で取得します。
TBB_OpenTBBSelDlg | Utility Vectorworks 2019 |
VectorScript Declaration:
PROCEDURE TBB_OpenTBBSelDlg
( VAR StyleName :STRING; VAR SheetSize :STRING; VAR TBWidth :REAL; VAR TBHeight :REAL ) ; Python:
return (StyleName, SheetSize, TBWidth, TBHeight)
def vs.TBB_OpenTBBSelDlg(StyleName, SheetSize, TBWidth, TBHeight): Description:
Open Title Block Border Selection Dialog説明
図面枠選択ダイアログボックスを開きます。
TBB_UpdateOldBorders | Utility Vectorworks 2018 |
VectorScript Declaration:
PROCEDURE TBB_UpdateOldBorders
( VAR NumUpdated:INTEGER ) ; Python:
return NumUpdated
def vs.TBB_UpdateOldBorders(): Description:
Updates Drawing Border - Universal and VAA Title Block objects to Title Block Border objects.説明
旧図面枠を新しい図面枠に変換します。
TBB_UpdateOldVAATB | Utility Vectorworks 2019 |
VectorScript Declaration:
PROCEDURE TBB_UpdateOldVAATB
; Python:
return None
def vs.TBB_UpdateOldVAATB(): Description:
VAA Title Block objects to Title Block Border objects.説明
旧VAA表題欄オブジェクトを図面枠オブジェクトに更新します。
UndoOff | Utility VectorWorks8.0 |
VectorScript Declaration:
PROCEDURE UndoOff
; Python:
return None
def vs.UndoOff(): Description:
Procedure UndoOff clears the undo table and suspends undo for the remainder of the VectorScript procedure. The undo system resumes after the procedure is completed.説明
記録している取り消し操作をすべて破棄し、以降のスクリプト実行について取り消し操作を記録しない。関数の実行後取り消し(undo)システムは元に戻ります。
UpdatePIOFromStyle | Utility Vectorworks 2021 |
VectorScript Declaration:
PROCEDURE UpdatePIOFromStyle
( VAR pioHandle:HANDLE ) ; Python:
return pioHandle
def vs.UpdatePIOFromStyle(): Description:
Updates the given plugin object from its style, if it has any.説明
スタイルを使用してプラグインオブジェクトを更新します。
ValidAngStr | Utility MiniCAD |
VectorScript Declaration:
FUNCTION ValidAngStr
( str :STRING; VAR value :REAL ) :BOOLEAN ; Python:
return (BOOLEAN, value)
def vs.ValidAngStr(str): Description:
Function ValidAngStr returns TRUE if the specified value can be converted into a numeric angle value. If TRUE, the value (in decimal degrees) of the string is returned.
説明
文字列を角度に変換します。変換できた場合はTRUEを返します。Parameters:
str String value to be checked for angle validity. 文字列 value Returns numeric angle value converted from input string. 角度 Result:
Returns TRUE if the specified string can be converted into a angle value.返り値
変換できた場合はTRUEを返します。Example:
PROCEDURE Example; VAR str :STRING; value :REAL; BEGIN str := StrDialog('Enter the angle:', 'N10E'); IF ValidAngStr(str, value) THEN Message(value); END; RUN(Example);
ValidNumStr | Utility MiniCAD |
VectorScript Declaration:
FUNCTION ValidNumStr
( str :STRING; VAR value :REAL ) :BOOLEAN ; Python:
return (BOOLEAN, value)
def vs.ValidNumStr(str): Description:
Function ValidNumStr returns TRUE if the specified string can be converted into a numeric value. If TRUE, the numeric value is returned.説明
文字列を数値に変換します。変換できた場合はTRUEを返します。Parameters:
str String value to be checked for numeric validity. 文字列 value Numeric value converted from input string. 数値 Result:
Returns TRUE if specified string can be converted into a numeric value.返り値
変換できた場合はTRUEを返します。Example:
CASE Item OF {// OK Button //} 1:BEGIN IF ValidNumStr(GetField(4),value) THEN BEGIN Done:=TRUE; replaceValue:= GetField(6); IF ItemSel(9) THEN textMode:=2; IF ItemSel(10) THEN textMode:=4; IF ItemSel(11) THEN textMode:=8; IF ItemSel(12) THEN layerMode:=16; IF ItemSel(13) THEN layerMode:=32; IF ItemSel(14) THEN caseMode:=1; END ELSE SysBeep; END;
VerifyLibraryRoutine | Utility VectorWorks9.0 |
VectorScript Declaration:
FUNCTION VerifyLibraryRoutine
( routineName:STRING ) :BOOLEAN ; Python:
return BOOLEAN
def vs.VerifyLibraryRoutine(routineName): Description:
Verifies that a procedure or function call located in a VectorScript extension is registered and available for use in scripts.
Call this function prior to using any call located in a VectorScript extension to ensure successful use of the call in a script.
(A VectorScript extension is also known as an SDK Plug-in Library. It is a plug-in that is developed using the Vectorworks SDK and the C++ language. When installed in the Plug-ins folder it provides functions that may be called from VectorScript. The VerifyLibraryRoutine function allows the script to determine if the function is available.)説明
指定した名前の外部関数が有効の場合はTRUEを返します。
(VectorScript はSDKプラグインライブラリを使用することで拡張できます。プラグインライブラリはVectorWorks SDKと言語C++で開発します。プラグインライブラリをPlug-insフォルダに入れるとVectorScriptから関数/手続きをコールすることができます。VerifyLibraryRoutineは関数/手続きが有効かどうか調べることができます。)Parameters:
routineName Name of function call to be verified. 関数/手続き名 Result:
Returns TRUE if the call is available, otherwise returns FALSE.返り値
有効の場合はTRUEを返します。無効の場合はFALSEを返します。
Wait | Utility MiniCAD |
VectorScript Declaration:
PROCEDURE Wait
( seconds:INTEGER ) ; Python:
return None
def vs.Wait(seconds): Description:
Procedure Wait delays execution in VectorScript for a specified number of seconds.
When paused, a VectorScript routine stops at the point where Wait is encountered.
説明
指定した秒数が経過するまで、プログラムを停止します。Parameters:
seconds Number of seconds to pause script execution. 秒数 Example:
Wait(3); {pauses execution for 3 seconds}
WebDlgEnableConsole | Utility Vectorworks 2019 |
VectorScript Declaration:
PROCEDURE WebDlgEnableConsole
( enable:BOOLEAN ) ; Python:
return None
def vs.WebDlgEnableConsole(enable): Description:
Enable web dialog console logging file. File located at: <user folder>/Plug-ins/ChromiumEF/WebBrowser_Console_Output.txt説明
Webブラウザダイアログボックスのコンソールログファイルを有効にします。
ログファイルの場所: <
ユーザフォルダ>/Plug-ins/ChromiumEF/WebBrowser_Console_Output.txt