- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I work at a laser cutting company and our tube laser software only accepts .step files with the tube axis aligned with the Y axis. Up until this point we've been using direct edits to align our parts with Y, then exporting as step, then rolling back the timeline so the parts are in their correct orientation. Unfortunately this means that quickly re-exporting a batch of parts is anything but quick.
What I would like to do is to create a rule that will ask you to select either an edge (in the case of something like RHS) or a cylinder (in the case of round tube,) and then align that edge or cylinder with the Y axis. From there I already have code that can export as a .STEP, and it shouldn't be to challenging to find code that can iterate through unique parts in an assembly.
I am expecting that I can use .CommandManager.Pick to select either the edge or cylinder, but I've been unable to find anything about rotating a part to a specific alignment; all of the things I've been able to find are either for assemblies or for doing it manually. I should specifically mention that we're using .ipt files, which we're then exporting as .step for the laser.
Is anyone able to provide a code snippet or a method I can use to figure out the alignment step in this process?
Thank you for any and all help.
Solved! Go to Solution.