xarial / xcad

Framework for developing CAD applications for SOLIDWORKS, including add-ins, stand-alone applications, macro features, property manager pages, etc.
https://xcad.net
MIT License
126 stars 25 forks source link

About standalone application problems #121

Open Brent-bai opened 7 months ago

Brent-bai commented 7 months ago

May be they are not issues:

  1. It's very slow to read the assembly design tree. In my code, it consumes 2~4 seconds to get the document by ISwComponent.ReferenceDocument. When I set CommandInProgress = true, it solved.
  2. It throws a exception when the application getting the root component's children which is an assembly by ISwComponent.Children. The code "vChildComps.Count" throws System.AccessViolationException:“Attempted to read or write protected memory. This is often an indication that other memory is corrupt.”
    solidworks 2018SP5, xcad.net 8.0beta 4913
Brent-bai commented 7 months ago

problems2 test in solidworks 2021, not happened.