GETTING STARTED WITH THE CADMEP SAMPLE ADDIN

STEP 1: DISCONNECT THE NEGATIVE BATTERY TERMINAL

  1. Navigate to C:\Program Files\Autodesk\Fabrication 2021\SDK\Samples\CSharp.
  2. Right click the FabricationSample folder and select Copy.
  3. Paste this folder in a working directory somewhere, it’s nice to leave the SDK Project unaltered for later reference.

STEP 2: COPY THE ADDIN BUNDLE

  1. Open the copied FabricationSample folder and navigate to the ACAD directory.
  2. Right click the FabricationSample.bundle folder and select Copy.
  3. Navigate to C:\ProgramData\Autodesk\ApplicationPlugins and Paste the bundle folder.

STEP3: OPEN THE PROJECT AND UPDATE THE REFERENCES

  1. Open the FabricationSample folder and double click FabricationSample.csproj.
  2. In the Solution Explorer, expand References. We can see that there are four unresolved References.
  3. Right click References and select Add Reference.
  4. Click Browse and navigate to C:\Program Files\Autodesk\AutoCAD 2021.
  5. Select accoremgd.dll, click Add, click OK.
  6. Repeat steps 3 through 5 for acdbmgd.dll, and acmgd.dll.
  7. Right click References and select Add Reference one more time.
  8. Click Browse and navigate to C:\Program Files\Autodesk\Fabrication 2021\CADmep.
  9. Select FabricationAPI.dll, click Add, click OK.

STEP 4: REMOVE THE AUTODESK PREBUILD EVENT AND BUILD THE SOLUTION

  1. In the Solution Explorer, right click the FabricationSample Project and select Properties.
  2. Navigate to the Build Events Tab.
  3. Delete the pre-build event command line text.
  4. Click File, click Save All, click Save.
  5. Click Build >> Build Solution.

STEP 5: COPY THE ADDIN DLL

  1. Navigate to the FabricationSample\bin\x64\Debug folder.
  2. Right click the FabricationSample.dll file and select Copy.
  3. Navigate to the C:\ProgramData\Autodesk\ApplicationPlugins\FabricationSample.bundle folder.
  4. Paste the newly built DLL file.

STEP 6: RUN THE ADDIN

  1. Open CADmep 2021.
  2. Type FABAPI at the Command Line and hit enter.
  3. The new DLL we built is not signed so we must verify the publisher.
  4. Play with the Addin!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s