cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Toolkit C++ : prerequisites for ProIntfimportSourceTypeGet

MadhaviG
11-Garnet

Toolkit C++ : prerequisites for ProIntfimportSourceTypeGet

Hi,

 I am importing models using ProIntfimportSourceTypeGet() and ProIntfimportModelWithOptionsMdlnameCreate.

Function ProIntfimportSourceTypeGet() works properly on 3 out of 5 machines.

But for same model it returns error on other 2 machines.

Code is same and model to import is same.

My guess : some libs. are missing from those 2 machines. In short there might be some installation gap.

I am sure somebody must have used the import functionality before so

any help would be appreciated.

 

 

7 REPLIES 7
remy
21-Topaz I
(To:MadhaviG)

if install issue: Did you try from the UI persepctive?

Also, what type of file do you deal with?

MadhaviG
11-Garnet
(To:remy)

I can import it manually from UI. But does it use same libraries which are provided for Toolkit?

I am dealing with files from SolidDesigner ( for example with ext. .sdpc)

 

remy
21-Topaz I
(To:MadhaviG)

Do you capture the error returned by the function?

 

MadhaviG
11-Garnet
(To:remy)

yes 
-2 : BAD_INPUTS

remy
21-Topaz I
(To:MadhaviG)

ok bad inputs means that one of several of the arguments you put in the function have something wrong.

you may start troubleshooting there.

regular issues for bad inputs may include but are not limited to:

  • string is too long
  • unsupported characters

one way to troubleshoot is to hardcode progressively and pin down the issue

MadhaviG
11-Garnet
(To:remy)

yah that is the plan but what confuses me is

same file and same code works on one machine but on another machine it gives error.

If it is issue with parameters then shouldn't it be a problem on all machine?

PARTHIBAN_K
15-Moonstone
(To:MadhaviG)

Hi @MadhaviG,

Check all the systems are Same version of Creo with Same Datecode.

Parthiban Kannan

href="https://www.linkedin.com/in/parthiban-kannan/" target="_blank"
Top Tags