Methods Introduced:
The method
wfcSection.Section.AddEntity takes as input the
wfcSectionEntity object that defines the section entity type using the enumerated class
wfcSection.Section2dEntType. The following types of entities are defined:
|
• |
SEC_ENTITY_2D_CENTER_LINE |
|
• |
SEC_ENTITY_2D_COORD_SYS |
|
• |
SEC_ENTITY_2D_CONSTR_CIRCLE |
|
• |
SEC_ENTITY_2D_BLEND_VERTEX |
|
• |
SEC_ENTITY_2D_SEC_GROUP |
Some classes in
Creo Object TOOLKIT Java allow you to create and modify various types of section entities. The class
wfcSection.SectionEntity is the parent class for the following entity classes:
|
• |
wfcSection.SectionEntityArc |
|
• |
wfcSection.SectionEntityBlendVertex |
|
• |
wfcSection.SectionEntityCSys |
|
• |
wfcSection.SectionEntityCenterLine |
|
• |
wfcSection.SectionEntityCircle |
|
• |
wfcSection.SectionEntityConic |
|
• |
wfcSection.SectionEntityEllipse |
|
• |
wfcSection.SectionEntityLine |
|
• |
wfcSection.SectionEntityPoint |
|
• |
wfcSection.SectionEntityPolyline |
|
• |
wfcSection.SectionEntitySpline |
|
• |
wfcSection.SectionEntityText |
The method wfcSection.Section.AddEntity outputs an integer that is the identifier of the new entity within the section. The Creo Object TOOLKIT Java application needs these values because they are used to refer to entities when adding dimensions.
The method wfcSection.Section.DeleteEntity enables you to delete a section entity from the specified section.
The method wfcSection.Section.GetEntity takes as input the integer identifier for a section entity and outputs a copy of the section entity object.
Use the method wfcSection.Section.ListSectionEntities to retrieve the list of entities present in the specified section.
The method wfcSection.Section.GetEntityIds returns the array of integer identifiers for the all the entities in the specified section.
The method wfcSection.SectionEntity.GetSectionEntityType returns the section entity type using the enumerated class wfcSection.Section2dEntType.
Section Entity Conic
Methods Introduced:
The method wfcSection.wfcSection.SectionEntityConic_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 wfcSection.SectionEntityConic.GetFirstEndPoint and wfcSection.SectionEntityConic.SetFirstEndPoint retrieve and set the first endpoint of the conic entity.
The methods wfcSection.SectionEntityConic.GetSecondEndPoint and wfcSection.SectionEntityConic.SetSecondEndPoint retrieve and set the second endpoint of the conic entity.
The methods wfcSection.SectionEntityConic.GetParameter and wfcSection.SectionEntityConic.SetParameter retrieve and set the parameter of the conic entity.
The methods wfcSection.SectionEntityConic.GetShoulderEndPoint and wfcSection.SectionEntityConic.SetShoulderEndPoint retrieve and set the shoulder endpoint of the conic entity.
Section Entity Spline
Methods Introduced:
The method wfcSection.wfcSection.SectionEntitySpline_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 wfcSection.SectionEntitySpline.GetTangentType and wfcSection.SectionEntitySpline.SetTangentType retrieve and set the type of tangent in the spline using the wfcSection.SplineTangentType object.
The methods wfcSection.SectionEntitySpline.GetPoints and wfcSection.SectionEntitySpline.SetPoints retrieve and set the points in the spline using the pfcBase.Point2Ds object.
The methods wfcSection.SectionEntitySpline.GetStartTangentAngle and wfcSection.SectionEntitySpline.SetStartTangentAngle retrieve and set the start angle of a tangent in the spline.
The methods wfcSection.SectionEntitySpline.GetEndTangentAngle and wfcSection.SectionEntitySpline.SetEndTangentAngle retrieve and set the end angle of a tangent in the spline.
Section Entity Text
Methods Introduced:
The method wfcSection.wfcSection.SectionEntityText_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 wfcSection.SectionEntityText.GetFirstCorner and wfcSection.SectionEntityText.SetFirstCorner retrieve and set the first corner of the text box using the pfcBase.Point2D class.
The methods wfcSection.SectionEntityText.GetSecondCorner and wfcSection.SectionEntityText.SetSecondCorner retrieve and set the second corner of the text box using the pfcBase.Point2D class.
The methods wfcSection.SectionEntityText.GetFontName and wfcSection.SectionEntityText.SetFontName retrieve and set the font of the text to be entered.
The methods wfcSection.SectionEntityText.GetComment and wfcSection.SectionEntityText.SetComment retrieve and set the comment or text to be entered inside the text box.