Author Topic: Revit assemblies export as block  (Read 3878 times)

0 Members and 1 Guest are viewing this topic.

Offline bolshevik09Topic starter

  • Active Member
  • **
  • Posts: 7
  • Country: us
  • Gender: Male
Revit assemblies export as block
« on: Oct 07, 2025, 19:44:22 PM »
i am using fabrication parts to model in revit and creating spool assemblies for prefab. The GC is requesting that i provide a cad file with all of the spools saved as blocks (because they are using Doxel). I have no problem exporting each assembly using the MAJ utility, but then i have to manually select the parts and create a block out of it. This is extremely time consuming.

Is there a way to export the assemblies saved as individual blocks? I would need the blocks named as their assembly name

Offline cadbyken

  • Premier Member
  • *****
  • Posts: 5475
  • Country: us
  • Gender: Male
Re: Revit assemblies export as block
« Reply #1 on: Oct 08, 2025, 12:07:50 PM »
There is a way to make a selection set using mapfilter. If you could populate a list, then use a lisp routine to do each iteration, that is one path. The list can be created by converting a screenshot of the project browser. I use SnagIt that has not only the screen capture, but does it while scrolling and converts to text.
Ken Taylor - Atlantic Constructors, Inc
BIM Technology & Database Manager
Revit - not ready for Primetime given all of the add-ons, work arounds, and general issues with Fabrication in Revit.  Tired of them taking our money for little results.

Offline bolshevik09Topic starter

  • Active Member
  • **
  • Posts: 7
  • Country: us
  • Gender: Male
Re: Revit assemblies export as block
« Reply #2 on: Oct 09, 2025, 15:42:51 PM »
There is a way to make a selection set using mapfilter. If you could populate a list, then use a lisp routine to do each iteration, that is one path. The list can be created by converting a screenshot of the project browser. I use SnagIt that has not only the screen capture, but does it while scrolling and converts to text.
Unfortunately i dont use lisp very often and i wouldnt know how to write that. I tried the Mapfilter and was able to select all of the elements for the spool.

If i understand this correctly, the lisp would run mapfilter, filter out a spool, create a block of it naming it with a integer at the end, and then repeat?

Offline cadbyken

  • Premier Member
  • *****
  • Posts: 5475
  • Country: us
  • Gender: Male
Re: Revit assemblies export as block
« Reply #3 on: Oct 09, 2025, 19:55:17 PM »
Yes. There are several threads on Mapfilter like this one https://www.xtracad.com/forum/index.php/topic,8168.msg111634.html#msg111634

One of the keys is to use the Search/Filter for Objects. When you use the group, it is written back into a txt file that you can look at to help you out.

The lisp routine just helps automate it.
  Get the name
  Select by the name
  Create block by the name.
Ken Taylor - Atlantic Constructors, Inc
BIM Technology & Database Manager
Revit - not ready for Primetime given all of the add-ons, work arounds, and general issues with Fabrication in Revit.  Tired of them taking our money for little results.

Offline cadbyken

  • Premier Member
  • *****
  • Posts: 5475
  • Country: us
  • Gender: Male
Re: Revit assemblies export as block
« Reply #4 on: Oct 09, 2025, 20:02:10 PM »
A manual way of doing it is cut and paste
  Cut the name
  openjob <paste name>
  select all
  block <paste name>
  hide block
  Start back at top of list

You could also use an old time AutoCAD script (not to be confused with Fabrication MEP scripting) as well. Build it by creating a list of the spool names as mentioned above. Don't forget to suppress the dialog boxes in that example.

Ken Taylor - Atlantic Constructors, Inc
BIM Technology & Database Manager
Revit - not ready for Primetime given all of the add-ons, work arounds, and general issues with Fabrication in Revit.  Tired of them taking our money for little results.

Offline Martin M

  • Active Member
  • **
  • Posts: 5
  • Country: us
  • Gender: Male
Re: Revit assemblies export as block
« Reply #5 on: Oct 12, 2025, 09:12:17 AM »
I'm not familiar with Doxel's expected file format or data, but maybe you can isolate each Revit assembly, manually or by creating assembly views, then export the view to DWG. The assembly view's name will likely reflect the assembly name, but you can also change it as you export. The resulting DWG has each part as a named block and the DWG will be your named assembly block. Import/Insert all the assembly blocks into an empty DWG to combine, if needed.

Offline bolshevik09Topic starter

  • Active Member
  • **
  • Posts: 7
  • Country: us
  • Gender: Male
Re: Revit assemblies export as block
« Reply #6 on: Oct 14, 2025, 16:47:34 PM »
I'm not familiar with Doxel's expected file format or data, but maybe you can isolate each Revit assembly, manually or by creating assembly views, then export the view to DWG. The assembly view's name will likely reflect the assembly name, but you can also change it as you export. The resulting DWG has each part as a named block and the DWG will be your named assembly block. Import/Insert all the assembly blocks into an empty DWG to combine, if needed.

Doxel is requiring each assembly to be saved as a block in one combined DWG. Sounds like your method would work but i would also have hundreds of assemblies per floor. I was hoping to be able to save each assembly as 1 block all at once. And not have hundreds of cad files to create and import per floor. I know scripting could potentially do this, but i dont have the knowledge to create this lisp

Offline cadbyken

  • Premier Member
  • *****
  • Posts: 5475
  • Country: us
  • Gender: Male
Re: Revit assemblies export as block
« Reply #7 on: Oct 14, 2025, 19:09:50 PM »
You need to find a way to push the parameters into a field that imports into AutoCAD. Several options are the Fabrication Notes and Item number fields.

When you import that, the script/lisp could run to make that selection set and block creation pretty quickly.

Do you have a way to push those parameters over? It can be done via an API app or Dynamo.
Ken Taylor - Atlantic Constructors, Inc
BIM Technology & Database Manager
Revit - not ready for Primetime given all of the add-ons, work arounds, and general issues with Fabrication in Revit.  Tired of them taking our money for little results.

Offline Martin M

  • Active Member
  • **
  • Posts: 5
  • Country: us
  • Gender: Male
Re: Revit assemblies export as block
« Reply #8 on: Oct 14, 2025, 19:32:40 PM »
Doxel is requiring each assembly to be saved as a block in one combined DWG. Sounds like your method would work but i would also have hundreds of assemblies per floor. I was hoping to be able to save each assembly as 1 block all at once. And not have hundreds of cad files to create and import per floor. I know scripting could potentially do this, but i dont have the knowledge to create this lisp

Please try the attached AutoLISP file. It's been a long while since I've worked with AutoLISP, but I tested this and it worked for one of my drawings. Tried to have AI refresh my memory but it kept spitting out made up functions for this stuff.

Open your drawing with all the spools in it. Drag the file into AutoCAD to load it, then use the MAKESPOOLBLOCKS command. The user is prompted to choose to place the block insert point at the internal origin of the drawing (0,0,0) or at one of the ITM endpoints somewhere within the spool.