Documentación de la API > View manager > Object ProXsec > Function ProXsecParallelCreate
Function ProXsecParallelCreate
Description
Create a cross section parallel to a given plane.
Replacement in Object TOOLKIT:
Synopsis
#include <ProXsec.h>
ProXsecParallelCreate
(
ProSolid solid_owner
/* (In)
Solid in which the xsec is to be created. Cannot be NULL.
*/
ProName xsec_name
/* (In)
Name of the cross section. Cannot be NULL. Cannot be empty.
*/
int plane_id
/* (In)
ID of the given plane. This plane must belong to the solid_owner.
*/
double distance
/* (In)
Distance from the given plane to the cross section plane.
*/
ProXsec* p_xsec
/* (Out)
Handle to created cross section. Cannot be NULL.
*/
ProDimension* p_dimension
/* (Out)
Handle for created dimension between given plane and the cross section.
*/
)
Returns
Cross section successfully created.
Model is in read-only state.
Invalid input parameters: NULL arguments, or solid_owner is not a solid, or empty xsec_name, or plane_id does not correspond to a plane.
Cross section with such name already exists.
Failed to create cross section.
Sample Code References
User Guide References
¿Fue esto útil?