Quantcast
Channel: PTC Community : All Content - Piping, Cabling & Schematics
Viewing all articles
Browse latest Browse all 557

Creo Schematics Java - design.getDatatables

$
0
0

I'm working on Creo Schematics 2 and trying to use the design.getDatatables(condition, true, true) method to search in the central catalog.

 

I successfully received a result but at least one of them is of type CCItem, which means (as far as I know) that it's in the central catalog, but not loaded yet.

 

Can you tell me what I can do with the object now? How do I load it into Creo Schematics as a Datatable so I can query it and find its children, etc? I tried CCItem.load, but that just returns null.

 

Also, why not provide a getDatasets method, rather than getDatatables? The criteria I'm searching for is really in a dataset, which has its own Sys_id, so can be returned as an object. If I just need the Datatable then I can just get its parent.

 

Thanks in advance,

 

Martin Kemp


Viewing all articles
Browse latest Browse all 557


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>