cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted
Participant

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

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

Tags (1)
3 REPLIES 3

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

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.


Martin Hanák

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

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?

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

Hi,

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


Martin Hanák