Angle2Str | Strings Vectorworks 2014 |
VectorScript Declaration:
FUNCTION Angle2Str
( value:REAL ) :STRING ; Python:
return STRING
def vs.Angle2Str(value): Description:
Convert an angle value from a real number to a string using the current document formatting.説明
現在のファイルの設定を用いて、角度値を実数から文字列に変換します。Parameters:
value The angle value. 角度値
Area2Str | Strings Vectorworks 2014 |
VectorScript Declaration:
FUNCTION Area2Str
( value:REAL ) :STRING ; Python:
return STRING
def vs.Area2Str(value): Description:
Convert an area value from a real number to a string using the current document formatting.説明
現在のファイルの設定を用いて、面積値を実数から文字列に変換します。Parameters:
value The area value. 面積値
Chr | Strings MiniCAD |
VectorScript Declaration:
FUNCTION Chr
( v:INTEGER ) :CHAR ; Python:
return CHAR
def vs.Chr(v): Description:
Function Chr returns the ASCII character corresponding to the specified numeric code. The ASCII code value must be between 1 and 255.
説明
指定したASCIIコードのキャラクタを返します。ASCIIコードの値の範囲は1から255です。Parameters:
v ASCII numeric identifier code. ASCIIコード Example:
PROCEDURE Example; VAR cnt :INTEGER; str :STRING; BEGIN FOR cnt := 128 TO 255 DO BEGIN str := Concat(str, Chr(cnt)); IF cnt MOD 32 = 0 THEN str := Concat(str, Chr(13)); END; AlrtDialog(str); END; RUN(Example);See Also:
Ord
Concat | Strings MiniCAD |
VectorScript Declaration:
FUNCTION Concat
( txt :DYNARRAY[] of CHAR ) :DYNARRAY[] of CHAR ; Python:
return DYNARRAY of CHAR
def vs.Concat(txt): Description:
Function Concat combines, or concatenates, all the specified parameters in order and returns the resultant string.
説明
指定したすべての文字列を連結します。Example:
newStr:=Concat('A','sample','string');
Copy | Strings MiniCAD |
VectorScript Declaration:
FUNCTION Copy
( source :DYNARRAY[] of CHAR; index :INTEGER; count :INTEGER ) :DYNARRAY[] of CHAR ; Python:
return DYNARRAY of CHAR
def vs.Copy(source, index, count): Description:
Function Copy returns a substring from a specified source string.
説明
指定した文字列から、指定した位置と長さの文字列を返します。Parameters:
source Source string. 文字列 index Start position in text string. コピーの位置 count Length of substring. 文字の長さ Example:
newStr:=Copy('A sample string',10,6); {returns 'string'}
Delete | Strings MiniCAD |
VectorScript Declaration:
PROCEDURE Delete
( VAR source :DYNARRAY[] of CHAR; index :INTEGER; count :INTEGER ) ; Python:
return source
def vs.Delete(source, index, count): Description:
Procedure Delete removes a substring from the specified source string.
説明
指定した文字列から、指定した位置と長さで文字列を削除します。Parameters:
source Source string. 文字列 index Start position in text string. 削除の位置 count Length of substring. 削除の長さ Example:
theStr:='A sample string'; Delete(theStr,3,7); {deletes 'sample' from the string value}
GetResourceString | Strings VectorWorks9.0 |
VectorScript Declaration:
PROCEDURE GetResourceString
( VAR theString :DYNARRAY[] of CHAR; id :INTEGER; index :INTEGER ) ; Python:
return theString
def vs.GetResourceString(id, index): Description:
Returns the specified resource string from a resource file.説明
リソースファイルから文字列を返します。Parameters:
theString The string contained within the resource. 文字列 id The ID of the resource. リソース番号 index The index of the string resource. 番号 See Also:
SetVSResourceFile
GetVWRString | Strings Vectorworks 2014 |
VectorScript Declaration:
PROCEDURE GetVWRString
( VAR outputString :DYNARRAY[] of CHAR; resIdentifier :DYNARRAY[] of CHAR; stringIdentifier :DYNARRAY[] of CHAR ) ; Python:
return outputString
def vs.GetVWRString(resIdentifier, stringIdentifier): Description:
Replaces GetResourceString -- load a string from VWR file説明
GetResourceStringの代わりに使う。 -- VWR ファイルから文字列を読み出す。Parameters:
outputString result value 結果 resIdentifier VWR identifier and path to vwstrings file VWR 識別子とvwstringsファイルへのパス stringIdentifier key in vwstrings file vwstringsファイル中のキー
Insert | Strings MiniCAD |
VectorScript Declaration:
PROCEDURE Insert
( source :DYNARRAY[] of CHAR; VAR dest :DYNARRAY[] of CHAR; index :INTEGER ) ; Python:
return dest
def vs.Insert(source, index): Description:
Procedure Insert will insert the specified string into a destination string.説明
指定した文字列を、指定した位置に挿入します。Parameters:
source String to be inserted. 文字列 dest Destination string. 挿入される文字列 index Position where string is to be inserted. 挿入位置 Example:
theStr:='sample'; originalStr:='A string'; Insert(theStr,originalStr,3); {inserts 'sample' into the target string}
Len | Strings MiniCAD |
VectorScript Declaration:
FUNCTION Len
( v:DYNARRAY[] of CHAR ) :INTEGER ; Python:
return INTEGER
def vs.Len(v): Description:
Function Len returns the length of the specified string value.説明
指定した文字列の文字数を返します。Parameters:
v Source string. 文字列 返り値
文字数
LenEncoding | Strings Vectorworks 2018 |
VectorScript Declaration:
FUNCTION LenEncoding
( v :DYNARRAY[] of CHAR; encoding :INTEGER ) :INTEGER ; Python:
return INTEGER
def vs.LenEncoding(v, encoding): Description:
Function LenEncoding returns the length of the specified string value in the specified encoding: 0 – mac; 1 – win; 2 – system; 3 – UTF8; 4 – UTF16説明
指定した値の文字数を指定したエンコーディングで返します。(エンコーディング:0 – mac; 1 – win; 2 – システム; 3 – UTF8; 4 – UTF16)Parameters:
v Source string. 文字列 encoding 0 – mac; 1 – win; 2 – system; 3 – UTF8; 4 – UTF16 エンコーディング:0 – mac; 1 – win; 2 – システム; 3 – UTF8; 4 – UTF16
Num2Str | Strings MiniCAD |
VectorScript Declaration:
FUNCTION Num2Str
( decPlace :INTEGER; v :REAL ) :STRING ; Python:
return STRING
def vs.Num2Str(decPlace, v): Description:
Function Num2Str converts a REAL value to a string and returns the value.
Parameter decPlace has a range of -1 to 10; if -1 is specified, the value will be returned in scientific notation.
説明
実数を文字列に変換します。Parameters:
decPlace Number of decimal places. 小数点の桁数 v Numeric value. 数値 返り値
文字列Example:
oldnumValue:=232.5148; newStrValue:=Num2Str(3,oldnumValue); {would return '232.515'}
Num2StrF | Strings MiniCAD |
VectorScript Declaration:
FUNCTION Num2StrF
( vDistance:REAL (Coordinate) ) :STRING ; Python:
return STRING
def vs.Num2StrF(vDistance): Description:
Function Num2StrF converts a specified REAL value into a string. The numeric value will be converted and displayed in the current unit settings of the drawing.
説明
実数を文字列に変換します。数値は現在の画面上の単位で表します。Parameters:
vDistance Numeric value. 数値 返り値
文字列Example:
oldnumValue:=23.45; newStrValue:=Num2StrF(oldnumValue); {would return 1'-11 1/2"}
Ord | Strings MiniCAD |
VectorScript Declaration:
FUNCTION Ord
( v:CHAR ) :INTEGER ; Python:
return INTEGER
def vs.Ord(v): Description:
Function Ord returns the corresponding ASCII number of the specified character value. Parameter Ord specifies the character.
説明
指定したキャラクタのASCIIコードを返します。Parameters:
v ASCII character. キャラクタ 返り値
ASCIIコードExample:
PROCEDURE Main; VAR str :STRING; cnt :INTEGER; BEGIN str := GetText(FSActLayer); FOR cnt := 1 TO Len(str) DO AlrtDialog(Concat(Ord(Copy(str, cnt, 1)))); END; RUN(Main);See Also:
Chr
Pos | Strings MiniCAD |
VectorScript Declaration:
FUNCTION Pos
( subStr :DYNARRAY[] of CHAR; str :DYNARRAY[] of CHAR ) :INTEGER ; Python:
return INTEGER
def vs.Pos(subStr, str): Description:
Function Pos searches for a specified substring contained within in a target string.
Pos returns the position of the substring. If the string is not found, 0 is returned.
説明
指定した文字列から指定した文字を検索し、その位置を返します。該当する文字が含まれていない場合は0が返されます。Parameters:
subStr Substring to be located. 検索文字 str Target string. 検索対象となる文字列 返り値
文字の位置Example:
Loc:=Pos('samp','A sample string');
Str2Angle | Strings Vectorworks 2014 |
VectorScript Declaration:
FUNCTION Str2Angle
( str:STRING ) :REAL ; Python:
return REAL
def vs.Str2Angle(str): Description:
Convert a string representation of an angle value to a real number.説明
角度値の文字列表現を実数に変換します。Parameters:
str The string representation of the angle value. 角度値を表す文字列
Str2Area | Strings Vectorworks 2014 |
VectorScript Declaration:
FUNCTION Str2Area
( str:STRING ) :REAL ; Python:
return REAL
def vs.Str2Area(str): Description:
Convert a string representation of an area value to a real number.説明
面積値の文字列表現を実数に変換します。Parameters:
str The string representation of the area value. 面積値を表す文字列
Str2Num | Strings MiniCAD |
VectorScript Declaration:
FUNCTION Str2Num
( s:STRING ) :REAL ; Python:
return REAL
def vs.Str2Num(s): Description:
Function Str2Num returns the specified string as a numeric value.説明
文字列を実数に変換します。Parameters:
s Source string. 文字列 返り値
数値Example:
numValue:=Str2Num('235.44');See Also:
ValidNumStr
Str2Volume | Strings Vectorworks 2014 |
VectorScript Declaration:
FUNCTION Str2Volume
( str:STRING ) :REAL ; Python:
return REAL
def vs.Str2Volume(str): Description:
Convert a string representation of a volume value to a real number.説明
体積値の文字列表現を実数に変換します。Parameters:
str The string representation of the angle value. 体積値の文字列表現
SubString | Strings Vectorworks 2014 |
VectorScript Declaration:
FUNCTION SubString
( text :DYNARRAY[] of CHAR; delimiter :STRING; index :INTEGER ) :DYNARRAY[] of CHAR ; Python:
return DYNARRAY of CHAR
def vs.SubString(text, delimiter, index): Description:
Function SubString splits the Text string using characters specified in the Delemiters and returns the token located at the Index position.
The first token is located at index 1.
If there is an error the function returns ''(empty string).
If index is less than 1 or grater than max number of tokens the function returns ''(empty string).説明
SubString はdelimiterの文字でtext文字列を分解し、index番目のトークンを返します。
最初のトークンは、1番である。
エラーの場合は、''(空文字列)を返します。
indexが1より小さいか、トークン数よりも大きい場合、''(空文字列)を返します。Example:
middleStr:=SubString('Left;Middle;Right',';',2);
UniChr | Strings Vectorworks 2018 |
VectorScript Declaration:
FUNCTION UniChr
( v:LONGINT ) :STRING ; Python:
return STRING
def vs.UniChr(v): Description:
Returns the UTF-8 character corresponding to the specified Unicode code point.説明
指定したUnicodeコードポイントに対応するUTF-8の文字を返します。Parameters:
v A Unicode code point. The code point value must be in decimal (base ten). Unicodeコードポイント (コードポイントは10進数で指定する必要があります。) Result:
The UTF-8 character corresponding to the specified Unicode code point.返り値
指定したUnicodeコードポイントに対応するUTF-8の文字を返します。See Also:
Chr
UprString | Strings MiniCAD |
VectorScript Declaration:
PROCEDURE UprString
( VAR str:DYNARRAY[] of CHAR ) ; Python:
return str
def vs.UprString(str): Description:
Procedure UprString converts all characters in the specified string to upper case.
説明
指定した文字列をすべて大文字に変換します。Parameters:
str Source string. 文字列 Example:
revisedString := 'vectorworks'; UprString(revisedString); {Sets revisedString equal to 'VECTORWORKS'}
Volume2Str | Strings Vectorworks 2014 |
VectorScript Declaration:
FUNCTION Volume2Str
( value:REAL ) :STRING ; Python:
return STRING
def vs.Volume2Str(value): Description:
Convert a volume value from a real number to a string using the current document formatting.説明
現在のファイルの設定を用いて、体積値を実数から文字列に変換します。Parameters:
value The volume value. 体積値