ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
JMJianhao Ma17/03/2025

Hello everyone,
I am developing a plugin using the SolidWorks API and encountered an issue while copying a width mate feature. The matedata.TabSelection is null, causing the mate feature creation to fail. Below is the relevant code snippet:

private void CopyWidthMate(DesignObject srcDesignObject, DesignDoc targetDoc, DocMap docMap, DesignObject targetParent)
{
IAssemblyDoc assembly = (IAssemblyDoc)targetDoc.swModel