Skip to main content
1-Visitor
June 26, 2019
Question

How to set the Application protocol STEP export profile option to ap214_is via VB API

  • June 26, 2019
  • 1 reply
  • 2273 views

Hi,

i'm writing a function to export a .prt file in step file. 

 

Dim instructions As IpfcExportInstructions
Dim stepInstructions As IpfcSTEP3DExportInstructions

Dim flags As IpfcGeometryFlags
Dim outPath As String

flags = (New CCpfcGeometryFlags).Create()
flags.AsSolids = True

stepInstructions = (New CCpfcSTEP3DExportInstructions). _
Create(EpfcAssemblyConfiguration.EpfcEXPORT_ASM_SINGLE_FILE, flags)
instructions = stepInstructions

outPath = session.GetCurrentDirectory() + model.InstanceName.ToLower + ".stp"

model.Export(outPath, instructions)

 

This code works fine but the step file is in AP203 format.

How i can set the format in ap214 via VB API?

Thanks

1 reply

24-Ruby III
June 26, 2019

Hi,

see https://community.ptc.com/t5/Part-Modeling/Creo-4-0-vs-Creo-3-0-Configuration-Options/td-p/497388 . Maybe this discusssion will direct you in the right direction.

Gennaro1-VisitorAuthor
1-Visitor
June 26, 2019

Martin,

thanks for your reply. Adding the step_export_format ap214_is statement to the config.pro file everything works fine, but I would like to automate the procedure via vb API.

it's possible to do it?

24-Ruby III
June 26, 2019

Hi,

I am sorry I can't help you ... I don't have deep knowledge of vb API.