Is possible to extract the iLogic program from the completed model feature tree?

Is possible to extract the iLogic program from the completed model feature tree?

gparamasivam
Enthusiast Enthusiast
1,009 Views
12 Replies
Message 1 of 13

Is possible to extract the iLogic program from the completed model feature tree?

gparamasivam
Enthusiast
Enthusiast

Hi Experts,

 

I need a alternate method instead of iFeature.

Is possible to extract  or create the iLogic program from the completed model file?

I request the group members to do the needful.

Thanks...

gparamasivam_0-1628682369191.png

 

 

0 Likes
Accepted solutions (1)
1,010 Views
12 Replies
Replies (12)
Message 2 of 13

R.Mabery
Advocate
Advocate

Can you provide more information?  Are you looking for the ability to create all the iLogic required to fully create a model by using an existing model?  

 


Thanks,
Randy Mabery
Applications Expert
IMAGINiT Technologies
0 Likes
Message 3 of 13

gparamasivam
Enthusiast
Enthusiast

@R.Mabery  Hi,

i am searching the alternate method instead of ifeature.

Current practice:

I am doing the model and drawing as per requirement and extracting iFeature from the model.

Drawback - Can not revise or modified the ifeature once created.

Expect :

I will do the model and drawing as per requirement and extracting iLogic program from the model tree. is possible?

Advantage - Hope i Can revise or modifiy the parameters as requires. 

Hope you understand

0 Likes
Message 4 of 13

gparamasivam
Enthusiast
Enthusiast

@R.Mabery @JhoelForshav 

I find one method, Kindly help to develop.

I am trying the iLogic "Capture Current State" option for model tree to iLogic program. hope this may work for my expect. But i copied this program and use with another model, program not working. Kindly help to resolve.

' ***Revolution1***
Feature.IsActive("Revolution1") = True
d142 = 0.25 in
OVERALL_LENGTH = 15 in
d143 = 45 deg
d141 = 27.63 in
d144 = d0

' ***Revolution2***
Feature.IsActive("Revolution2") = True
d73 = 20.025 in
d72 = 23.875 in
d69 = 0.191 in
d67 = 20.376 in
d66 = 20.040 in
d79 = 15 deg
d78 = 0.50 in
d77 = 15 deg
d76 = 6.875 in
d74 = 2.785 in
d80 = 0.75 in
d86 = 0.141 in
d85 = 21.375 in
d84 = 4.332 in
d82 = 0.281 in
d91 = 0.031 in
d90 = 45 deg
d89 = 0.03 in
d88 = 0.644 in
d87 = 15 deg
d95 = 0.125 in
d94 = 0.253 in
d137 = 0.020 in

' ***Work Plane3***
d96 = 27.63 in / 2 ul

' ***Hole1***
Feature.IsActive("Hole1") = True
Feature.ThreadDesignation("Hole1") = "2-8 UN"
d102 = 1.38 in
d140 = 4.187 in
d107 = 118 deg
d104 = 0.125 in
d103 = 3.250 in
d106 = 2 in

gparamasivam_0-1628690549534.png

 

 

0 Likes
Message 5 of 13

JhoelForshav
Mentor
Mentor

Hi @gparamasivam 

Do I understand correctly that you're trying to find a way to automatically generate iLogic code from a model, to be able to recreate all features in an empty model? That is not possible.

Capture current state only gives you some properties to alter from an already existing feature in your model.

0 Likes
Message 6 of 13

gparamasivam
Enthusiast
Enthusiast

@JhoelForshav @R.Mabery 

Could you please help to create the below showed model using iLogic.

gparamasivam_0-1628696353721.png

Kindly send the iLogic progem.

 

0 Likes
Message 7 of 13

JhoelForshav
Mentor
Mentor

@gparamasivam 

I really don't see the point why... Writing the program to create that model would take way more time than just modelling it normally. When you have made the model then you can save copies of it and modify its parameters. What is the purpose of creating all these features and sketches from scratch by code?

0 Likes
Message 8 of 13

gparamasivam
Enthusiast
Enthusiast

i am searching the alternate method instead of ifeature.

Current practice:

I am doing the model as per requirement and extracting iFeature from the model.

Base Extrusion already available in the model template, We doing Revolve cut, extrude cut, holes.

All are removing the material from the base extrusion. Than finally select the Revolve cut, extrude cut, holes and extract as ifeature. 

