Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hi all, Greetings!
I need to automate export part/asm to STEP format with different options OR through different profile files in Creo. I checked Mapkey does not work. Anybody suggests how to do it? OR any API or batch files that can solve/work.
Try to change config.pro option "export_profiles_step" (pointing to .dep_step) and do export.
If this will be working for you than you can write two mapkeys: each for a profile.
In mapkey:
1. change option (path and file .dep_step)
2. export to step
Thank you @YaroslavSin
Sorry replying late!!!
It works with mapkey by selecting different profiles manually.
But not able to automate as once we change config option, we need to restart Creo to replicate changes.
Even if you create mapkey's with different profiles (by selecting from option) it takes default profile set for all mapkey's created.
So mapkey doesn't work for automate STEP export with different profiles.
You can load a dep_step file in export window.
In my config.pro
mapkey $F5 will load "def_profile_ap214.dep_step" from the current working dir and makes export to step.
mapkey $F6 will load "def_profile_ap242.dep_step"
Thank you again @YaroslavSin .
I tried using map keys provided by you, but it behaves differently every time I export.
Does coding work?
Hi @SikSha_4499023 yes, if you want to go down the coding path then you can use OTK Java Free (formerly called JLink) or Web.link (Javascript api) to do this, with no extra license required. Alternatively you can use the other APIs, the Visual Basic and C / C++ object toolkits, but those are license encumbered.
In the Java toolkit, you need the method
Model.ExportIntf3D (String NewFileName, ExportType ExpType, /*optional*/ String ProfileFile)
Where ExportType is EXPORT_STEP and the optional string is the full path to the profile that you want to use to manage the export settings.
I hope that helps,
Chris
Hi @SikSha_4499023,
I wanted to see if you got the help you needed.
If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.
Please note that industry experts also review the replies and may eventually accept one of them as solution on your behalf.
Of course, if you have more to share on your issue, please pursue the conversation.
Thanks,
If you're using OTK Java free (jlink), the STEP output process lets you choose your options in the code. It's a steep learning curve to get it working though. Look at STEP3DExportInstructions in the documentation. You can set most options in there.