Hi all,
I'm writing a small VB6.0 app that saves multibody part to a numberof STL's along with a file that's used as command/preprocessorbatch file for our casting analysis software (MAGMAsoft).
App checks body folders (as defined by designer), selects body bybody in certain order (as required by MAGMA modeling principle) andspits them out as STL, while appending certain info to an ASCIIfile.
Problem is in STL triangulation time. At complex models(hydrodynamic shapes, many bodies), SolidWorks triangulates ALLbodies first, then asks do I want to save all bodies or only aselected one (it does this for each body again and again). While Ican save all these bodies in separate files in one hit, it be muchbetter option for me to be able to do it via code.
So, my questions are:
1. Is there a way to make SW triangulate and save *only* selectedbody, without triangulating "kitchen and the sink" first?
2. Short of workable answer to Q1, what is the best way to delete abody using VB6.0?
Cheers and thanks,
MladenSolidworksApi macros
I'm writing a small VB6.0 app that saves multibody part to a numberof STL's along with a file that's used as command/preprocessorbatch file for our casting analysis software (MAGMAsoft).
App checks body folders (as defined by designer), selects body bybody in certain order (as required by MAGMA modeling principle) andspits them out as STL, while appending certain info to an ASCIIfile.
Problem is in STL triangulation time. At complex models(hydrodynamic shapes, many bodies), SolidWorks triangulates ALLbodies first, then asks do I want to save all bodies or only aselected one (it does this for each body again and again). While Ican save all these bodies in separate files in one hit, it be muchbetter option for me to be able to do it via code.
So, my questions are:
1. Is there a way to make SW triangulate and save *only* selectedbody, without triangulating "kitchen and the sink" first?
2. Short of workable answer to Q1, what is the best way to delete abody using VB6.0?
Cheers and thanks,
MladenSolidworksApi macros
