AutoCAD Inventor :: Adding New Members To IPart By ILogic Rule

Apr 1, 2013

I’m trying to make an iLogic rule that creates a new row in the iPart  table (new member). Is it possible?

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Adding New Factory Members To Legacy IPart

May 7, 2012

We use Inventor 2012 and will most likely upgrade to 2013 between Christmas and New Year's, when our company traditionally shuts down for a week. I recently had occasion to edit an iPart for a hex head machine screw, originally modeled some years ago by someone who's no longer with the company, to add some sizes. As you'll see, the member names are Hex Head Machine Screws-001.ipt, Hex Head Machine Screws-002.ipt, etc. Why does the table go from Hex Head Machine Screws-002 to Hex Head Machine Screws-290, you ask? I'll get to that in a minute.

This iPart was modeled several Inventor versions ago, when the operator had no control over the iPart factory member names. When Inventor did start offering this control, I jumped right on it. In any iParts I modeled from there on out, I used the capabilities of MS-Excel to create abbreviated part descriptions for the iPart factory member names.

Last week I needed to go into this part and add some sizes. If I added the new sizes in sequence by thread size and screw length, they were going to slot in between the existing  Hex Head Machine Screws-002 and Hex Head Machine Screws-003. The next unused number was 290, so I made the new factory members Hex Head Machine Screws-290 thru -296, as per the attached screen grab. Naturally the suffixes on the factory member names are out of sequence, and it isn’t very elegant.

As I see it, the other alternatives would have been:

1)      Put the new sizes at the end of the list (worse, IMO).
2)      Put the new sizes in sequence and renumber the factory members so they were sequential down the line. If I’d done this, then every factory member (say, Hex Head Machine Screws-011) after the newly added ones would have stood for a different size HHMS than it did before, which would have been really bad.
3)      Rework the table so the existing names with numerical suffixes went away and were replaced by mnemonic names, as on my more recently modeled iParts. This would have resulted in assemblies looking for factory members under names that no longer existed, but it would have been possible to substitute the screws under their new names. I should mention that we are using the Vault, which makes matters easier.

I would have liked to take approach (3), but I was under some time pressure to finish an assembly using these fasteners.

View 4 Replies View Related

AutoCAD Inventor :: ILogic Rule To Read Out User Parameter Of IPart

Nov 1, 2012

I've created a main assembly containing several ipart components. With the following rule I can read the model parameters, but not the user parameters of the iparts:

A = Parameter("Part1:1", "d0")
 
If I create a component, insert it in the main assembly and make it an ipart afterwards, the user parameters can be read out with ilogic. But if I insert the same ipart again, the user parameters can not be read out anymore. Model parameters are no problem. 

View 1 Replies View Related

AutoCAD Inventor :: Adding ILogic Rule Using API

Oct 5, 2011

I've caught glimpses of how to do this (For instance, this plugin (Inventor LinkParameters)  [URL]...... when trying to actually find information on any documentation of how to get from point A to point B. I can't seem to find anything about ilogic automation / rule creation / ilogic in general, in the object browser at all. 

I know code like this exists

