Open hwe1szh opened 2 years ago
As I can tell, no. I do have a new version that deals with parameters and can set constraints etc, however it still has a lot of work before I would be willing to push it; it is a pretty big overhaul and far more general than this version of the code and dealing with parameterized constraints was a huge head scratcher for me. As for opening and writing existing files, that is implicitly possible in the current API. The way it would be done is by simply instantiating iPart but setting the file path and filename to your existing file; the com_obj.new_part function checks if the file exists already in your specified path, if so it should open it if it is a compatible ipt file. It is important to make sure the overwrite parameter in the iPart.init function is set to false, so something like:
my_part=iPart(path='C:\my_path\my_part.ipt', overwrite=False)
Then from there you should be able to modify the existing part using the current API. To save just do my_part.save() at the end of the python script. As for the other parameter and constraints features feel free to fork the code and take a crack at it! I am a PhD student trying to wrap up my thesis so I probably won't have the ability to finish it for some time.
Hope that helps,
Bests,
~Andrew
On Thu, Jan 6, 2022 at 11:51 PM hwe1szh @.***> wrote:
Hi This is a great API that works for me. Is there any API to read & write file's Features, Parameters & iPropoties
— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/AndrewOriani/PyInventor/issues/1__;!!BpyFHLRN4TMTrA!qpOZRL4-KncppWIBjkHuHlIr3aUuCfkOJpu8n43OSp7_hSEAoc4nFBuVWByRqa0kzA$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AHXLHF54VPXAYGSTD52DK3DUUZ5NXANCNFSM5LOBRD6Q__;!!BpyFHLRN4TMTrA!qpOZRL4-KncppWIBjkHuHlIr3aUuCfkOJpu8n43OSp7_hSEAoc4nFBuVWBzOr472UQ$ . Triage notifications on the go with GitHub Mobile for iOS https://urldefense.com/v3/__https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!BpyFHLRN4TMTrA!qpOZRL4-KncppWIBjkHuHlIr3aUuCfkOJpu8n43OSp7_hSEAoc4nFBuVWBzOQX0iOw$ or Android https://urldefense.com/v3/__https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!BpyFHLRN4TMTrA!qpOZRL4-KncppWIBjkHuHlIr3aUuCfkOJpu8n43OSp7_hSEAoc4nFBuVWBzfg9t6IA$.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Andrew E. Oriani Research Specialist James Franck Institute University of Chicago 929 E. 57th St. GCIS E026 Chicago, IL 60637 PH: (773) 702 7210 @.***
Hi This is a great API that works for me. Is there any API to read & write file's Features, Parameters & iPropoties