Author Topic: TDC/TDF Notch Help  (Read 10068 times)

0 Members and 1 Guest are viewing this topic.

Offline effimero89

  • Full Member
  • ***
  • Posts: 212
  • Country: us
  • Gender: Male
Re: TDC/TDF Notch Help
« Reply #15 on: Aug 24, 2018, 15:30:40 PM »
Tell me about it.

I pulled up their old notches and matches the IDENTICAL to what they are. Was a painfully slow process but like you said, they don't like change. I've been bending over backward for this damn shop...
CAMduct 2018/2019
Fabrication API
Revit 2017/2018/2019

Offline brady0542

  • Active Member
  • **
  • Posts: 21
  • Country: us
  • Gender: Male
    • BIMpliciti
Re: TDC/TDF Notch Help
« Reply #16 on: Sep 04, 2019, 02:30:50 AM »
I'm super new to this, but I'm pretty sure you can just modify the connector fold notch on CID#866 to whatever you want. I just found a script to copy paste into what I needed. But I run a different script for S&D versus TDC.

I know its probably not the best option, but it works. the script is a little clunky, but I have some cleanup to do with my connectors(i have duplicates of the same thing with different names)

Code: [Select]
select item.cid
case 866

dim width=item.dim["width"].numvalue
dim depth=item.dim["depth"].numvalue
dim lp1=1
dim lp2=2

   If item.option["Override Cut Type"].value="None"
then item.option["Override Cut Type"].value="Machine Cut"
   Endif
   
   item.option["Override"].value="2xL"   

   If item.option["Override Cut Type"].value="Machine Cut"
then
      If (width+depth+width+depth)>88.01
then item.material="GALV-60"
item.update()
      EndIf
   EndIf
      If (width+depth+width+depth)>112.01
then item.option["Override"].value="4xI,M-M,F-F"
item.update()
      Endif

   If item.connector[lp1].value="SS/D" then
       item.option["Connector Fold Notch #1"].value="Use Vee Notch"
       item.option["Vee Notch Depth #1"].value=0.625
       item.option["Vee Notch Angle #1"].value=30
       item.update()
   Endif

   If item.connector[lp1].value="SS/D" then
       item.option["Connector Fold Notch #2"].value="Use Vee Notch"
       item.option["Vee Notch Depth #2"].value=0.625
       item.option["Vee Notch Angle #2"].value=30
       item.update()
   Endif

   If item.connector[lp1].value="SS/FD" then
       item.option["Connector Fold Notch #1"].value="Use Vee Notch"
       item.option["Vee Notch Depth #1"].value=0.625
       item.option["Vee Notch Angle #1"].value=30
       item.update()
   Endif

   If item.connector[lp1].value="SS/FD" then
       item.option["Connector Fold Notch #2"].value="Use Vee Notch"
       item.option["Vee Notch Depth #2"].value=0.625
       item.option["Vee Notch Angle #2"].value=30
       item.update()
   Endif

   If item.connector[lp1].value="SS&D" then
       item.option["Connector Fold Notch #1"].value="Use Vee Notch"
       item.option["Vee Notch Depth #1"].value=0.625
       item.option["Vee Notch Angle #1"].value=30
       item.update()
   Endif

   If item.connector[lp1].value="SS&D" then
       item.option["Connector Fold Notch #2"].value="Use Vee Notch"
       item.option["Vee Notch Depth #2"].value=0.625
       item.option["Vee Notch Angle #2"].value=30
       item.update()
   Endif

   If item.connector[lp1].value="S&D" then
       item.option["Connector Fold Notch #1"].value="Use Vee Notch"
       item.option["Vee Notch Depth #1"].value=0.625
       item.option["Vee Notch Angle #1"].value=30
       item.update()
   Endif

   If item.connector[lp1].value="S&D" then
       item.option["Connector Fold Notch #2"].value="Use Vee Notch"
       item.option["Vee Notch Depth #2"].value=0.625
       item.option["Vee Notch Angle #2"].value=30
       item.update()
   Endif

item.notes="Optimized Machine Straight"

end select
Brady Shmady