Community
ReCap SDK Forum
Welcome to Autodesk’s ReCap SDK Forum. Share your knowledge, ask questions, get support and explore popular ReCap SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IRCPointAccessor::getRegion always returns 0

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
chris.wainwright7MX4Y
407 Views, 2 Replies

IRCPointAccessor::getRegion always returns 0

Our users have asked for us to import from RCP using the regions they have defined in Recap to split the data.

 

Unfortunately, IRCPointAccessor::getRegion always seems to return 0.

 

I can find this thread from 2018 which says that a default value was returned in the first release of the SDK:

 

Solved: Get list of regions for a RCProject - Autodesk Community - ReCap

 

Is it still the case that this function is not implemented?

 

Thanks.

2 REPLIES 2
Message 2 of 3

Hi @chris.wainwright7MX4Y ,

 

May I know how you load RCP files? I guess you are using the following API:

 

static RCSharedPtr<RCProject> Autodesk::RealityComputing::Data::RCProject::loadFromFile(
const RCString& projectFilePath,
const RCFileAccess& fileAccess,
const RCProjectUserEdits& userEdits,
RCCode& code)

 

 

If so, could you try set the third parameter as:

 

RCProjectUserEdits::All

 

 

NOTE: by setting the third parameter to RCProjectUserEdits::All, edits other than regions (e.g., clips, ...) will also be applied.

 

Could you check whether region information for each point can be obtained using the API?

 

virtual int Autodesk::RealityComputing::Data::IRCPointAccessor::getRegion() const

 

Message 3 of 3

Thanks, the RCProjectUserEdits::All worked to access the region indexes. I will offer that to our user representatives with the caveat of it including other edits as well.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report