Miguel Figueiredo Posted April 23, 2014 Share Posted April 23, 2014 Hi Im quite glad that python has been integrated into vectorworks for the 2014. Really hoping to get my hands on this upgrade! Question: Is it possible to have access to the document lists through python? For example, In some projects, I would like to display some lists of objects/symbols in a tabular way so that I can sort them and have easy access to them. Is this possible with the python framework or even with the C++ SDK? Many Thanks Miguel Quote Link to comment
Dieter @ DWorks Posted April 23, 2014 Share Posted April 23, 2014 (edited) you can access all things in VW with python like VectorScript can, so also the symbols in a drawing. You can find more info on the developer page: Vectorworks developer page Edited April 23, 2014 by Dieter @ DWorks Quote Link to comment
Guest Jim Kelly Posted April 24, 2014 Share Posted April 24, 2014 I have a feeling that introspection in Vectorworks and Vectorscript may mean something else than it does to me as a programmer, but if by introspection you mean the general programming term, yes Python has some really powerful introspection features: http://www.diveintopython.net/power_of_introspection/ Particularly powerful is the dir() method which allows you to get a list of all methods and variables on an object that you pass to it. Really helpful if documentation isn't clear on something and for debugging purposes. If you already know this and/or that isn't what you meant, well, perhaps it will be of interest to someone else that comes along. Quote Link to comment
Miguel Figueiredo Posted June 10, 2014 Author Share Posted June 10, 2014 Hi I wasn't referring to object introspection within the python language, but "object" introspection within the vectorworks framework. For example, would I be able to develop a plugin, in python, that would find all spotlight instruments with a certain "Dimmer" value and create a selection with these? Many Thanks Miguel Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.