Hi all
I want to export a component in X_T with the origin of the assembly in which I inserted it.
The idea would be to select the component and the origin of the assembly in the Manager tree and with a macro to export it according to this origin.
Thank you for the help you could give me on this subject
Hello
I just tried a quick method that works:
- Select the component + assembly origin
- in the featureManager, right-click on the component (or origin) and then " Form a new subassembly "
- right-click on the created subassembly and then " Open subassembly " icon
- From the open subassembly, " Save as " Parasolid file.
- There you go.
BE CAREFUL NOT TO Save the Master Assembly so as not to save the changes to the component that has become a subassembly
Hello Sylk,
Thank you for your interest in my subject,
I will test your solution and I will see if it can be enough for our BE.
Yoh
One option could be hide all the components except the one you want to export. And then save assembly as part in a different folder location (file name can be same as the part). Repeat this for all the desired components. Close the assembly, and then open those saved parts, and export again as XT. Finally delete the saved part files.
Other option is to get the component position w.r.t. assembly origin. Use move body in the part to relocate the bodies in the part, using the assembly position, export as XT, and undo the move body feature. Here is a macro to get component positions VBA macro to export component positions to CSV via SOLIDWORKS API
Third option is to edit the component within assembly, and add a new coordinate system in the part w.r.t. assembly origin. Now use this coordinate system as the desired coordinate system when exporting that components as XT.
Thank you for your contribution, I'll try all this but I would like to avoid so much manipulation, I think that with a macro it is possible to edit the part in the assembly and copy the coordinate system of the assembly.
I am trying to see in this direction.
I agree @Silver_Surfer . I had thought about this option.
Yes, all these options are more or less automatable via a macro.