Regarding Toolkit ProDrawingViewDetailCreate and ProDrawingViewPartialVisibleAreaGet APIs cr
Hi everyone,
I’m working with Creo 11 and trying to use the APIs ProDrawingViewDetailCreate and ProDrawingViewPartialVisibleAreaGet, both of which require a ref_point of type ProSelection. I’m facing consistent “bad input” errors and would appreciate any guidance from someone who has successfully implemented these.
Here’s what I’ve tried so far:
Method 1: Programmatic datum point creation
Created a datum point → Success
Used ProPointInit → Success
Converted using ProPointToGeomitem and Modelitem APIs → Success
Attempted ProSelectionAlloc() → Failed to return a valid ProSelection
Method 2: Manual selection approach
Created a datum point
Selected the point using ProSelection → Success
Passed this selection to ProDrawingViewDetailCreate & ProDrawingViewPartialVisibleAreaGet → Both failed with “bad inputs”
Method 3: Drawing entity approach
Created a point in the drawing using ProDtlEntityCreate
Used ProSelectionAlloc() → Success
Passed it to ProDrawingViewDetailCreate & ProDrawingViewPartialVisibleAreaGet → Still getting “bad input” errors
At this point, I suspect I might be missing something about the expected reference context (model space vs drawing space selection, view ownership, or selection type).
Has anyone successfully passed a valid ref_point selection to these APIs in Creo 11? Any example workflow or clarification on what kind of ProSelection these functions strictly expect would be really helpful.
Thanks in advance!

