Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creo SDK will Not Start Unless Short Path to parametric.exe is Used #82

Open
robertowens opened this issue Jun 7, 2020 · 2 comments
Open
Assignees

Comments

@robertowens
Copy link
Contributor

robertowens commented Jun 7, 2020

The CreateAssembly program downloaded from
https://openmeta.metamorphsoftware.com/
will not run with Creo 3.0.

The reason it will not run is because the long path name to parmetric.exe is being used. The short path should be used as shown on the following example:
C:\Progra1\PTC\CREO11.0\PARAME~1\parmetric.exe

The problem is in the following file:

https://github.com/metamorph-inc/meta-core/blob/master/src/CADAssembler/CADCreoParametricCommonFunctions/CADSoftwareEnvirUtils.cpp

The RetrieveFromRegistryCreoInstallLocations should have a call to

GetShortPathNameA( installDir.c_str(), installPath_ShortName, bufferSize );

The attached file shows where this should occur:

CADSoftwareEnvirUtils.cpp.txt

@ksmyth
Copy link
Member

ksmyth commented Jun 11, 2020

We run it with Creo 3.0 with spaces in the path. Can you post the error message?

Short paths can be disabled. We've had customers whose machines have short paths disabled.

@robertowens
Copy link
Contributor Author

robertowens commented Jun 14, 2020

The following are logs from a failed case and a case that works:
cad-assembler_failed_case.log
cad-assembler works case.log

The failed case uses CreateAssembly.exe from MetaMorph OpenMeta download. Downloaded a couple of weeks ago.

The works case is from a CreateAssembly.exe from a couple of years ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants