Changing Duct Length via a Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I need to add 5mm to the length of insulation developments for our decoiled ductwork to allow for variation in the width of the coils.
At first I thought I could do this by simply copying the connector, adding the 'Insulation End Override' and making a script to swap out the connector. This was a no go as the insulation is processed as 'Four Parts', independent of what the 'Straight Type' is. It appears the 'Insulation End Override' only applies if the insulation parts are set to 'Same'.
So I then just decided to make a script to increase the length of the duct to increase the insulation length by the same amount. The length of the decoiled duct is pretty irrelevant as they are made at a standard length and we do not use it in any reports or calculations. The problem is that I can't seem to override the length with a script. I've tried various different methods but to no avail; is this possible? The basic script I'm using is below:
rem Function: Change length.
function changelength()
if item.length = 1400 then
item.length = 1405
item.update()
endif
endfunction
rem Select: Change length.
select item.description
case "RCT. STRAIGHT"
changelength()
endselect
I've tried using: item.dim[3], dim length = item.length, and putting quotation marks around the value ("1405").
None of that worked, so I am now thinking that this approach is also a no go.
Can anyone suggest a solution to the above method or provide a new method entirely for achieving this? I would much prefer to not mess around with my specifications if at all possible.
Regards,
Luke Evans