AutoCAD Inventor :: List Of ILogic Commands / Syntax Functions
Sep 6, 2013
I used to have an A1 printed sheet of all of the ilogic commands, functions, syntax or whatever you call them. It was all nicely grouped and colour coded etc
Unfortunately I have since moved jobs and lost this and neither me or google can find this again, any copy or link? it may have been a pdf or excel format.
View 3 Replies
ADVERTISEMENT
Dec 17, 2013
I want a ilogic rule syntax for following process:
I have one excel sheet it consists around 5 sheets for Plate, Flats, Rounds, etc. When i am run the rule then it will ask and do the following:
Ask the thickness value.It will search thickness value in “D:LINUS KOTTEstock numbers.xlsx” in sheet 1If thickness value found then fill the stock number in iproperty(project tab-stock number)
Here i am using different rules for plate, flat, round, etc.,
View 2 Replies
View Related
Jul 3, 2012
Are there any prebuild functions for Calculus in ilogic.
View 2 Replies
View Related
Sep 2, 2013
ilogic is calculating tan/sin/cos/aTan/aCos/aSin incorrectly. E.g.
MessageBox.Show(Atan(35))
Answer = 0.4738... when it should be 0.7002....
View 5 Replies
View Related
Apr 10, 2013
I have an iLogic rule in which I'm trying to set three user parameters for the gage of each leg of a steel angle. I want Inventor to set the gage based on the length of each leg. Here's the table I referenced for gages: [URL].
In my code, I have a sub called DetermineGage which takes the leg length, whether it's the short leg or the long leg, and determines the gages that should belong to that leg. Inside of that sub it calls on a sub called ApplyGage which then applies the determined gage to the rule's gage variables. The main sub then grabs those variables and applies those values to the actual user parameters.... In theory.
The rule executes ok with no errors, but doesn't change the value of the user parameters; they're always "0". As best I can tell, the "oGage" variables I used in the rule don't even get assigned the correct value, which makes me think the DetermineGage and ApplyGage subs can't even access the oLegLength or oGage parameters to read or set them. I don't want to use global parameters because I've heard that can make programs very unstable over time and is just bad practice. How can I make these variables accessible to all subs IN THIS RULE, no more no less?
Sub Main()Dim oLegShort As Double = Min(G_W,G_H)Dim oLegLong As Double = Max(G_W,G_H)Dim oLegLength As DoubleDim oGage As DoubleDim oGage1 As DoubleDim oGage2 As Double'Short Leg:oLegLength = oLegShort'Call DetermineGages sub to set oGage variables:DetermineGages()On Error Resume Next'If gage parameter does not equal true gage, set it equal:If Parameter("ShortLegGage") <> oGage ThenParameter("ShortLegGage") = oGageEnd If'Assume error means gage parameter does not exits. Create and set equal to true gage:If Err.Number <> 0
[code]...
View 9 Replies
View Related
Oct 4, 2011
I am working on creating a new part file Template. Any useful and productive iLogic functions those are already available.
A while ago, I had seen one that would simply triger when part was checked in or saved. It would check if the material feild was utilzed or forgotten at Default.
share if there are any good iLogic functions that we might benefit from.
C1
Inventor Professional 2013
Vault Collaboration 2013
View 2 Replies
View Related
Mar 22, 2013
how the internals of Inventor / iLogic are working.
We have multiple instances of Inventor running on a 12 core workstation so we can push configurations through concurrently - each Inventor instance is assigned its own processor affinity and each instance has its own project which points to seperate directories of Inventor models.
Everything seems to work OK when there are up to 5/6 working concurrently, but as soon as there are more than 6 the iLogic functions seem to grind to a halt - note that the rules are external rules.
For example, this function took 11 seconds to complete when there were 10 concurrent orders processing. :
Parameter("BLANK", "EDGE_FRT_ACTIVE") = "YES"
Similarly these functions took 11 seconds in total to complete :
iProperties.Value("Custom", "M1110900_P1PO") = iProperties.Value("Custom", "BLANK_GDIM") - iProperties.Value("Custom", "PANEL_GDIM")iProperties.Value("Custom", "M1110900_P2PO") = iProperties.Value("Custom", "BLANK_XGDIM") - iProperties.Value("Custom", "PANEL_XGDIM")iProperties.Value("Custom", "M1110900_P1OR") = 1iProperties.Value("Custom", "M1110900_P2OR") = 0
When I run these with less that 6 concurrent Inventor processes, they're are almost instant.
I just don't know where the bottleneck is. I've ruled out :
- Processor (each core never reaches above around 60%)
- RAM (we've got 48GB of RAM, with about 15GB free at worst)
- Disk (disk IO is busy, but it doesn't look like it's the bottleneck)
- Graphics (Inventor is in silent mode, with no UI, so graphics activity is minimal)
From the tests I've done it seems to be the iLogic functions that are the bottleneck. My next port of call is to change the iLogic functions to actual API calls, but I suspect I'll get the same results.
So, my questions :
Is Inventor queing these iLogic API calls somehow (note we're creating a unique instance of the Inventor.Application COM object for each processing thread) ?
Is there an issue with using external rules with nultiple instances?
Dell Precision R5500, Intel Xeon X5690 3.47GHz (x2)
48GB RAM
Inventor 2013 (PDS Premium)
64bit Windows 7 SP1
View 4 Replies
View Related
Aug 28, 2013
I need to use the property " File Subtype" for programming a function in logic, but inventor not recognise this property.
I use this function "If iProperties.Value("Project","File Subtype")=Sheet metal"
How i can do for use this property for a ilogic function?
View 3 Replies
View Related
Oct 10, 2012
I am trying to find a way to assign keyboard shortcuts for different selection sets functions/commands.
I failed to find selection set commands in customize user interface menu. seems that they named it in a manner so that people cant find them when they simply look for "selection" or "set" or "create selection set" or "make selection set" .
what I need is:
1. when I select a group of objects I want to make them a selection set with one keyboard shortcut. (to go to the sets menu window and press that "create a selection set" button is too time consuming. I am also aware that just writing a letter to the selection sets dialog creates a set but still I want that shortcut.)
2.select an object and immediately jump to the whole selection set with a keyboard shortcut. or toggle through selection sets.
3.delete the active selection set with one keyboard shortcut.
are these functions available as native commands in customize user interface?should I go looking for a maxscript ?
View 1 Replies
View Related
Nov 18, 2013
Trying to have ilogic find parts in an assembly that start with 900C7 so I can link the to a cell in excel showing the QTY and the LENGTH..
Right now I am just trying to get ilogic to find and list them then I know I can move to the next step..
Example:
900C71.250
900C72.125
900C7A.750
900C7P1.1875
And many more.
Here is what I have but it keeps posting the NOTHING message box. I have a few of the parts in the assembly and a few none 900C7 parts.
Dim openDoc As Inventor.DocumentDim docFile As Inventor.DocumentDim assemblyDoc As AssemblyDocumentDim partOcc As ComponentOccurrenceDim FNamePos As LongDim docFName As StringDim oList As Collection = New CollectionopenDoc = ThisApplication.ActiveDocumentIf openDoc.DocumentType
[Code] .....
Here is a screen shot of the excel file what I am trying.
View 9 Replies
View Related
Dec 11, 2012
Is there a way I can write some code, so that in idw, I can choose from two different text for "Description" in BOM table? My work place requires to show material information when it's a fabrication drawing, to show part description in assembly drawing in "Description" column.
At the moment, we just override material information (for example, 40x40x3 RHS) to part description (RHS Spreader). It's not very safe to do that. Most of the times, we just forget to change it.
Autodesk Inventor 2013 SP1.1 64-Bit
Vista Business 64-Bit
E8400, 8GB, ATI FireGL V5600
View 5 Replies
View Related
Dec 11, 2012
I have a section of code (see below) which runs a program which highlights a part/subassembly red, then gives the user a list dialgue box in order to easily replace the compent. At present, I have this code repeated for each part/subassembly in my main assemby (i.e. FRAME, POWER_RISER, BUSBAR_CHAMBER, BUSBAR_ASSEMBLY...).
Having the code repeated multiple times, means it is very time consuming to modify. I want to be able to generate a list then have the code below, run for each of the entries in the list. So I need something along the lines of
dim mylist as something
mylist = FRAME, POWER_RISER, BUSBAR_CHAMBER, BUSBAR_ASSEMBLY...
FOR each entry in mylist
run all the code below (with the words 'BUSBAR_ASSEMBLY' replaced with 'mylist'
END
[Code] ........
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
View 3 Replies
View Related
Nov 15, 2013
It takes a list of Parameters and cycles through the assembly looking for parts with the same parameter names. It then copies the value of the parameter from the assembly down to the part.
It occured to be that this would be more efficient if I didn't have to manually create a list of parameters to compare.
What I'd like to do is create a list of all parameters in the assembly file that begin with the prefix 'A_', and compare this list against the parameter list held in each subassmbly and part file in the assembly, copying the values down as before.how to build the parameter list?
' set a reference to the assembly component definintion.' This assumes an assembly document is open.Dim oAsmCompDef As Assembly Component DefinitionoAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition'Iterate through all of the occurrencesDim oOccurrence As ComponentOccurrenceFor Each oOccurrence In oAsmCompDef.Occurrences'check for and skip virtual components'(in case a virtual component
[code]....
View 9 Replies
View Related
Dec 10, 2012
I have almost got my ilogic part working the way I want it. I have to go into the parameters and choose from a Multi-Value list.
Is there a way in ilogic to get a input box to come up when I place my part in an assembly (like an ipart)?
View 3 Replies
View Related
Jul 18, 2012
I populate the members of a (text) Paramter from an Excel file
i.e.
MyArrayList = GoExcel.CellValues.("MyExcelWB.xlsx", Sheet1", "A2","")
Now this list contains plenty of duplicates. Is there anyway inside iLogic to remove the duplicates.
View 1 Replies
View Related
Oct 26, 2011
Is there a way in iLogic to set the input list box width?
View 7 Replies
View Related
Oct 4, 2012
I curently have a rule that generates a part list automatically in a drawing. the problem is that I want the rule to be continuisly running but it keeps generating 2,3,5... parts lists. I need an if statment to check if a parts list already exists.
iLogicVb.UpdateWhenDone = True On Error Resume Next ' Set a reference to the drawing document. ' This assumes a drawing document is active. Dim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocument 'Set a reference to the
[Code].....
View 2 Replies
View Related
Jun 19, 2013
im trying to programatically add a parts list into a drawing whilst programatically creating the drawing - the code works fine without the parts list code. The error its showing is 'Parameter incorect' on the line that sais PartsList.add(... In the past when ive got this error with other code it has been because ive used an incorrect parameter (e.g. decimal instead of an integer).
My error is somewhere inside the oPartsList.add(>>ERROR SOMEWHERE HERE<<<)
oDrawDoc = InvApp.Documents.Add(Inventor.DocumentTypeEnum.kDrawingDocumentObject,AssyTemplate,True)
oSheet = oDrawDoc.Sheets.Item(1)
[Code].....
View 1 Replies
View Related
Nov 18, 2010
I need to generate an iLogic rule exporting Parts List (not BOM) from a IDW to a specific folder in XLS format.
Using Autodesk AutoCAD Inventor 2011
View 9 Replies
View Related
Jul 8, 2012
I am trying to populate a multi-value user parameter with a list composed of the various materials available from the iProperties "Physical" tab. So far I have this:
For Each material In iProperties.Materials
Bracket_Material.Items.Add(material)
Next
iProperties.Material=Bracket_Material
Running the Rule gets this error message:
Rule Compile Errors in Material_Rule, in _Mounting_bracket.ipt
Error on Line 2 : 'Bracket_Material' is not declared. It may be inaccessible due to its protection level.
I think I am doing the "Bracket_Material.Items.Add(material) " line wrong, but I don't know enough VB to fix it. It seems to me it IS declared in the Parameters table - isn't adding the parameter to the parameter table sufficient to declare it?
Eventually I want to add the Bracket_Material Parameter to a form so the user can select material from drop down list and assign it to part.
View 3 Replies
View Related
Nov 7, 2011
I have got some ilogic code that i have patched together to sort my parts list in inventor which works great but it will not update all sheets at the same time as when we design we have multiple sheets with parts list on and the odd one without.
add to this code to update all sheets partlists and also recognise that some sheets will not have partslists on so this will need to skip.
below is code that is used to sort
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 4558 StartFragment: 314 EndFragment: 4526 StartSelection: 314 EndSelection: 314
SyntaxEditor Code Snippet
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 4558 StartFragment: 314 EndFragment: 4526 StartSelection: 314 EndSelection: 314
[Code] ...........
View 4 Replies
View Related
Feb 8, 2012
Below are 2 rules that run in succession to create and save a parts list from a base view in a drawing.
I am now trying to set the parts list style to a custom style, ideally while creating the list.
Also, I have to manually go into the list to turn off visibility of certain items (based on material), does I can do this with Ilogic? I ask because these steps precede a rule that automates placing base views of all parts in the parts list. If I could get the style and visibility right, I could automate the entire process.
Looking for changing such a style with ilogic?
Inventor & Vault Pro 2012
Windows 7, 64bit
Core i7 920@2.67
8GB
CREATE PARTS LIST____
' Set a reference to the drawing document.
' This assumes a drawing document is active.
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
'Set a reference to the active sheet.
[Code] .....
View 9 Replies
View Related
Aug 29, 2013
A client was looking to develop a custom interface for documenting iAssemblies.
Would it be possible with iLogic to:
1. Show form.
2. User selects a Browse button to select iAssembly to document.
3. List all iAssembly configurations in the form.
4. User picks configuration.
5. Select OK to create base view, projected view, and Parts List.
This may require API.
View 7 Replies
View Related
Oct 31, 2011
I am creating a drawing controlled by ilogic. The assembly can vary in size considerably so I have set the IDW to change between sheet size A3 and A2 accordingly using ilogic. However, when the sheet size is changed, the parts list stays in a static position.
Currently, the parts list is situated in the top right corner up against the title block and the border. So when changing from Size A3 to Size A2, the parts list ends up in the middle of the page. Is there anyway i can control the position of the parts list so it changes with the sheet size change?
I know I could simply move the partslist to the bottom left corner, which is a work around. However, I'd like to be able to keep the drawings in line with the company standard.
View 1 Replies
View Related
Apr 4, 2013
I am Trying to add the category Field to the parts list, if a sting exists in the field. I want to run this as a rule at the Drawing Level. I can check if there is a sting in the Category Field But not sure how to add this in the Parts List.
View 4 Replies
View Related
Jul 8, 2013
I have a form with a multi value selection containing name vaules from an iPart.
I want to make a selection from the field in my form and swap out my iPart in the assembly for my selection.
I thought that something like:
Dim iFactory As String
MulitValue.SetListInComponent ("FileName:1", "Param name", "list of params.......")
Parameter("FileName:1", Param name") = "PK 407" 'could be any thing selected from the list of params..
iFactory=Param name
iPart.ChangeRow("iPart Factory File Name:1", iFactory)
Such that the part would be swaped out for what ever Param name = as a result of user selection.
I get the following error from this: Object reference not set to an instance of an object.
View 1 Replies
View Related
Jun 11, 2013
I found the following code on Curtis Waguespack site. [URL] ........
View 3 Replies
View Related
Aug 21, 2013
At my company when producing drawings for manufacture we require a sheet for any steel profiles to be cut!..We do this by selecting the assembly from base view,hitting model view tab, selecting presentation and choosing the relevant profile from the drop down!
Once the profile is placed, we highlight the view and hit the parts list tab which obviously creates a parts list, but for the whole assembly, we then have to edit the parts list by turning off the visibility of the lines of all the parts which are not relevant!!...as you can imagine this is quite a laborious task if you have 50 different profiles.
The reason for this is to show the qty, steel grade and part number to the suppliers. My question is, any code that will take the lines of the parts list that are not relevant to the selected view and turn the visibility of those lines off?
View 1 Replies
View Related
Feb 15, 2013
I was just wondering how to place a component into an assembly using ilogic? If this is possible, is there also an option to choose if iMates will be generated?
I would ideally like to place a list of components into an assembly, the list with probably exist in excel, then have iMates set to 'Automatically generate iMates on place' so that my assembly assembles automatically.
Inventor 2013 Certified Professional
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
View 7 Replies
View Related
Mar 5, 2013
I'm trying to create an iLogic rule that will print a text string to a cell or coloum of a parts list in inventor.
My code so far...
Sub Main()
On Error Resume Next
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
[code]......
I want to print what is in the Message Box into a cell in the parts list, and i am stumped. The cell i am trying to print to is a user property in the Parts List.
View 1 Replies
View Related
Mar 5, 2013
I am trying to make an iLogic rule that gets mutliple strings from different places, and prints them to a user property in the Parts List.
My ultimate goal is to print the drawing number, sheet number and the item column value to the user property with the format being...
"XXXXX-X-X"
So far, i can get the drawing number from an iProperty and the sheet number easily. But im getting stumped on obtaining the item coloum value and printing it to the same row.
This is what i have so far...
Dim DWGNUM As String = iProperties.Value("custom", "DWG Number")
SheetNumber = Mid(ThisDoc.Document.ActiveSheet.Name, InStr(1, ThisDoc.Document.ActiveSheet.Name, ":") + 1)
MessageBox.Show(DWGNUM+"-"+SheetNumber, "DXF Number")
And print the message box output to a column in the parts list
View 7 Replies
View Related