Drawback - Can not revise or modified the ifeature once created.

Expect :

I will do the model as per requirement and extracting iLogic program from the model tree. is possible?

Advantage - Hope i Can revise or modifiy the parameters as requires. 

 

Hope you understand

0 Likes
Message 9 of 13

WCrihfield
Mentor
Mentor

Hi @gparamasivam.  I agree with @JhoelForshav that there isn't a tool available that is an alternative to the iFeature.  If you need to generate a bunch of model files that are all very similar, and all have the same features, and the only things that need to change between each model file is parameter values, pattern quantities, & iProperty values, then the best alternative process would likely be to try to create all of those features from scratch using iLogic.  Include some prompts to the user in the code for entering different values, and include some prompts that let you manually select needed input geometry to base features on.  Then when you are in another model file, you can run that iLogic rule, enter data where prompted, select stuff when prompted, to reproduce those features on the current base model.  This type of code is a major project.  It is often extremely custom, and can be very challenging and time consuming to create.  You will most likely have to explore and learn through trial & error to produce a solution.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 10 of 13

llorden4
Collaborator
Collaborator

 

@gparamasivam I think this conversation is suffering from cultural division, I work with teams in India and recognize some of the language hurdles in these conversations.  Basically everyone's response at the moment is based on how your opening question was stated...   which is being received as "How do I reverse engineer a part model and have it create Ilogic code".

 

What I think you're really trying to ask is how can you create the model using iLogic instead of using iParts.  If you're not familiar with iLogic right now, that's a pretty big step to take out of the gate if this is your first go at it and while others might be willing to volunteer their time to write this for you, I would not be one of those who would.

 

If you are just getting started, I think you should start by creating this sketch, along with User Parameters and get practiced with allowing these parameters to drive the shape of your model; this works as long as the part is really just changes in sizes and not features.  Each trick you learn builds you up to the next level of customization, and before you know it you're writing iLogic code to create sketches, put assemblies together, answering questions to help someone else figure it out.

 

If I'm not interpreting your comments correctly, then I'd agree with the others that responded that the path you're asking for is not worth travelling.

 

Autodesk Inventor Certified Professional
0 Likes
Message 11 of 13

R.Mabery
Advocate
Advocate

If the number of permutations is discrete and reasonable, and you're trying to create a "family" of parts as listed above, you can also look at iParts for this.  If it's an infinite amount of permutations, then iLogic is probably your best bet.

 

As others have said, creating the iLogic code for this isn't something that most will do for you.  I'd suggest watching some YouTube videos on iLogic, take a class (yes, I work for a reseller), and try to learn iLogic.

 

From what I've read on this thread, you're modifying parameters which is pretty simple to do.  Creating drawings is more complex but achievable with the proper knowledge and understanding of what needs to be conveyed for all possible outcomes of a configuration.

 


Thanks,
Randy Mabery
Applications Expert
IMAGINiT Technologies
0 Likes
Message 12 of 13

Curtis_Waguespack
Consultant
Consultant

@gparamasivam wrote:

i am searching the alternate method instead of ifeature.

Current practice:

.... finally select the Revolve cut, extrude cut, holes and extract as ifeature. 

Drawback - Can not revise or modified the ifeature once created.

 

 


Hi @gparamasivam 

Just to clarify, in case you have overlooked it... you can edit iFeatures. 

 

Browse to the iFeature catalog using this button, and then open the *.ide file, I don't know if this helps with your needs, but it might be something to be aware of.

 

 

Curtis_W_0-1628709605576.png

 

 

Curtis_W_2-1628709721442.png

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

EESignature

0 Likes
Message 13 of 13

JhoelForshav
Mentor
Mentor
Accepted solution

@gparamasivam

I don't really know the complexity of what you're trying to accomplish here, meaning - how unique the different parts you want to generate from your template model should be. Perhaps it would be enough to just create an "overbuilt" part containing all the different features it can contain and control suppression states and parameter values through an iLogic form?
If its more complex it's quite the project and as mentioned by others in this thread I doubt someone will volunteer their time to do this for free.

If you don't want to use this case to learn and develop your own iLogic/API-skills there's always the option to hire a consultant. I myself do product configuration for a living at XperDi, but there are of course many others you can reach out to as well.

I think you need to provide more information though regarding the different variations you wish to generate from your template part in order to be guided in the right direction/helped here 🙂

0 Likes