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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

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

Gennaro
4-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

3 REPLIES 3

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
Gennaro
4-Participant
(To:MartinHanak)

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?

Hi,

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


Martin Hanák
Announcements


Top Tags