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

FlatPatternActivator #105

Closed fatih1445 closed 8 months ago

fatih1445 commented 1 year ago

FlatPatternActivator not working on multibody sheet metal parts.

image

artem1t commented 10 months ago

Could you please attach this sample model?

fatih1445 commented 8 months ago

gl_ku007.zip

artem1t commented 8 months ago

Thank you for the sample model. The issue here is that the active configuration of this file is a SM-FLAT-PATTERN and you cannot create flat pattern from the flat pattern configuration. You can try this by trying to create flat pattern of this file manually (there is not flat pattern view).

Just activate your top configuration and it will work. In version 0.8.X there is a better exception for this case

Xarial.XCad.SolidWorks.Documents.Exceptions.InvalidFlatPatternConfigurationException: 'The flat pattern drawing view is invalid as it does not contain the flat pattern feature in the flattened state. This is usually caused by an invalid SM-FLAT-PATTERN configuration in the part file. Try removing this configuration'

fatih1445 commented 8 months ago

Thank you very much for your time.