Yes, you are correct this is how I learned what I know plus a small course I found. But I am moving into the advance of ilogic and those samples and codes are few.
I have to give Curtis Waguespack the biggest kudos there is. If it was not for him I would be stuck dreaming of the things I wish to do.
Again Curtis I can not thank you enough for your help.
As Jonathan mentioned above, iLogic is based on VB.net. If you really want to dig into the meat of iLogic, (and become as knowledgeable as Curtis), then I think you want to learn VB. There is a lot more info out there about VB than iLogic.
I have been meaning to learn VB myself, but I just haven't gotten around to it yet. I guess I'm not sure where to start, but since I have had success learning some programming at university, I would probably do well to just shell out some cash and take a course on VB.
Yes and No I can write VB like the back of my hand but I for some reason cannot convert VB to ilogic but I have not given up this weekend I spent hours trying things and learned somethings.. and if you read the beginning of this post my problem is when I go to the API help I get a whole lot of cannot display this is why I can't learn the things I want to.
Autodesk is more focus on useless Interfaces and taking the best help I have ever seen and turn into the biggest crappiest help I have ever seen in a software in years.
Like I said I no longer promote Inventor.
I had one guy remember how I raved about Inventor and he was telling someone about it and said hang on hey Jim come tell Steve about Inventor. I said what Inventor Never herd of it.....................
"Your buddy John said it would not work for what I need. I understand I logic but what I can't find are the things that make ilogic go. The code and samples..."
I feel that I need to clarify my answer to you.
Our course teaches the user the ins and outs of iLogic. We show them the process and give them the tools "to make iLogic go". We DO offer examples and include part files with our course to help the user understand.
You're looking for a large library of code to copy and paste from. That is not what we sell. This is why I said that our course probably isn't what you're looking for.
No I understand what you said but then the other guy said it is what i need unless i read his wrong it is monday..
I looked into the course, for new ilogic users i would suggest it to them.
But as you said not for me
99% of the time I use the VBA without much modification in iLogic - aside from assigning a reference to an object and a few shortcuts that iLogic has provided, they will function the same. Some of my scripts might be a tad shorter if I use the iLogic shortcut version of something, but there's certainly no diffrence when it gets executed. I've done VERY advanced scripts from VBA to iLogic and it took a grand total of 2 minutes to convert it.
Let me give you an example:
Public Sub RemoveFeature() Dim oDoc As Document Set oDoc = ThisApplication.ActiveDocument Dim oFeature As PartFeature Dim oFeatures As PartFeatures Set oFeatures = oDoc.ComponentDefinition.Features For Each oFeature In oFeatures If oFeature.Name = "NameOfYourFeature" Then oFeature.Delete End If Next End Sub
But I can run almost the exact same code in iLogic.
Notice I'm not using Set and in many cases you don't even need to Dim anything.
It's still assigning a reference to an object.
oDoc = ThisApplication.ActiveDocument oFeatures = oDoc.ComponentDefinition.Features For Each oFeature In oFeatures If oFeature.Name = "NameOfYourFeature" Then oFeature.Delete End If Next
Now, that will work just fine, but if we dig a little deeper we'll find that we can simplify the code in iLogic thanks to it's VB.NET additions Try/Catch along with other shortcuts as mentioned before.
oDoc = ThisDoc.Document oFeatures = oDoc.ComponentDefinition.Features Try oFeatures("NameOfYourFeature").Delete Catch MsgBox("No feature exists with that name") End Try
Does that help?
Lets add to this. Here is a bug and this is what I wish Autodesk would fix not add more features with bugs but fix the ones they have than move forward....
Win some lose some
No reply needed no I will not post offending part I know it will work in 2013 lol.
Slow down on the upgrades fix issues than come out with a banging 2014 make me proud to say I use Inventor....
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.