xarial / codestack

Library of SOLIDWORKS API, SOLIDWORKS PDM API, VBA and Desktop code examples, applications macros and tutorials.
https://www.codestack.net
MIT License
193 stars 71 forks source link

Export flat patterns from SOLIDWORKS part or assembly components #122

Open Lookieuk opened 2 years ago

Lookieuk commented 2 years ago

Hi there am getting this error

when using the Export flat patterns from SOLIDWORKS part or assembly components have changed the code to allow for the output to sort in thickness, cant seem to get it to work

image image

all help will be grateful

thanks lookieuk

Skylos32 commented 2 years ago

It's been improved since the video was uploaded. For cut-list custom property you need to specify <$CLPRP:Sheet Metal Thickness> Check the description for more information https://www.codestack.net/solidworks-api/document/sheet-metal/export-all-flat-patterns/

Lookieuk commented 2 years ago

thanks very much :) is there a way to change all the parts in my assembly to have the cultist properties added

and not sure if there a way for the qty off each part or same parts within the assembly to show in the file name or dwg drawing

image

Lookieuk commented 2 years ago

Have another problem the code works on parts only when opened but not on the assembly file, come up with this error

image

The parts have cut-list

Fud89 commented 2 years ago

Hi ive added modded this line so it pulls thickness and adds it to file name when it saves hope this helps image