MichaelCsikos
1383 Views, 7 Replies

Creating an MAJ file from scratch with C#

I am an ADN member and have already asked this question through DevHelp Online, but they directed me here as they are not supporting the Fabrication products.

 

Duct fabricators have requested that we produce an MAJ job file through our MEPtrix software (an AutoCAD add-in).

MAJ files can be imported and exported by Fabrication CAMduct, Fabrication CADmep and Revit (with the Revit Extension for Fabrication installed). I see that there is now a Fabrication API, but the API cannot create new job databases, nor can it create new duct. And of course, it requires a license of a Fabrication product.

Is there any other way of producing a data file which can be imported by a fabricator into CAMduct? Is there a specification for such a file format? The Revit extension makes use of methods in the Autodesk.Revit.DB.Fabrication namespace in the Revit API, but the methods used are internal. If MAJ files are used as a data exchange format, where is the spec for it? What about ITM, CSV or TXT files?

Did you ever get an answer as to whether there is a specification for writing a MAJ file?

Hi @josh_d_andersonPEJ3C no, I didn't discover anything more than what I had included in this question. It seems Autodesk is very secretive about this and not interested in letting anyone else use the MAJ file format.

LanceTSM
in reply to: MichaelCsikos

No, I gave up on this idea about 7 years ago.

smurck
in reply to: MichaelCsikos

Sysque got around this with a txt file so it can be done.

There’s no public spec for MAJ files since they’re proprietary. Try exporting to CSV or TXT and see if CAMduct can handle those.

Yeah, creating MAJ files from scratch is tough without Fabrication tools. Maybe try exporting to CSV or TXT and see if the fabricators can convert them.