Lee C.S. Young is a developer and mechanical designer based in Peterborough, Ontario. His primary focus is the SolidWorks Enterprise PDM API, but he dabbles in web development (backend) and mechanical design using SolidWorks.

EPDM: API Data Helper Class

Since I have trouble remembering what the members are of the EdmCmdData structs I wrote a helper class. Instead of mlObjectID1, mlObjectID2, etc, I am presented with the corresponding data for the struct. So instead of: foreach (EdmCmdData cmdData in data) { int fileId = cmdData.mlObjectID1; int parentFolderId = cmdData.mlObjectID3; IEdmFile5 file = (IEdmFile5)vault.GetObject(EdmObjectType.EdmObject_File, fileId);…