Home
Reply
Regular Contributor
ejp
Posts: 94

csdk method to query layers in a part

is there a method in csdk to query the layers of a part...

=======================
Ed Paff (1.513.576.3836)
ITI TranscenData
5303 Dupont Circle
Milford, Ohio 45150
United States of America !!!!!!!
Spatial Employee
bikash_parida
Posts: 23

Re: csdk method to query layers in a part

Hi,

 

Yes we have interface for querying layers of a part. Please check following interface in SPAXAttributeExporter.h.

 

/**
    * Get the Layer of an entity
    * @param iEntity The entity which is to be queried by the exporting component
    * @param oLayer The returned layer number between 0-255
    * @return SPAX_S_OK when a layer is returned ; SPAX_E_ERROR otherwise.
    */

    virtual SPAXResult GetLayer( const SPAXIdentifier& iEntity, int& oLayer ) = 0;
    
    //------------------------------------------------------------------------------------------------------

 

 

Thanks

Bikash Parida
InterOp Developer
Regular Contributor
ejp
Posts: 94

Re: csdk method to query layers in a part

thanks for the response, but i already know about that method.  what i'm looking for is a method to return all the layers used in a model before i actually process the data in the model.  is there anything like this available....

=======================
Ed Paff (1.513.576.3836)
ITI TranscenData
5303 Dupont Circle
Milford, Ohio 45150
United States of America !!!!!!!
Spatial Employee
bikash_parida
Posts: 23

Re: csdk method to query layers in a part

Hi,

 

There is no way you can get all the layers before processing the data in the model. I am not sure what your workfolw is, can you please explain? May be  I have a workaround for your problem.

 

Thanks

 

Bikash Parida
InterOp Developer
Regular Contributor
ejp
Posts: 94

Re: csdk method to query layers in a part

here is more information from our product manager on the issue...

 

from the InterOp docs this filter option (ApplyLayerFilter) can be set to ALL or LAYCUR or any string that matches a user defined layer filter that exists in the V4 model.

 

is there any CSDK code that allows you to query what user defined layer filters exist in a V4 model?

=======================
Ed Paff (1.513.576.3836)
ITI TranscenData
5303 Dupont Circle
Milford, Ohio 45150
United States of America !!!!!!!