Jump to content


Vectorworks, Inc Employee
  • Posts

  • Joined

  • Last visited

Everything posted by Vlado

  1. Hi Eric, i'll answer you on the threads of the questions.
  2. Hi Eric, well, this is a giant file.It's awesome to see you pushing the limits. The XML property i told you about just removes the asynchronous calculations, which in this case is not useful. I'll add a new property to turn off the auto-calculations (SP2 hopefully) until we find a solution of this. This way, it will not interfere with your work but you'll have to do manual recalculate when you need to see updated values. Regards, Vlado
  3. Hi Eric, You can disable the automated calculations and then you can use the menu command to recalculate. However, i'm interested to see why is it cumbersome to you? Can you send me a test file, or at least a video of the problem? (vstanev@vectorworks.net) Thank you. To disable the automated calculations, open this file: \Libraries\Defaults\Irrigation\IrrigationSettings.xml Edit it with a text editor, and put 'false' in the 'AsyncCalculation' tag (there is 'true' at the moment there). This file should be in your app folder. Regards, Vlado
  4. Hello, It seems this is a bug in the software. Unfortunately, I cannot find a workaround. Thank you for reporting it. I've added a bug issue request and hopefully it will be fixed soon. Regards, Vlado
  5. Hi guys, this issue has already been fixed in VW2014 SP3. Regards, Vlado
  6. If you drag & drop files into Vectorworks, it will import them accordingly with the correct importer for the file type.
  7. The request is implemented for Vectorworks 2015. Thanks for the input.
  8. Hi all, now I see this feature was never documented properly by Vectorworks. The encryption (obfuscation) of Python scripts is similar to the VectorScript process. I'll make sure we make an article on developer.vectorworks.net site about that. Until then, here is explanation of how python encryption (obfuscation) works. A user develops his python vso/vst/vsm plug-in. Typically, as the samples demonstrate, the code of the plug-in just includes an external py file. This way it is much easier to develop as it allows external IDE. At the end of the development, the python script is a collection of py files. The encryption (obfuscation) process (run from the Plugin manager or from EncryptVSPluginFilePath call) will compile and pack up all the external pyo or pyc files (those are compiled py files) into the vso/vst/vsm file. This means that the vso/vst/vsm files can be distributed without providing any of the source files. More on python files here: http://stackoverflow.com/questions/8822335/what-does-python-file-extensions-pyc-pyd-pyo-stand-for And here is the trick. For VectorScript the app follows the {$include} directive when doing this, but for Python, there is no way to follow the includes and figure out what is to be included. So, Vectorworks would expect an xml file next to your vso/vst/vsm that is being encrypted. This file will define what files must be included. Note, Vectorworks 2014 has a problem where the main script text inside the vso/vst/vsm will not be modified by the process. This means that even though the plug-in is packed up, the script text is still untouched and can be seen if there is an error reported. The issue will be fixed for VW2015. Here is an example xml file that defines several files to be packed up when encrypting (obfuscating) the plug-in: Note, the name of the XML file should be the same as the VSO/VST/VSM file. Common/__init__.py Common/Vector.py Common/Utilities.py Common/ObjsType.py MyDialog.py MainProgram.py
  9. Also, it is even more interesting (different than VectorScript) is the vs.GetPt call. See the sample at: http://developer.vectorworks.net/index.php/VS:GetPt
  10. Check the developer.vectorworks again: http://developer.vectorworks.net/index.php/VS:ForEachObject I've put an example of python using this function.
  11. Yes, you should be able to. Those you should install in the side packages.
  12. Hi Ilay, you should not copy anything to 'site-packages' from the sample. Unzip the sample in your user's plug-ins folder and that should be all. when a vsm, vsm, or vst runs, VW adds that folder to the python search path. So, when the scripts does 'import import ui.dlgHandler' the first thing python would do is to look for a folder 'ui' next to the vsm.
  13. Hey guys, it seems the vs.Message was not added to python. This omission be fixed in SP2.
  14. Well, but that's not problem of the SDK, it's a problem of the plug-in's design. But yes, I know what you mean ... VS is more user friendly
  15. Just informational (this is the VS forum anyway), but SDK does have much better support for popup value list, also dynamic popup value list. Also it has much easier XML API for configuration files. The SDK is OS independent, as long as you can handle two different compilers. The only drawback maybe is that it uses C++. You can tell I like the SDK, eh
  16. Also, pay attention to the Xcode version ... for VW2011 development you have to use 3.2
  17. Hello, the VWFC classes are wrappers on top of the SDK. Unfortunately, not very well documented. The VWObjects namespace contains objects that are designed as wrappers of MCObjectHandle. Every class has two different constructors: 1. wrapping - the one that accepts MCObjectHandle 2. creating - the all others (they create a new object) For the VWRecordObj you can just create instance like this: VWRecordObj rec( hRecord ); Note that for parametric objects, it's much easier to use VWParametricObj, it directly allows you to access the parameters.
  18. Let me continue with the questioning: what would be the worst thing in VectorSript? In other words would would be the thing that you would like to see fixed first?
  19. I'm not thinking of breaking or removing VectorScript. My thoughts are more for big project VS can be very clumsy. So, would a VS developer be inclined to switch in that case? I saw some people are already thinking SDK, but hesitate due to the complexity associated with C++.
  20. Hey, how many of you would be interested in switching to C#, VisualBasic, Python, Java, F# or what ever language there is these days? For more complex projects for example? Thanks, Vlado
  21. Hi there, I wanted to inform you that Vectorworks 2011 SP1 will fix the following functions: Get3DCntr AddVertex3D GetLocus3D CreateLocus3D GetLightLocation EvaluateNurbsSurfacePointAndNormal NurbsGetPt3D NurbsSetPt3D NurbsCurveEvalPt NurbsSurfaceEvalPt GetParameterOnNurbsCurve GetSymLoc3D Centroid3D CreateContourCurves GetObjExtentsInWall GetPt3D GetPtL3D these routines were overcompensating for layer elevation in the main release. The SP1 will have these working properly, returning z relative to the layer of the object. Regards, Vlado
  22. Technically, it is possible. If you want Win only plug-in it much easier because you can mix .NET and C++ in the same plug-in. But, still you have to do a lot of work. On Mac Mono is working great. I've testing it and it's working perfectly. Actually, you can compile with the VisualStudio and Mono will still run it without problems. The Vectorworks 2011 module plug-ins (http://developer.vectorworks.net/index.php?title=SDK) are designed to start solving the problem of calling .NET and C++. Also, VCOM system can be used to automate the calls between C++ and .NET Unfortunately, VectorWorks .NET plug-ins are in the future.
  23. Hi, the easiest way to start with the SDK is to see the samples. Vectorworks 2011 SDK contain few samples of plug-ins. 1. Install XCode 3.2 on Mac and Visual Studio 2005 on Win. 2. Download the Vectorworks 2011 SDK 3. Inside the SDK zip file you'll find the samples. You should be able to compile the samples right out of the box. 4. Note! in order to run the samples in VW you need to have a short-cut (alias) in your Vectorworks' application 'Plug-ins' folder to the SDKLib output (there will be an output folder created when you compile a sample) Also, in the Vectorworks SDK under WinTools you can find a wizard for the VisualStudio that will help creating plug-in projects. I hope we'll be able to create more step-by-step samples or video one day. Regards, Vlado
  24. Hi all, here you can find the new Vectorworks 2011 SDK routines. http://developer.vectorworks.net/index.php?title=SDK:Vectorworks_2011_New_Functions Note that as of Vectorworks 2011 the SDK has a new Plug-in Module system for extending Vectorworks. See for more details here: Plug-in Modules They are not terribly well documented, but with the time I hope they will. You can register and help out proving the information for each function. Please note that this site is not comment driven. The information for each function should be 100% valid, not opinion based. Let me know if you have comments or questions: vstanev@vectorworks.net Regards, Vlado
  25. Hi all, here you can find the new Vectorworks 2011 VectorScript routines. http://developer.vectorworks.net/index.php?title=VS:Vectorworks_2011_New_Functions They are not terribly well documented, but with the time I hope they will. You can register and help out proving the information for each function. Please note that this site is not comment driven. The information for each function should be 100% valid, not opinion based. Let me know if you have comments or questions: vstanev@vectorworks.net Regards, Vlado
  • Create New...