Macro in step AP214

Hello, I found several macros allowing the registration of assemblies in .step, however there are 2 "formats" of step.

The AP203 AND AP214 format. After several tests I noticed that the second format manages the colors of the parts.

How can you impose the AP214 step format in a macro?

 


converteren_-_part_naar_step.swp

Hello

 

Add this line: Step = swApp.SetUserPreferenceIntegerValue(swStepAP, 214) just before your 2 lines there: 

Extensie_oud = ". SLDPRT"
Extensie_nieuw = ". STEP"

Normally it should work

4 Likes

THANK YOU!

THANK YOU!

Hello

I'm digging up the subject because this macro interests me.

Being completely ignorant in programming, are the 2 lines integrated into the file to be downloaded? I looked a little but didn't understand anything... if someone could enlighten me, by thanking you.

Manu.

 

Hello

Manu from Besançon, no this line is not the code of the original message. It must be added as described by neroz.

Attached are the added lines (for my part I force AP214 + export in solid/surface).


converteren_-_part_naar_step.swp

Hello How can I download it?