Creating an MAJ file from scratch with C#

MichaelCsikos
Explorer

Creating an MAJ file from scratch with C#

MichaelCsikos
Explorer
Explorer

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?

0 Likes
Reply
1,380 Views
7 Replies
Replies (7)

josh_d_andersonPEJ3C
Community Visitor
Community Visitor

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

0 Likes

MichaelCsikos
Explorer
Explorer

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
Advocate
Advocate
0 Likes

MichaelCsikos
Explorer
Explorer

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

0 Likes

smurck
Contributor
Contributor

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

0 Likes

boliekcubarti2436
Explorer
Explorer

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.

0 Likes

boliekcubarti2436
Explorer
Explorer

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.

0 Likes