Greentram Software Support Forums  

Go Back   Greentram Software Support Forums > SuperBeam > Support

Support Technical and other questions related to the use of SuperBeam

Reply
 
Thread Tools Display Modes
Old 26th March 2019, 11:40 AM   #1
motorphotos
Senior Member
 
Join Date: Apr 2011
Posts: 57
Default writing scripts

Hi Tony

just trying to get to grips with the scripts

I am thinking of masonry piers for general extensions etc
and have the following questions

looking at the load input there is no option to run scripts
from columns so I suppose beam loads only section with the
loads as point loads would be ok but there would be no span

Is it possible to stop a script for user input - like pier size ?

is there some way the script could be written in word and imported
cant see to get this to import

are the scripts stored separately I cant seem to find the individual
scripts they seem to be in the same file

regards

john
motorphotos is offline   Reply With Quote
Old 29th March 2019, 10:24 PM   #2
Tony Bryer
Administrator
 
Join Date: Apr 2008
Location: Melbourne, Australia
Posts: 874
Default Re: writing scripts

The standard scripts are held in the library file, location/name given in Configuration, User Setup dialog. To extract a particular one, select it in the Configuration, Library dialog, then highlight the text, right-click and select 'Copy'. Then paste into the editor of your choice.

I'll give some thought to adding scripting to columns. Thanks for the suggestion.
__________________
Tony Bryer, Greentram Software Pty Ltd
Tony Bryer is offline   Reply With Quote
Old 8th April 2019, 01:02 PM   #3
motorphotos
Senior Member
 
Join Date: Apr 2011
Posts: 57
Default Re: writing scripts

Hi Tony

written a cavity wall script which ran the first time and gave me a catnic cg lintel

now what ever I put in it just returns a catnic cx lintel no matter what span or load I use

Obviously I have done something maybe its not clearing the script what I start but cannot think its that as the spans and loads change each time so its picking up the loads and span correctly its the rest that's its bypassing until the end

hopefully the attached which is the txt file of the script comes through

90-105 cavity lintel .txt

your advise would be appreciated

regards

motorphotos
motorphotos is offline   Reply With Quote
Old 11th April 2019, 01:45 PM   #4
motorphotos
Senior Member
 
Join Date: Apr 2011
Posts: 57
Default Re: writing scripts

Hi Tony
bit more information re the script

If I run a lintel with a design span of 3.3m with say flat roof loads
of dead 0.73 x 1.5 and live load 0.75x1.5 and cavity wall say 3.9 x 0.5
so lintel over single storey extension it returns a catnic cg 90/100 with
actual load of 13.8 kN to an allowable load 26 kN which is fine

if I then reduce the span to 1.8m with the same load it returns a
catnic cx 90/100 with an actual load of 7.5 kN with an allowable of 60 kN

the allowable load on a cg 90/100 would be 20 kN so it should not have
bypassed the CG lintel or have at the minimum used a CH lintel before it
even got to the cx lintels

regards

john
motorphotos is offline   Reply With Quote
Old 14th April 2019, 11:41 AM   #5
Tony Bryer
Administrator
 
Join Date: Apr 2008
Location: Melbourne, Australia
Posts: 874
Default Re: writing scripts

Quote:
Originally Posted by motorphotos View Post
written a cavity wall script which ran the first time and gave me a catnic cg lintel

now what ever I put in it just returns a catnic cx lintel no matter what span or load I use
I've checked it out and you're missing a final catchall block of lines thus:


... begin
Output.Add('Use 232mm high <s>Catnic CX 90/100 lintel<->, unfactored SWL 32kN')
PrjMgrLine := 'Catnic CX 90/100 lintel';
end
else
begin
Output.Add('No suitable lintel found');
OK:=false;
PrjMgrLine := '';
end;


// Now insert appropriate heading
if OK then ....


I'll check out your other query shortly

Tony
__________________
Tony Bryer, Greentram Software Pty Ltd
Tony Bryer is offline   Reply With Quote
Old 14th April 2019, 12:01 PM   #6
Tony Bryer
Administrator
 
Join Date: Apr 2008
Location: Melbourne, Australia
Posts: 874
Default Re: writing scripts

Quote:
Originally Posted by motorphotos View Post
if I then reduce the span to 1.8m with the same load it returns a
catnic cx 90/100 with an actual load of 7.5 kN with an allowable of 60 kN

the allowable load on a cg 90/100 would be 20 kN so it should not have
bypassed the CG lintel or have at the minimum used a CH lintel before it
even got to the cx lintels
This happens because of the way you've bracketed your lintel lengths

... else if (LLength > 1650) and (LLength <= 1800) and (TotLoadu <= 18) and (MaxSFu <= 9)
then
begin
Output.Add('Use 140mm high <s>Catnic CG 90/100 lintel<->, unfactored SWL 18kN')
PrjMgrLine := 'Catnic CG 90/100 lintel';
end
else if (LLength > 1950) and (LLength <= 2100) and (TotLoadu <= 20) and (MaxSFu <= 10) ...


When you make the span (taken as distance between centres of bearings) 1.8m, LLength (the physical lintel length) is set to 1950 (150mm bearings assumed). The second test fails because LLength isn't greater than 1950, it is 1950. It actually needs to read LLength>1800, otherwise you create a gap through which particular spans will fall through. Likewise the other tests.

HTH

Tony
__________________
Tony Bryer, Greentram Software Pty Ltd
Tony Bryer is offline   Reply With Quote
Old 15th April 2019, 01:34 PM   #7
motorphotos
Senior Member
 
Join Date: Apr 2011
Posts: 57
Default Re: writing scripts

many thanks tony it seems to be working OK now

this takes me back to the 1980's when I was writing basic programs
on a commodore pet then we went up market and bought an Amstrad 1510 and upgraded to the Amstrad 1640 with a 20 mb hard drive and colour vga screen (16 colours) which also ran autocad version 2.1

regards

John
motorphotos is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT. The time now is 05:29 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2011 Greentram Software Pty Ltd, Melbourne, Australia