Section Entities
 
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_POINT
SEC_ENTITY_2D_LINE
SEC_ENTITY_2D_CENTER_LINE
SEC_ENTITY_2D_ARC
SEC_ENTITY_2D_CIRCLE
SEC_ENTITY_2D_COORD_SYS
SEC_ENTITY_2D_POLYLINE
SEC_ENTITY_2D_SPLINE
SEC_ENTITY_2D_TEXT
SEC_ENTITY_2D_CONSTR_CIRCLE
SEC_ENTITY_2D_BLEND_VERTEX
SEC_ENTITY_2D_ELLIPSE
SEC_ENTITY_2D_CONIC
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.
Was this helpful?