Author Topic: Lined Decoiled Straight Script for 2XL  (Read 1380 times)

0 Members and 1 Guest are viewing this topic.

Offline aleschperTopic starter

  • Full Member
  • ***
  • Posts: 74
  • Country: us
  • Gender: Male
Lined Decoiled Straight Script for 2XL
« on: Jul 10, 2023, 15:59:22 PM »
I have NO talent for script writing. Does anyone know if it is possible to write a script that will make internally lined Decoiled Straights to cut as Ls instead of 1 Part?
Andrew Leschper
2019/20 Version
Jack of All Trades

Offline Jona

  • Senior Member
  • ****
  • Posts: 271
  • Country: us
  • Gender: Male
Re: Lined Decoiled Straight Script for 2XL
« Reply #1 on: Jul 10, 2023, 17:34:01 PM »
My first suggestion would be to use Visual Studio Code for scripting. It's been instrumental in helping me learn how to script on a basic level.

As far as the script, I would think it's possible. Here is where I myself would start, and then work out the kinks from there. I'm sure a more experienced person has a better way.

Code: [Select]
Select item.cid
CID 866

if item.cuttype = "decoiled"  and item.insulation.status = inside then
 item.option["override"]=2
item.update()
end if
item.update()
end select

Offline Jona

  • Senior Member
  • ****
  • Posts: 271
  • Country: us
  • Gender: Male
Re: Lined Decoiled Straight Script for 2XL
« Reply #2 on: Jul 11, 2023, 14:12:57 PM »
^ "inside" and eliminate the first "item.update()"

Offline Dean-o

  • Full Member
  • ***
  • Posts: 73
  • Country: us
  • Gender: Male
Re: Lined Decoiled Straight Script for 2XL
« Reply #3 on: Aug 31, 2023, 14:15:58 PM »
We have our duct set to 2 piece by default and run a script to change anything that will fit the max blank size of our coil line. We do use some types of insulation that our coil line will not run, so we leave these 2 piece by default.