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

ModelViews issue #118

Open Brent-bai opened 7 months ago

Brent-bai commented 7 months ago

var view =part.ModelViews.Filter<ISwNamedView>().DefaultIfEmpty(null); Code above throw a System.NotImplementedException:“The method or operation is not implemented.” 'part' is a part component in a assembly. as below: views_error

The variable ModelViews also does not show any results, as below: modelview_error

xcad.net version: lasted 0.8.0 beta.4.9.0.1

artem1t commented 7 months ago

Fixed in 0.8.0-beta.4913

Brent-bai commented 7 months ago

Other Problems happened:

  1. var views =part.ModelViews.Filter<ISwNamedView>().DefaultIfEmpty(null); Filter not worked, the collection contains all the modelviews
  2. Property ISwNamedView.Transform throw a System.NullReferenceException:“Object reference not set to an instance of an object.” views @artem1t