Search the Community
Showing results for tags 'localisation'.
So I have an event enabled PIO with a couple of Boolean parameters. Up until now I've been using the below to get the parameter's current state by converting the string to bool, as GetRField returns strings, which I thought was fine. show_weight_bool = strtobool(vs.GetRField(objectHand, objectName, "Show Weight")) HOWEVER An unexpected bug has come up, from someone who tried this plug in on a non english version of Vectorworks (it was German in this particular instance). The error thrown from the strtobool function, was: ValueError: invalid truth value 'wahr' From what I can gather, the GetRField seems to be returning the localized value for the checkbox (in this instance 'wahr' which I'm given to understand from a quick google means True), rather than, as I was hoping just a pythonic True, but in string form. Firstly is this working as intended? I presume so as it would make sense that if you were extracting the string you would want said string to be in the localized language rather than always in english... SO does anyone have any clever ways around this? I've been hunting through the Function Reference but nothing obvious has jumped out at me, I was hoping it might be as simple as there was a vs.GetRBool or something similar that returns a BOOLEAN value, but so far I can't find it (I'm certainly not saying it's not there, just that I have not been able to locate it!) I'm hoping there's a super obvious answer that I'm just missing here!
Window object fixed light = fixed sash * (by definition a fixed light has no sash, i.e. the glazing is fixed directly into the frame) fixed light - no sash = fixed light * (by definition a fixed light has no sash, i.e. the glazing is fixed direct into frame) sill lip = sill edge stool lip = window board edge or internal sill edge stool nose = window board projection or internal sill projection trim = architrave * louver = louvre Window Wall object window wall = curtain wall Door object swing simple (operation) = single leaf swing bi-part (operation) = double leaf solid (door leaf style) = flush panel astragal = fixed mullion or mullion * (this element is wrongly identified in Vectorworks - an astragal is actually a molding attached to one of the door leafs that closes the gap between the two) Materials runbond = stretcher bond or half lap stretcher bond siding = weatherboarding stucco = render LG metal = metal studwork gypsum board = plasterboard LW clay masonry = lightweight clay blockwork Stair object tread depth = going ( ‘going’ is the depth from front to back of a tread, less any overlap with the next tread above, which is the measurement used in VW stair object, but wrongly identified as tread depth, which is the depth from front to back of a tread including any overlap with the next tread above.) riser height = riser (is there any other kind of riser apart from height?) * Any item with a star need to be changed in US/International base version as well ** All of these changes also need to be carried forward into automated worksheet schedules