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

Creo4 ,in not network , execute file_regenerate() or file_regenerate(file_name) Stuck in regenerating progress #89

Open
maipj opened this issue Sep 5, 2024 · 6 comments

Comments

@maipj
Copy link

maipj commented Sep 5, 2024

  • Creo version: 4.0
  • Creopyson version: 0.7.7
  • Creoson version: 2.8.1
  • Python version: 3.11
  • Operating System: Win10x64

Description

use file_regenerate and Stuck in regenerating progress ,The program runs without a network connection

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

What I Did

creo_client.dimension_set(name=item[0], value=val, file_="work_file.prt")
creo_client.file_regenerate("work_file.prt")

When I have a network, executing file_degenerate() will succeed, but when the network is disconnected, there will be a situation where the progress is regenerated and stuck

I checked the network and modified the virtual network card to add creo4 to the virtual network card, but the above situation still occurs, The program runs without a network connection

What do I need to do? How do I implement file_degenerate() when the network is disconnected

@Zepmanbc
Copy link
Owner

Zepmanbc commented Sep 7, 2024

I think this is more a question for Creoson
But I remember that I mainly use a mapkey to regenerate more than the file_regenerate

@adama2000
Copy link

adama2000 commented Sep 8, 2024 via email

@maipj
Copy link
Author

maipj commented Sep 9, 2024

Nothing about creoson tries to connect to the network, so I don't know why that would make a difference for it. Something about Creo itself, maybe? One suggestion is that there might be errors popping up in the creoson console. Try stopping the creoson server, then opening a command prompt and running it manually (creoson_run.bat). If an error occurs during regenerate, it might pop up there. Another question is, in the Creo window do any errors appear, like in the status bar at the bottom? Or does the whole Creo window lock up when this happens?

On Sat, Sep 7, 2024 at 3:19 AM Zepmanbc @.> wrote: I think this is more a question for Creoson But I remember that I mainly use a mapkey to regenerate more than the file_regenerate — Reply to this email directly, view it on GitHub <#89 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANPKPDDBJTFFEZAF2MW6JDZVKSIHAVCNFSM6AAAAABNVYZNSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZVGEYDCMBZGA . You are receiving this because you are subscribed to this thread.Message ID: @.>

yes , this is some picture
11
22
33

Stuck on this interface P1
and the P2 say the regeneration is successfully
I don't know!! is crazy!!

@maipj
Copy link
Author

maipj commented Sep 9, 2024

yes I use cmd to run creoson_run.bat , and other creopyson is ok, buy this regeneration is Stuck on that interface!! I must use Window Task Manager To stop and remove Creo4

@maipj
Copy link
Author

maipj commented Sep 9, 2024

I think this is more a question for Creoson But I remember that I mainly use a mapkey to regenerate more than the file_regenerate

How to use mapkey in creopyson, the regenerate key is "Ctrl+G",and I change the key to "E", How can use mapkey to the "E"
this ?
creo_client.interface_mapkey("~ Command E;")

@Zepmanbc
Copy link
Owner

no you must copy what's in a mapkey you recorded, this should looks like this:

mapkey_regenerate = "~ Command `ProCmdRegenPart`;~ Command `ProCmdRegenAuto`;\
    ~ Command `ProCmdDwgRegenModel` ;#AUTOMATIC;"
c.interface_mapkey(mapkey_regenerate)

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

3 participants