Save a model as a new file name.
The extension determines what type of file to save as.
Valid extensions for Assemblies are the following...
Original Format | Save As Format | Description |
asm | bom | Bill of Materials |
asm | ed | Product View, EasyDraw CAD File |
asm | edz | ProductView 3D Viewer Compressed Package 3D/2D File |
asm | jpg | Joint Photographics Group Format |
asm | pvs | Product View File |
asm | pvz | Product View File with Metadata |
asm | stl | Stereolithography Format |
asm | stp | STEP Product Data |
asm | wrl | Virtual Reality Modeling Language |
Parameters
model (string) - the model name
AsFileName (string) - the output file name with extension.
NewCommonName (optional string) - the new common name of the newly saved file.
If specified an additional "Save" is done as a second step due to issues with CREO.
Return Value
none
Remarks
The source model type determines which output file types are supported.
IMPORTANT! due to a glitch in the CREO API SaveAs clears the common name, if no NewCommonName is specified the common Name will be blank.
Examples
CAD.Asm.SaveAs("Model", "NewModel.asm")