zgobolos Posted December 8, 2008 Share Posted December 8, 2008 (edited) Hi, Is it possible to get the full width of windows and doors? I have the right handles so I only need to get an object attribute I guess but it's not so well documented. Could somebody please point me into the right direction? Thanks a lot, Zoli PS: Whoops, I also need the distance of the bottom of the windows from the actual floor base. Edited December 8, 2008 by zgobolos Quote Link to comment
zgobolos Posted December 8, 2008 Author Share Posted December 8, 2008 (edited) Sorry folks, early question. Here is the solution for the archive: ... v : DYNARRAY[] OF CHAR; ... v := GetRField(h, 'Window', 'OverallWidth'); ... Where h is a pointer to the given object - in this case a window or a door. The funny in VectorScript is that you always get stuck with something. Now the v - the result - is in the following form: '5e01 cm'. How can I translate it into something human readable? I mean '50 cm' in this case. Thanks in advance, Zoli Edited December 8, 2008 by zgobolos Quote Link to comment
MullinRJ Posted December 8, 2008 Share Posted December 8, 2008 Have you tried Str2Num() or ValidNumStr()? After that you can use the Num2StrF() function to display it in the current drawing units format. Raymond Quote Link to comment
zgobolos Posted December 8, 2008 Author Share Posted December 8, 2008 Done. By myself, so sorry spamming you again. The script is attached in it's current form. Just for the archive. Someone may learn from it. What I want to achieve anyway is a solution for this: http://techboard.vectorworks.net/ubbthreads/ubbthreads.php?ubb=showflat&Number=114041#Post114041 Let me tell you that I'm not an architect. I just help my wife to use this sw in a non-US environment where the window and door dimension lines look like this. Quote Link to comment
zgobolos Posted December 8, 2008 Author Share Posted December 8, 2008 (edited) Thanks Raymond I use Str2Num, but first I have to cut the cm from the end. Dumb Str2Num ... Btw I can't find ValidNumStr. Isn't that in the VW 2009 API? I have 2008. Edited December 8, 2008 by zgobolos Quote Link to comment
MullinRJ Posted December 8, 2008 Share Posted December 8, 2008 Hi Zoli, ???ValidNumStr() has been around since the dawn of time, or at least as long as MiniCad has been around. ???See: http://scs-inc.us/Other/VSFR/PHP/main.php?name=ValidNumStr for a description. ???A copy of the VS Function Reference should be in your application folder as well. Copy the following path to your browser: file:///Applications/VectorWorks%202008/VWHelp/VectorScript%20Reference/VSFunctionReference.html and then search for "ValidNumStr". ???I keep an alias of the VSFuncRef on my Dock for fast reference. Raymond Quote Link to comment
zgobolos Posted December 10, 2008 Author Share Posted December 10, 2008 Whoops, I usually edit the script in TextWrangler and if I need to look up a procedure I use the plug-in editor to open my dummy plug-in kept just for opening the API reference. It makes my workflow absolutely inconvenient. What you mentioned will save me time. Thanks. Quote Link to comment
panta rhei Posted December 10, 2008 Share Posted December 10, 2008 Some Greenhorn we have here... Are you aware of the TextWrangler language module by the esteemed VS guru Orso B. Schmidt? It is not a reference manual, but at least it'll tell you when you've made a typo. As comes to SCS-INC-VSFR: invaluable! But I'm not quite sure it is is maintained to be comprehensive. VectorLab, on the other hand, is a cornucopia of Really Useful Stuff. http://www.vectorlab.info/index.php?title=Main_Page Then there's the VW Developer Network: http://developer.vectorworks.net/index.php?title=Main_Page Unlike VectorLab, the Network does not accept contributions by Mere Mortals. Charles? Orso? Vlado? Any comments? Quote Link to comment
Pat Stanford Posted December 10, 2008 Share Posted December 10, 2008 A copy of the VS Function Reference should be in your application folder as well. Copy the following path to your browser: file:///Applications/VectorWorks%202008/VWHelp/VectorScript%20Reference/VSFunctionReference.html I actually go one step beyond that. I have a set of VS bookmarks that I have set to open in multiple tabs in my browser. These include 3 copies of the VSFR, a copy of the VS Appendix, a copy of the VS Language Guide, VectorWiki, VectorLab, and a copy of the On-line VSFR. Having multiple copies of the function reference means I can leave one set to By Name and one set to By Class and don't have to keep scrolling back and forth when I am trying to get two functions working well together. Pat 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.