VS:Vectorworks 2018 Development: Difference between revisions

From Vectorworks Developer
Jump to navigation Jump to search
(Created page with "{{LocationMain|category=LocationVSSpecial|specific=}} == Version Information == Vectorworks 2018 is a Unicode application. Internally, Vectorworks uses UTF-16. To provide ea...")
 
No edit summary
Line 14: Line 14:


== New Features ==
== New Features ==
* [[VS:Install Plugins into the Current Workspace]]
* [[VS:Binary File Operations]]


== New Functions ==
== New Functions ==


[[VS:Vectorworks 2018 New Functions]]
[[VS:Vectorworks 2018 New Functions]]

Revision as of 19:31, 12 September 2017

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Version Information

Vectorworks 2018 is a Unicode application. Internally, Vectorworks uses UTF-16. To provide easier transition of Vector Scripts, the script engine uses UTF-8 Encoding.

First, all sources files for Vector Script should be in UTF-8 text file encoding with or without BOM (Byte Order Mark). This is most notable if the copy-right symbol is used. These files must be converted to UTF-8 before using them in Vectorworks 2018.

This change only affects scripts using non-Latin(low ASCII) characters. As contrast Vectorworks 2017 will use one byte for such characters (representing ASCII symbol in the OS current code page) In the new version, such characters are represented by multiple bytes.

This means that the type STRING, which has a limit of 255 bytes, is not variable limit if used with non-Latin characters. If your string uses 4-byte symbols, then STRING would be (255/4 =) 63 characters limit.

This might be very limiting to certain users. So, we are recommending the use of 'DYNARRAY OF CHAR' instead. We have updated most of the VectorScript API to support this type along with the STRING.

New Features

New Functions

VS:Vectorworks 2018 New Functions