Option ExplicitSub RuniLogicRule()Dim iLogicAuto As ObjectSet iLogicAuto = GetiLogicAddin(ThisApplication)If (iLogicAuto Is Nothing) Then Exit SubDim doc As DocumentSet doc = ThisApplication.ActiveDocumentDim ruleName As StringruleName = "Rule0"Dim rule As ObjectSet rule = iLogicAuto.GetRule(doc, "Rule0")If (rule Is Nothing) Then Call MsgBox("No rule named " & ruleName & " was found in the [code].......
 
(and even fixed the error it gave me due to the original code leaving something out) , but any info on the GetRule method is. 

View 3 Replies View Related

AutoCAD Inventor :: Adding ILogic Rule To Event Trigger With VBA

Jul 11, 2013

How to get the API to add an iLogic Event Trigger but I cannot find the exact code on how to do it.

Is there a Simple way to add an Ilogic Rule (External or Internal) to an event trigger with a VBA Macro or iLogic Rule?

I would like to automate adding an iLogic rule to an Event Trigger when we update our old drawings.

The details of the Rule I am trying to call is as follows:

Rule Name = Save On Close Commands

Event = Before Close

We currently have Inventor 2013 and 2014.  If it is not possible in 2013, is it possible in 2014?

get the Rule Added to the Event Trigger

View 9 Replies View Related

AutoCAD Inventor :: IPart Members Are Missing IMates

Nov 4, 2011

I'm having an issue with imates not showing up on members of an ipart. If I open the factory file the imates are there, but if I open the member file the imates are not there. This is causing an imate error in my assembly because when I need to switch members out (at the assembly level) the imates are not holding because they're not there!?!

I've even tried "Dirtying" the file by creating a plane and then deleting it, doing a save, then a generate files. This doesn't work either. Why won't the imates show up correctly on the members that they're supposed to show up on?

View 6 Replies View Related

AutoCAD Inventor :: IPart Members Reflect Changes To Factory

Aug 5, 2013

We are facing a strange behaviour, since we switched from network folders to Vault 2011 Professional.

If we create a new revision of an iPart factory and make changes to that factory, members that are placed in assemblies already reflect the changes, although they have not been revisioned and re-generated. It seems like the member is already fetching the latests revision of the factory from Vault by default.

View 1 Replies View Related

AutoCAD Inventor :: How To Link IPart Members Into New Part File

Aug 7, 2013

I have facing issue to link the ipart members in to the new part.

for example, i have one machining part that machining part showing  make from number. so, i created make from first. it has 10 instance.using iPART i created 10 members.after that i need to be do the machining.machining drawing also having 10 members. How i call the each make from members in to the machining model.

View 7 Replies View Related

AutoCAD Inventor :: IPart Turning On BOM View Generating All Members

Jun 5, 2013

When I enable the structured bom in an iAssembly that contains an iPart it is attempting to generate all members before it will enable the bom. This doesn't work as the iAssembly and iPart have 1800 variations each. Our servers cannot handle taking up that amount of space. I did the exact same procedure for a different part and the bom did not populate in this manner. The only difference is that the iProperties comment changes based on which part is selected. 

Also, description is set using =<comments>

Stock number is set using =<part number>

View 1 Replies View Related

AutoCAD Inventor :: Extracting Sheet Metal Properties In IPart Members

Jun 22, 2013

I have many I-parts that have many members. All these members differ in size, sheet metal style and material. 

That's a nice case for an I-part right? We can manage the members in a table, and we can create flat patterns & drawings that go with these members, so when we get an order for a machine, we don't have to touch any of these components. 

The things is, that I want to show the length & width of the flat pattern, the sheet metal style, and the K-factor of the I-parts members in the parts lists of the assemblies they sit in. 

I have 4 custom properties for this. Flat_Pattern_Length; Flat_Pattern_Width; Sheet_Metal_Style; Sheet_Metal_k_Factor

These properties show up on the parts lists. I use Inventor 2012 (with Solidworks Enterprise PDM)

I have tried to make a rule in the factory that fills these properties. I fire the rule on "save document". My train of thought: Every time Inventor saves a member, it applies the factory rule, and fills the member properties.

Results are extremely unstable. I have seen all members generated with correct properties, I have also seen that literally nothing happens on the members. There are some brute force workarounds (edit member scope, run rule) but this is not a sustainable solution. 

I cannot imagine it would be so hard to get the sheet metal information available as properties for these files! The use of I-parts is a fixed constraint, and the use of those property names is an almost fixed constraint. 

View 4 Replies View Related

AutoCAD Inventor :: Mark IAssembly Or IPart Dirty So That Members Regenerate?

Jul 7, 2013

Inventor does not think an update is required for iAssembly members after changes to attributes on a client feature are saved. In our workflow we avoid rebuild all because it causes subassemblies to change, so we force an update by changing a parameter. Through the API is there a good way to indicate that our change was significant enough for members to need updating?

View 4 Replies View Related

AutoCAD Inventor :: Invoke ILogic Rule Editor And Pass It On Existing Rule Name?

Jan 7, 2014

Is there a way to invoke the iLogic Rule Editor and pass it an existing rule name or external rule for editing?

View 4 Replies View Related

AutoCAD Inventor :: ILogic / Run Assembly-level Rule From Component Rule?

Aug 2, 2013

I need a way to run a rule which is saved in my top-level assembly using iLogic rule which is saved in a part file in the parent assembly.

I have even tried using an external rule in a txt file, but that gives the error "Component: This function can only be used in an assembly."  - which makes no sense to me.   I hope I am just missing something simple.  I cant believe with all its other strengths, that iLogic would be so limited in that regard.   Why is there not simply a snippet under the 'Run Other' that allows you to specify an assembly file and the rule name?  (like there is for running a rule in a component from the assembly)

View 4 Replies View Related

AutoCAD Inventor :: Run Ilogic Rule In Each Part From The Assembly Via External Rule

Dec 6, 2011

I want to simply set a custom iproperty as the Description in each part file within my assembly.  I can do this easily at part level with ilogic but I want to be able to run the rule from the assembly level and all the parts run the rule.  I am struggling to find a way to do this.

I think this may be the best method I have found but I think it must be far easier?

[URL].......

View 9 Replies View Related

AutoCAD Inventor :: ILogic Design - Why Work With Local Rule But Errors On External Rule

Dec 9, 2011

I am working for customer with a simple item with his iLogic design. He has created a simple form to modify his iProperties. To modify the current material, a multi-value parameter was created and the following rule as a local rule;

"MultiValue.List("MATLIST") = iProperties.Materials
iProperties.Material = MATLIST"

He is now trying to make this an external rule but gets the following error

Error in rule: Mat2, in document: Mat2.iLogicVb
iProperties.Material: is probably a bad material name.

The more info tab says:

System.ArgumentException: iProperties.Material: is probably a bad material name.
at iLogic.CadPropertiesInRule.SetDocMaterial(Document doc, String matName)
at LmiRuleScript.Main()
at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)

