Author Topic: Decoiled Straight Pattern Options  (Read 421 times)

0 Members and 1 Guest are viewing this topic.

Offline CadDadTopic starter

  • Premier Member
  • *****
  • Posts: 741
  • Country: us
  • Gender: Male
Decoiled Straight Pattern Options
« on: Dec 07, 2018, 03:44:55 PM »
I am using  Fabrication CADmep 2018.2 and Fabrication CAMduct 2018.2.
Our straight duct CID#866 pattern defaults to 1-Part Straight until it reaches a stretchout larger than the Maximum Stretchout set in the Pattern Options. Then it defaults to 4xI,M-M,F-F. It skips the 2xL option completely. It did not do this in 2016. I checked because I still have it loaded and my settings for Pattern Options - Straights are the same in both versions. Is this a glitch with 2018?
Attached are my Pattern Options for Straights. I hope someone can help...

AutoCAD, NavisWorks, Revit, Fabrication CADmep, Fabrication CAMDUCT, Fabrication ESTmep, Fabrication TRACKER

Offline ChrisH

  • Full Member
  • ***
  • Posts: 168
  • Country: us
  • Gender: Male
Re: Decoiled Straight Pattern Options
« Reply #1 on: Dec 28, 2018, 08:39:42 PM »
I just noticed mine is doing the same thing. I haven't looked at this in a while but our shop and CAM guy asked me about it today. I looked at it and thought did we override in the past?
I thought it used to work correctly. So I looked at it for a while and could not figure out what changed. I then opened 2017 and tried it. It worked on 2017.
Same database same itm and I get 2xL.  Go back to 2018 and its 4 piece. 

Did you figure anything out?
Thanks

Offline jimbon

  • Full Member
  • ***
  • Posts: 152
  • Country: us
  • Gender: Male
Re: Decoiled Straight Pattern Options
« Reply #2 on: Jan 03, 2019, 03:37:25 PM »
This happened to us as well.  We'd been setup for 1-Part Straight up to a certain size, 2xL from there up to something else, and 4xI M-F thereafter.  After installing 2018, it went from 1-Part Straight to 4xI, skipping over 2xL.  We could find no reason for it.

The good folks at Applied Software (Garrett Tice and David Ronson) wrote us a script (which we further modified) to set the number of parts on our straights based on periphery.  It's one of the last things we do in CAM before we go into production.  Hopefully they won't mind my sharing it here.

Code: [Select]
REM============================================================
REM * DESCRIPTION: Script to change the number of parts on a straight based on periphery
REM *
REM *----------------------------------------------------------------------------------------------------------------------
REM *  CREATED BY: Garrett Tice-David Ronson
REM *           DIRECT:
REM *             CELL:
REM *            EMAIL: support@asti.com
REM *             DATE: 10/25/17
REM * ----------------------------------------------------------------------------------------------------------------------
REM *   REVISED BY: jimbon
REM *             DATE: 10-31-2017
REM ============================================================

Select item.cid
case 866

Dim varWidth = item.dim[1].value
Dim varDepth = item.dim[2].value
Dim varPeriphery = (varWidth*2) + (varDepth*2)

If varPeriphery < "122.1" then
    item.option["Override"].value = "1 Part Straight"
end if

if varPeriphery > "122.1" and varPeriphery < "244.1" then
    if varWidth > "111.75" or varDepth > "111.75" then
      item.option["Override"].value = "4xI,M-F"
    else item.option["Override"].value = "2xL"
endif
end if

if varPeriphery > "244.1" then
ITEM.OPTION["Override"].value = "4xI,M-F"
end if

if varWidth < "4" or varDepth < "4" then
     ITEM.OPTION["Override"].value = "2xL"
end if

end select
item.update()


It's not a fix, per se, but it works.
Ver. 2018.0.0.F (28)  -  AEC Collection 2018  -  CADmep, CAMduct, and ESTmep 2018
Windows 10 Pro x64 -  Intel Core i7-7700HQ @ 2.80 GHz  -  32 GB RAM  -  NVIDIA Quadro P4000

Offline ChrisH

  • Full Member
  • ***
  • Posts: 168
  • Country: us
  • Gender: Male
Re: Decoiled Straight Pattern Options
« Reply #3 on: Jan 10, 2019, 01:44:33 PM »
I will be trying this ASAP!  Thank you Jimbon, Garrett, and David!!!!

I'm surprised I haven't heard more people complaining about it.  I wonder if its universal or something in our DB'S.  Or maybe the majority of users are just running 17 yet.

Offline CadDadTopic starter

  • Premier Member
  • *****
  • Posts: 741
  • Country: us
  • Gender: Male
Re: Decoiled Straight Pattern Options
« Reply #4 on: Jan 11, 2019, 01:39:44 PM »
The same exact thing for us. It worked in 2016 but 2018 is screwed up. I believe Autodesk made some sort of adjustment to pattern 866 and then they added the "standard Lengths" field in the Database under "Straight Options".
It always seems to screw up our default lengths when we have the "Standard Lengths" box checked to "Always".
Anyhow, we also have a script that fixes the developments on "Decoiled Straights" which is something I don't feel we should have had to create in the first place since it was working correctly in previous versions.
We have ours set to 1-Part Straight as the default so we only need to switch to 2xL or 4-part. Here is our code for any who are curious:

Code: [Select]
REM RECTANGULAR FABRICATION SETTINGS

Select item.cid
case 866
dim width=item.dim["width"].numvalue
dim depth=item.dim["depth"].numvalue
dim length=item.dim["length"].numvalue
dim lp
   If item.cuttype = "Decoiled Straight" then
      if (width+depth)>120 then
         item.option["override"].value = "4xI,M-M,F-F"
         item.update()
      endif
   endif   

   if item.cuttype = "Decoiled Straight" then
      if (((width+depth)*2)/4)>30 then
         if (width+depth)<120 then
            item.option["Override"].value = "2XL"
            item.update()
         endif
      endif
   endif 
AutoCAD, NavisWorks, Revit, Fabrication CADmep, Fabrication CAMDUCT, Fabrication ESTmep, Fabrication TRACKER