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!

