SimplifiedLogic / creoson

OpenSource Automation using JSON Transactions for PTC's CREO Parametric
http://www.creoson.com
MIT License
81 stars 23 forks source link

Automate the CAD Conversion #28

Closed neonaik closed 4 years ago

neonaik commented 4 years ago

Hi Is there any way that we can import cad files from another software and convert them in creo automatically with the help of creoson ? manual conversion is taking time as well as loosing the features.

any insights will be really helpful.

MFG Ramesh

adama2000 commented 4 years ago

Only if 1) The conversion is supported by Creo itself, meaning if you can do it in Creo by importing the cad file and saving it manually, and 2) The conversion is supported by JLink API functions (I can research that).

On the other hand, if you're thinking that creoson could do a conversion by parsing the file itself rather than going through Creo -- that's outside the scope of creoson, which is just intended to be a convenient wrapper for Creo functionality.

Like I say, I can look at whether the API can support what would essentially be opening a cad file and doing a "save as" -- but if you're losing features when you do that manually, then this method will probably lose features too.

neonaik commented 4 years ago

Hi at first thank you for your reply

In manual conversion the user is loosing the sketches with which the user did some operations for ex padding but while converting the model exists but lost its base profile

And thank you for your interest if you could find some API's please do let me know

Mfg Ramesh

On Fri, 18 Oct 2019, 18:35 adama2000, notifications@github.com wrote:

Only if

  1. The conversion is supported by Creo itself, meaning if you can do it in Creo by importing the cad file and saving it manually, and
  2. The conversion is supported by JLink functions (I can research that).

On the other hand, if you're thinking that creoson could do a conversion by parsing the file itself rather than going through Creo -- that's outside the scope of creoson, which is just intended to be a convenient wrapper for Creo functionality.

Like I say, I can look at whether the API can support what would essentially being opening a cad file and doing a "save as" -- but if you're losing features when you do that manually, then this method will probably lose features too.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SimplifiedLogic/creoson/issues/28?email_source=notifications&email_token=AIW6YOKEPXMIRWTSBVNK4T3QPHQWPA5CNFSM4JCEQ3H2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBVCDZI#issuecomment-543826405, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIW6YOLAUSIQCFS4LWZMLF3QPHQWPANCNFSM4JCEQ3HQ .

adama2000 commented 4 years ago

I found out that the API has an ImportNewModel() function which can be used to import certain file types into Creo. After that, just doing a save saves the model as Creo model. I tested it with an IGES file.

It only supports certain file types. What is the file extension for the file you import? I can check to see if it's supported.

Note that even if we get this to work, it may well STILL lose the sketches. This is basically just doing an Import and a Save.

davidhbigelow commented 4 years ago

I would be shocked if PTC allowed features to be imported (e.g. including sketch references and constraints from another system) ... I think that is what the Associative Topology Bus (ATB) is supposed to do to keep things in sync. But this I think also assumes the Flexible Modeling extension for modification.... Not sure if that is an option on that ImportNewModel() call...

On Tue, Oct 22, 2019 at 4:45 PM adama2000 notifications@github.com wrote:

I found out that the API has an ImportNewModel() function which can be used to import certain file types into Creo. After that, just doing a save saves the model as Creo model.

It only supports certain file types. What is the file extension for the file you import? I can check to see if it's supported.

Note that even if we get this to work, it may well STILL lose the sketches. This is basically just doing an Import and a Save.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SimplifiedLogic/creoson/issues/28?email_source=notifications&email_token=AAMSRJPZER3N3Z6GJSSIEEDQP5Q63A5CNFSM4JCEQ3H2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB7EOYQ#issuecomment-545146722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMSRJNFB6PC5XCWFSLAA5DQP5Q63ANCNFSM4JCEQ3HQ .

-- David Bigelow, President Simplified Logic, Inc https://www.simplifiedlogic.com | SimilarParts.ai C: 317-431-5454

tliebenow commented 4 years ago

I suspect that function is related to the Unite functionality. -t

From: David Bigelow notifications@github.com Sent: Tuesday, October 22, 2019 4:01 PM To: SimplifiedLogic/creoson creoson@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [SimplifiedLogic/creoson] Automate the CAD Conversion (#28)

I would be shocked if PTC allowed features to be imported (e.g. including sketch references and constraints from another system) ... I think that is what the Associative Topology Bus (ATB) is supposed to do to keep things in sync. But this I think also assumes the Flexible Modeling extension for modification.... Not sure if that is an option on that ImportNewModel() call...

On Tue, Oct 22, 2019 at 4:45 PM adama2000 notifications@github.com<mailto:notifications@github.com> wrote:

I found out that the API has an ImportNewModel() function which can be used to import certain file types into Creo. After that, just doing a save saves the model as Creo model.

It only supports certain file types. What is the file extension for the file you import? I can check to see if it's supported.

Note that even if we get this to work, it may well STILL lose the sketches. This is basically just doing an Import and a Save.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SimplifiedLogic/creoson/issues/28?email_source=notifications&email_token=AAMSRJPZER3N3Z6GJSSIEEDQP5Q63A5CNFSM4JCEQ3H2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB7EOYQ#issuecomment-545146722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMSRJNFB6PC5XCWFSLAA5DQP5Q63ANCNFSM4JCEQ3HQ .

-- David Bigelow, President Simplified Logic, Inc https://www.simplifiedlogic.com | SimilarParts.ai C: 317-431-5454

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/SimplifiedLogic/creoson/issues/28?email_source=notifications&email_token=AHDCYQAEVQPGYVWVKJWSPWLQP5SYBA5CNFSM4JCEQ3H2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB7GBEA#issuecomment-545153168, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHDCYQF3PFKUVPWV2OUEOOTQP5SYBANCNFSM4JCEQ3HQ.