Skip to main content
Oct 30, 2020 8:06 PM UTC
Delivered

Provide Toolkit API for accessing Cable Curves

Related products:Creo Parametric

There is currently no direct Toolkit API for accessing the Curves associated with a Cable. Access to the Curves is needed in order to do geometric operations with Cables. For example, determining the arc length location of "Clamp" Models along a Cable. Cable Curves are associated with Cable Segments. One can get information about Cable Segments using the ProCablesegmenInfo objects obtained via ProCablesegmentInfosGet() . These objects let one obtain Cable Location IDs, Points and Tangents via ProCablesegmentInfoPointsGet(). There is a back-door way to get the Curves by examining the ProCurves in Cable Segment Features and comparing them against the obtained Points and Tangents. This process is convoluted and requires one to sometimes rearrange the ProCurves since they are not necessarily in the right order.

 

The idea is to create a new API that lets one obtain a properly-ordered list of ProCurve objects for a given ProCablesegmentInfo. The API would be something like "extern ProError ProCablesegmentInfoCurvesGet(ProCablesegmentInfo segment, ProCurve  **p_curves);"

5 replies

Jan 18, 2023 11:47 AM UTC
Status changed to: Acknowledged
Jan 1, 2024 8:29 AM UTC
Status changed to: Implementation In Progress
Feb 14, 2024 8:38 AM UTC
Status changed to: Delivered

New API: ProCableCurvesGet(ProCable *cable_feat,  ProCurve ***p_ent) for accessing properly-ordered curves list associated with a Cable, will be available in Creo versions: 8.0.11, 9.0.9, 10.0.5 and 11.0.0.

Feb 14, 2024 10:32 AM UTC
Thank you @bpavon-2 for your idea and @Alex_Y for the confirmation!
bpavon-2Author
Feb 14, 2024 2:25 PM UTC

That is actually not the functionality I requested. I requested an API for getting the ordered Curves in a Cable Segment. I provided a proposed declaration of such a function. Instead an API is being provided for all Curves in the Cable.