View 2 Replies View Related

AutoCAD Inventor :: Close ILogic Form With VBA Or ILogic Rule

Aug 19, 2013

how can I close an iLogic Form from either an iLogic Rule, or a VBA Rule (VBA is the Preferred method)?

View 5 Replies View Related

AutoCAD Inventor :: Using Ilogic Or Macro To Automate Drawing Creation Of IAssembly Members

Nov 6, 2012

I have an iassembly which contains around 500 different members.  There aren't any major differences between the members other than parts being Included/Excluded and parts being replaced by similar parts (this can all be done in the table as the parts are all created as one ipart family).

I need an assembly drawing for every member.  As the drawings will be very similar, it is possible to just create one drawings then use 'Save as' and 'replace model reference' to create the whole lot.  As this process would be very tedious and time consuming, I want to create a ilogic program or a VB macro to automate this process.

Basically i need a program that will...

FOR every line in the table (say 1 to 500)...

look at the currently active drawing...

replace model reference (for 2 views and a parts list) with the appropriate member (whos file name will match it's Part Number)...

save as with a file name that matches the current rows Part Number...

END when all of the members are complete.

View 9 Replies View Related

AutoCAD Inventor :: Using ILogic To Change An IPart Row?

Oct 25, 2012

I have a sheet metal part that I converted into an iPart and I set up different rows with different sheet metal styles. What I want to do is run an iLogic code to change to a specific row which in turn would change the actual material of that sheet metal part....I've tried the snippet iPart.ChangeRow but cannot get it to run the code. I'm not sure if I'm not doing something right or what...

Inventor 2014, Windows 7, 64 bit

View 9 Replies View Related

AutoCAD Inventor :: How To Create A Rule In ILogic

Apr 18, 2012

I want to create a rule that will warn the user when the plate thickness they are using is not standard.  I have already created a multivalue parameter for plate thickness, which lists all standard steel plate thickness's and also allows for custom values.

I was hoping I could create a rule that would prompt a dialogue box warning when the user creates a custom value for plate thickness.

I know this can be done,  but like I said,  Im bloody useless with iLogic and find it hard to come across relevent examples and/or tutorials online.

View 2 Replies View Related

AutoCAD Inventor :: ILogic - Save As PDF Rule

Oct 24, 2012

I'm currently using this rule for easy PDF making

SaveLoc = "C:Temp"FileName = ThisDoc.FileName(False)Revnr = " rev_" & iProperties.Value("Project", "Revision Number")PDFnaam = SaveLoc & FileName & RevnrThisDoc.Document.SaveAs(PDFnaam & (".pdf") , True)MessageBox.Show("PDF is aangemaakt in C:Temp", "Document creation",MessageBoxButtons.OK,MessageBoxIcon.Information)

 The problem with this is that i want to save without lineweight? is there anyway to do this with this code?

View 2 Replies View Related

AutoCAD Inventor :: Running A Sub In ILogic Rule?

Sep 5, 2012

I have an ilogic rule with multiple Subs. How could I run one specific sub contained in that rule from an iLogic form or another rule?

View 2 Replies View Related

AutoCAD Inventor :: Delete ILogic Rule Using VBA?

Jul 6, 2011

i have an iLogic rule in serveral files. Now this rule has to be deleted. This should be done with VBA. I can not find any function to delete a rule using VBA.

I found a function iLogicAuto.RunRuleDirect(rule), but not iLogicAuto.DeleteRule(rule) ...

I can not find any documentation for iLogic/VBA.

View 9 Replies View Related

AutoCAD Inventor :: How To Trigger An ILogic Rule

Jun 26, 2012

I have an iPart which includes iLogic Rule. When I change iPart by table, iLogic Rules are not triggered.

In iLogic Utilities, there is a button "Rules Triggered by Events", If I use "Any Model Parameter Change", the update need long time, looks like Inventor is "No Response". I like the way "Material Change", but I need "part Number" change to trigger the rules. How can I do it? I tried other events as After Open, Before Save, etc, they are does not work.

View 9 Replies View Related

AutoCAD Inventor :: ILogic Drawing Rule

Jul 18, 2013

I have a rule setup for drawings. I need the rule to first determine if the there is a flat pattern view present. In other words, if there is no flat patter view, I want to the rule to stop.

I am very green to ilogic and VB. Running Inventor 2013.

View 2 Replies View Related

AutoCAD Inventor :: Get Correct Partnumber When Using IPart And ILogic?

Jul 10, 2012

I made part with iPart. And I use iLogic to engrave the P/N on the part.

View 9 Replies View Related

AutoCAD Inventor :: Switch From SolidWorks To ILogic And IPart

Aug 8, 2013

We are looking to switch from SW to Autodesk in order to utilize advanced surfacing in Alias, and its interoperability with Inventor.  However, we need to continue to perform Kinimatic linkage studies as well using Inventor.  I need to make sure we can perform the same calculations with ease before making the switch.

At this point I am trying to mimic in Inventor the kinimatic studies I perform in SW.  In SW I would perform these studies within a single part file, using a single sketch only (no solid parts).  Within this part file I would break up the total "travel" of the linkage into configurations that are driven by a "Design Table".  The Design Table would be used for both the main driving value, and for any driven values I wanted to use for analysis.

I am trying to find a way to get the same driven variables written to an Excel file to use for analysis using Inventor.

As a test example:

I would like to drive one variable(Damper Length) to get ~20 different iParts, each with the linkage moved to a new point within its set range of motion.  I then would like to write several Driven variables(Displacement_1-3 shown in "RULE CODE" attachement) from each iPart instance to an Excel file.

I have been able to get my 20 iParts and the linkage to move accordingly(iPART INSTANCES attachement), but I have not figured out how to write the driven data to excel for each iPart instance(20 rows of data, 3 columns).  I have only been able to write the dimesions for one row of data...whichever iPart is currently open.

with the necessary iLogic code or another solution?  It seems like this should be pretty straight forward.  Do I need to be using the "ChangeRow" iPart Snippet?

View 8 Replies View Related

AutoCAD Inventor :: IPart Table - Adding New Row?

Dec 9, 2011

I am looking for a way to add a new row to my ipart table.

I am able to get to the excel worksheet.

But from there, I can I save it? Will that add a new row to the table?

Dim oiPartFactory As iPartFactory
Set oiPartFactory = oCompDef.iPartFactory
Dim FactorySheet As WorkSheet

[Code]....

View 1 Replies View Related

AutoCAD Inventor :: ILogic Rule Shrinkwrap Substitute

Sep 19, 2012

Is there any way to create a rule to create a substitute on my weldment files?

what I need is something like:

If this document file type is weldment then create shrinkwrap substitute, go to the file (substitute) read the custom iproperty "area" and write to this document custom iproperty "area for sand-blasting" activate LOD Master then delete substitute LOD.

The propose is for purchase department to know the area of the assembly (only the area of visible surfaces).

View 1 Replies View Related

AutoCAD Inventor :: Add Keyboard Shortcut For ILogic Rule?

Oct 15, 2010

Is there any command/option to add a keyboard shortcut for ilogic rule?

Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013

View 9 Replies View Related

AutoCAD Inventor :: Getting Error When Creating ILogic Rule

Oct 14, 2013

When i trying to create a new ilogic rule i get window with this error:
 
Spoiler (Highlight to read)System.InvalidCastException: Невозможно выполнить приведение [A]iLogic.CodeSnippets к [B]iLogic.CodeSnippets. Источником типа A является "Autodesk.iLogic, Version=17.0.13800.0, Culture=neutral, PublicKeyToken=null" в контексте "Default" в расположении "C:PROGRA~1AutodeskINVENT~1BinAutodesk.iLogic.dll". Источником типа B является "Autodesk.iLogic, Version=17.0.13800.0, Culture=neutral, PublicKeyToken=null" в контексте "LoadFrom" в расположении
[code]..........

View 4 Replies View Related

AutoCAD Inventor :: Driving ILogic Rule Into A Part

Jun 17, 2013

I would like to make an External Rule that would make an iLogic Internal Rule (with the same code every time).  I guess what I really need is a way to drive an Ilogic rule into every part that does not have the rule in the part already.

I know what you’re thinking and just using the External Rule doesn’t work for what I want to do.  I need it to be an iLogic Internal Rule.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved