I try in vain to create a macro that would allow to save a STEP (AP214) of the file in use. The particularity is to use property names specific to the active configuration (because file with several configurations) as the file name. The properties to be used are " N_PLAN " and " IND_SUIVANT " separated by a " - " (Dash of 6). And finally, I want to save this file in this directory: Z:\STEP
Example: N_PLAN Property: PS270 IND_SUIVANT Property: B So the name of the final file is: PS270-B.step
It saves me the file, in the right folder... but on the other hand, the name of the output file is the same as the SLDPRT file. It does not use configuration-specific properties
Update: I just retested with another file, it doesn't work anymore... Weird thing
I didn't look at the macro of @OBI_WAN ... But what is certain is that it would be more positive for you to open it and try to understand what is in it. Having a turnkey thing won't help you when it doesn't work anymore (change of version, etc)
Basically, try, try and come and ask questions about your journeys
You had time to post your request. Take 5 minutes to explain more clearly what is not working. It's also a certain respect for @cyril.f and @OBI_WAN who have wasted some time to help you solve your problem.
Hello You just have to go to the macro editor and activate some references (there is a function that controls the presence of the folder and creates it if necessary but you have to activate the references). It goes through this (tools->references)
The only thing you forget in your macro @Cyril.f was the forgetfulness to uncomment your 2 constants added for testing. If you correct these 2 lines (exchange constants to test your export) it works perfectly.
Edit: The apostrophe puts a line in comment and this line is therefore not processed. Your export was therefore done to c:\Export with the name -.step since it did not find the properties.