Jump to content
Developer Wiki and Function Reference Links ×

Getting the full width of a window or a door


zgobolos

Recommended Posts

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 by zgobolos
Link to comment

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 by zgobolos
Link to comment

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.

Link to comment

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

Link to comment

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?

Link to comment
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

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...