API: SheetMetal:Using Multi-Body Flat Patterns In a Drawing

Document created by Michael Kozikowski Employee on Aug 19, 2011Last modified by Joyce Bossom on Nov 2, 2017
Version 7Show Document
  • View in full screen mode

This is a VBA macro example that demonstrates how to create drawing views for each sheetmetal body flat pattern feature in a multi-body flat pattern scenario. SolidWorks limits the number of "unsuppressed" (flattened state) flat pattern features to one unique instance, while the rest are to be suppressed. So when using a multi-body flat pattern, which has multiple flat pattern features, you need to create a configuration for each flat pattern feature and have just one of them unsuppressed in each configuration. This download example demonstrates how to create a drawing and separate drawing views for each configured flat pattern feature. The macro uses IDrawingDoc::CreateDrawViewFromModelView3(). No part document is supplied here, just the macro. Please edit the macro for your specific model filename and location for the model and drawing template. 

 

Note:
- Subscription Services required for full access.

- Looking for more API Examples?

 

Copyright © 2011 Dassault Systèmes SolidWorks Corp. All rights reserved.
Do not distribute or reproduce without the written consent of Dassault Systèmes SolidWorks Corp.

Outcomes