Methods Introduced:
The method
wfcSection::AddEntity takes as input the
wfcSectionEntity object that defines the section entity type using the enumerated type
wfcSection2dEntType. The following types of entities are defined:
|
• |
wfcSEC_ENTITY_2D_CENTER_LINE |
|
• |
wfcSEC_ENTITY_2D_CIRCLE |
|
• |
wfcSEC_ENTITY_2D_COORD_SYS |
|
• |
wfcSEC_ENTITY_2D_POLYLINE |
|
• |
wfcSEC_ENTITY_2D_SPLINE |
|
• |
wfcSEC_ENTITY_2D_CONSTR_CIRCLE |
|
• |
wfcSEC_ENTITY_2D_BLEND_VERTEX |
|
• |
wfcSEC_ENTITY_2D_ELLIPSE |
|
• |
wfcSEC_ENTITY_2D_SEC_GROUP |
Some classes in
Creo Object
TOOLKIT C++ allow you to create and modify various types of section entities. The class
wfcSectionEntity is the parent class for the following entity classes:
|
• |
wfcSectionEntityBlendVertex |
|
• |
wfcSectionEntityCenterLine |
|
• |
wfcSectionEntityEllipse |
|
• |
wfcSectionEntityPolyline |
The method wfcSection::AddEntity outputs an integer that is the identifier of the new entity within the section. The Creo Object
TOOLKIT C++ application needs these values because they are used to refer to entities when adding dimensions.
The method wfcSection::DeleteEntity enables you to delete a section entity from the specified section.
The method wfcSection::GetEntity takes as input the integer identifier for a section entity and outputs a copy of the section entity object.
Use the method wfcSection::ListSectionEntities to retrieve the list of entities present in the specified section.
The method wfcSection::GetEntityIds returns the array of integer identifiers for the all the entities in the specified section.
The method wfcSectionEntity::GetSectionEntityType returns the section entity type using the enumerated type wfcSection2dEntType.
Section Entity Arc
Methods Introduced:
The method wfcSectionEntityArc::Create creates an arc entity in a specified section using the center, start and end angles, and radius of the arc as inputs.
The methods wfcSectionEntityArc::GetCenter and wfcSectionEntityArc::SetCenter retrieve and set the center of the arc using the pfcPoint2D object.
The methods wfcSectionEntityArc::GetEndAngle and wfcSectionEntityArc::SetEndAngle retrieve and set the end angle of the arc.
The methods wfcSectionEntityArc::GetRadius and wfcSectionEntityArc::SetRadius retrieve and set the radius of the arc.
The methods wfcSectionEntityArc::GetStartAngle and wfcSectionEntityArc::SetStartAngle retrieve and set the start angle of the arc.
Section Entity Conic
Methods Introduced:
The method wfcSectionEntityConic::Create creates a conic entity in a specified section using the first, second, and shoulder endpoints and parameter of the cone as
inputs.
The methods wfcSectionEntityConic::GetFirstEndPoint and wfcSectionEntityConic::SetFirstEndPoint retrieve and set the first endpoint of the conic entity.
The methods wfcSectionEntityConic::GetSecondEndPoint and wfcSectionEntityConic::SetSecondEndPoint retrieve and set the second endpoint of the conic entity.
The methods wfcSectionEntityConic::GetParameter and wfcSectionEntityConic::SetParameter retrieve and set the parameter of the conic entity.
The methods wfcSectionEntityConic::GetShoulderEndPoint and wfcSectionEntityConic::SetShoulderEndPoint retrieve and set the shoulder endpoint of the conic entity.
Section Entity Spline
Methods Introduced:
The method wfcSectionEntitySpline::Create creates a spline entity in a specified section using the tangent type, points, and start and end angles of the tangent of
the spline as inputs.
The methods wfcSectionEntitySpline::GetTangentType and wfcSectionEntitySpline::SetTangentType retrieve and set the type of tangent in the spline using the wfcSplineTangentType object.
The methods wfcSectionEntitySpline::GetPoints and wfcSectionEntitySpline::SetPoints retrieve and set the points in the spline using the pfcPoint2Ds object.
The methods wfcSectionEntitySpline::GetStartTangentAngle and wfcSectionEntitySpline::SetStartTangentAngle retrieve and set the start angle of a tangent in the spline.
The methods wfcSectionEntitySpline::GetEndTangentAngle and wfcSectionEntitySpline::SetEndTangentAngle retrieve and set the end angle of a tangent in the spline.
Section Entity Text
Methods Introduced:
The method wfcSectionEntityText::Create creates a text entity in a specified section using the first and second corner of the text box and the text to be entered
inside the text box as inputs.
The methods wfcSectionEntityText::GetFirstCorner and wfcSectionEntityText::SetFirstCorner retrieve and set the first corner of the text box using the pfcPoint2D class.
The methods wfcSectionEntityText::GetSecondCorner and wfcSectionEntityText::SetSecondCorner retrieve and set the second corner of the text box using the pfcPoint2D class.
The methods wfcSectionEntityText::GetFontName and wfcSectionEntityText::SetFontName retrieve and set the font of the text to be entered.
The methods wfcSectionEntityText::GetComment and wfcSectionEntityText::SetComment retrieve and set the comment or text to be entered inside the text box.