Author Topic: Straights with taps won’t set to “Decoiled Straight” (need to script “UDH")  (Read 1726 times)

0 Members and 1 Guest are viewing this topic.

Offline blake243Topic starter

  • Active Member
  • **
  • Posts: 4
  • Country: us
  • Gender: Male
When exporting fab duct from Revit, my straights that have taps are not being set to Decoiled Straight.
Develop Holes is not checked.

I have found in this forum and confirmed that the Update Dynamic Holes command is a workaround.

My question is: Can a command be run within my script to update dynamic holes, and what would that script look like?

Offline PipeFitter72

  • Full Member
  • ***
  • Posts: 228
  • Country: us
  • Gender: Male
the only way I could get it to not make Dynamic holes from Revit is to set it OFF and uncheck draw and develop. You probably want to review you straight settings also. We have a plasma on our coil line, so we occasionally cut dynamic holes at the decoiler.
Union CADD Database Administrator

Offline AN-detail

  • Active Member
  • **
  • Posts: 18
  • Country: us
  • Gender: Male
The vanilla Revit MAJ export does not give you the option to turn holes off, but there is a switch in the API. You need an addin to access it. I will release mine some time in the near future.

If your straight ITM has Option 'Machine Cut If Dynamic Branches' set to 'Yes' and has taps connected in Revit, it will export with holes and Cut Type: Machine Cut.

To prevent in the future, edit the item in your database to set that option to 'No'. To deal with your current model or if you need that to remain 'Yes', run a script that sets it to 'No' and then wipe the holes.

Execute this script:
Code: [Select]
select item.cid
case 866
item.option[Machine Cut If Dynamic Branches].value = "No"
end select
item.update()

Then mapfilter CID 866 and run command 'UPDATEDYNAMICHOLES'

Edit: whoops, I thought this was in the CADmep Users forum, not CAM. I guess you are asking if you can execute a command within a script. I'm not aware of a way to do that. See here: http://www.xtracad.com/forum/index.php/topic,16090.msg106986.html

« Last Edit: Oct 03, 2025, 16:17:59 PM by AN-detail »