Hi, is there a developer's guide to access autocad mep api ? Drawing pipes, fittings etc. by using plugin at c# ?
Solved! Go to Solution.
Solved by steven.williams.as. Go to Solution.
Solved by pendean. Go to Solution.
Not that I know of. The option is to search the forums and the Autodesk University (years 2007 to 2010).
Post your questions on the AutoCAD .NET forum that someone will probably help: https://forums.autodesk.com/t5/net/bd-p/152 .
Links that can help:
https://adndevblog.typepad.com/aec/2012/10/extracting-the-size-of-a-pipe-in-ame-using-net-api.html
http://www.theswamp.org/index.php?PHPSESSID=s6ar950492fn8vg53a0987rmp5&topic=43114.0
https://adndevblog.typepad.com/aec/2013/05/api-webcast-archive.html
Hello
What exactly do you need to do with .NET or C# in Autocad MEP ?
I have a mini plug in, and user selects some points and I want the plug-in to draw&place pipes, fittings etc. according to those point coordinates.
If there is a method that draws pipe and fitting, I can basically send the input data (coordinates, elevation, type of pipe/system, sloping) and method draws accordingly. or I have to create the method, that does this above.
Thank you!
Since I found this post and once wanted an answer to similar questions, someone else might too. I have had the same problem trying to learn fabrication API, there just isn't much information organized out there for a beginner.
@Gepaha linked to several good resources. In addition, I have also found it helpful to go through the sessions from Autodesk University specifically talking about the Fabrication CADmep API. Also, the examples installed with the SDK/CADmep are very helpful -- you can find them in your program install location. Since I am using 2020 and the default installation folders, mine is in C:\Program Files\Autodesk\Fabrication 2020\SDK\Samples\CSharp. The API documentation is hard to use, but does have everything in one place and hyperlinked, C:\Program Files\Autodesk\Fabrication 2020\SDK\FabricationAPI.chm. Finally, since CADmep is built on AutoCAD, you may need to look at AutoCAD API documentation and examples to fill in the details. Try the first few Google search results.
One more note -- the hints IntelliSense provides in Visual Studio are excellent. Get a recent version, add to your references FabricationAPI.dll (from C:\Program Files\Autodesk\Fabrication 2020\CADmep\), acmgd.dll + acdbmgd.dll + adcoremgd.dll (from C:\Program Files\Autodesk\AutoCAD 2020\), and Visual Studio will provide hints about methods/properties/enums/etc., return types, parameters, overloads, etc.
Can't find what you're looking for? Ask the community or share your knowledge.