Python Sample 2D Path Object
.Python|Python ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix ..Python Debugging|Debugging with Python
How to install
- Download the sample: File:PythonSample Object2DPath.zip
- Install the sample by coping the contents of the zip file into your users 'Plug-ins' folder. The easiest way to find this folder is by going to Vectorworks menu Tools -> Options -> Vectorworks Preferences... then in the 'User Folder' tab click on 'Explore...' button and navigate to the 'Plug-ins' sub-folder.
- Note: it is advisable to create a sub folder inside 'Plug-ins' and copy the sample files inside. This way all your plug-ins will be organized.
- Run Vectorworks and edit the Workspace (from the menu Tools -> Workspaces -> Workspace Editor) to add the new tool. It can be found under the 'Sample Python' category in the 'Tools' tab of the Workspace editor dialog.
How the sample works
Similarly to the Python Sample Point Object it defines a parametric object. But this parametric object is path based. This means that when placed there is a polygon that defines it, not only a location as it is for the Python Sample Point Object.
The sample creates parallel lines along the underlying path (you can edit the path with the Reshape tool in Vectorworks)
Note: Try zooming out a little before placing the sample object to get better results.
Python basic information: Python
A simpler example can be found here: Python Sample Point Object