AutoCAD Inventor :: Use ILogic To Change Custom IProperty In Several Components At Once
Mar 25, 2013
I've been using iLogic. I'm creating a template assembly that will be used for multiple jobs. Therefore, the job number will be changing. I want a custom iProperty in ALL parts and sub-assemblies (cleverly call it "Job #" maybe) that I can include an a separate property called "Drawing #" which whose value will be [some text]-<Job #>-[some more text]. I want to be able to update all the "some text" parts manually for each component, but I want the Job # to update automatically. I need this property because I have a column in all my Parts Lists called "Drawing #" which tells the drawing number for any given part or assembly.
Ultimately what I want to do is open a text or Excel file, enter the job number, open my Inventor drawing, and have every Drawing # entry in every parts list magically update to the correct job number.
I've managed to use iLogic to do just that with a single .ipt/.iam file. But I have dozens upon dozens of components in the main assembly. I'd like to run some rule or hit some button or do something that will cause the Job # property to update for ALL sub-assemblies and parts, so that all my parts lists reflect the change.
View 4 Replies
ADVERTISEMENT
Dec 11, 2012
I am after writing part of rule for ilogic,i need the rule to fill out a custom property with information for me. I have a part that has 2 parameters
parameter 1 = Frontplanangleparameter 2 = Endplanangle
Custom property
iProperties.Value("Custom", "DESC2") =
I need the rule to examine both parameters and if both angles = 0 then DESC2 = ""And if any parameter >0 then
iProperties.Value("Custom", "DESC2") = bevel
View 1 Replies
View Related
Aug 12, 2013
I am migrating our old Inventor data to our new system. I will do an ilogic script for that.
I know how to add custom iProperties with iLogic but how can I remove them? Is it possible with iLogic? I would like to clean out all old iProperties that we don't need anymore.
View 2 Replies
View Related
Apr 1, 2013
I found this code to create a custom iProperty in the current, open document:
Dim propertyName As String = "MyProperty"Dim propertyValue as String = "Test Value"customPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")Try prop = customPropertySet.Item(propertyName)Catch ' Assume error means not found customPropertySet.Add("", propertyName)End TryiProperties.Value("Custom", propertyName) = propertyValue
I have a iLogic rule that goes through each component of an assembly, counts how many times it occurs in the assembly, and then assigns that value to an iProparty (i.e. it inserts the total quantity of the part in some iProperty). Currently, however, it assigns the value to a default iProperty value, "Authority". I'd like, instead, for it to assign it to a custom iProperty called "Total QTY". However, I don't know how to tell Inventor to do the above code for a component in the assembly rather than the assembly itself. Below is my entire code. I've labeled where I'm guessing the above code should go. How I'd modify the above code to create the iProperty in the component being processed by the rule at that point?
Current
''True comment: Begin '''Commented-out Begin '''PartDocumentObject = 12290''AssemblyDocumentObject = 12291Dim openDoc As DocumentopenDoc = ThisDoc.DocumentDim docFile As DocumentIf openDoc.DocumentType = 12291 Then''If the open document is an assembly:''For each document referenced in this document:For
[code]......
View 2 Replies
View Related
May 7, 2012
I want to have a Blank size custom iproperty using flat extents length and width this is what i did but gives error is there a way to get this to work the way I want it to? I dont want a Length and width to be seperated would like it all in one.
iProperties.Value("Custom", "BLANK SIZE")=Round(SheetMetal.FlatExtentsLength, 3)"X"=Round(SheetMetal.FlatExtentsWidth, 3)
View 2 Replies
View Related
Aug 7, 2012
I'm looking to see if there is a way to link the revision number to a custom iProperty in the same part. Our laser requires a specific output for programming, but I only want this to show up on actual lasered parts as we don't need it on parts that are sawcut. Basically what I would like to do is create a custom iProperty that I can link to the title block for that reads RV:<Revision>. Is there a way to do this? I'd rather not create a separate drawing template for lasered parts as we've got about 100 templates for our various customers the way it is.
View 6 Replies
View Related
Oct 18, 2013
After changing colors at assembly level only ,below is a rule that changes all parts that have material "Plywood" to poplar works great.
However I want a rule that does the same kind of change but on only temporally at assembly level only then we can change back to default colors by removing color override.
It would be good if we can do the following
Search assembly for .ipt files that have material that contains PlywoodChange to color using temporary override of "Clear - Light" Possibility of searching more materials within same rule ie : "Timber" to be black in color"Pvcu"to be white in color
Dim oCurrentDoc As Inventor.Document
Dim oDoc As Inventor.Document Dim oPartDoc As PartDocument
Dim oRefDoc As DocumentsEnumeratorDim oTargetColor As RenderStyleDim oNewColor As RenderStyleoCurrentDoc =
[Code].....
View 1 Replies
View Related
Apr 15, 2013
I want to create numerous custom properties for a part. Some of these will be the same for all instances of the part (i.e. vendor, part number, etc). But some have to vary from instance to instance.
So, as an example - if I place 5 identical tanks into my assembly I need to assign unique text entries for each of these 5 instances (i.e. TANK-01, TANK-02, TANK-03, etc)
Furthermore, all these textual properties have to be able to be shown physically on the part (for identification on plots) and extractable for BOMs, etc. It seems that any custom i Properties I set up are global for all instances of the part.
View 1 Replies
View Related
May 31, 2013
<Subassembly document name>” = iProperties.Value("Custom", "CUSTOMER P.O. NUMBER") iProperties.ValueInDoc("<Subassembly document name>.iam", "Custom", "CUSTOMER P.O. NUMBER")= Ucase(InputBox("CUSTOMER P.O. NUMBER?", "Create Customer P.O.#", iProperties.Value("Custom", "CUSTOMER P.O. NUMBER")))
View 3 Replies
View Related
Jul 22, 2013
I know how to get a parameter into my list of custom iProperties.What I want to do is take the iProperty lbmass and add it to the list of user parameters. Is there any way to do this without using iLogic?
View 8 Replies
View Related
Apr 11, 2013
I have a template part that I would like to save automatically once the parameters dialog box is closed. I would also like the Save As filename to automatically be filled in with a iProperty named "Part Name". I already have the "Part Name" description grabbing information from parameters. Is this possible? And is the best way to trigger the event after an "iProperty change" or "Any Model Parameter Change"?
View 1 Replies
View Related
May 10, 2013
I'm looking for a way to change the size of a custom content center part via ilogic. I found a way to replace them on this forum but this is not ideal for, because that creates a new part every time i change the size of the part.
View 2 Replies
View Related
Jun 6, 2012
I am trying to find an ilogic for part proparty entry as soon as I create new part/assy.
I know it is possible by Event triger-> New Document .
View 9 Replies
View Related
Oct 13, 2011
I am trying to use the iProperties.Value("part1", "Summary", "iProperty") function to get the filename or complete filepath of a component within a subassembly. I know that these iProperties exist because I can insert them onto a drawing, and I see them in the general tab of the iProperty window.
However, when I try something like:
filename = iProperties.Value("part1", "General", "Filename")
I get an error message indicating that the General tab can't be found. How might I go about getting this filename iProperty, or is there an easier way?
View 4 Replies
View Related
Jun 26, 2012
How to set multi parameter, iproperty using ilogic (or smth else)?
I hav eparameters: d1=50, d2=100, d3=5. I need to set a new multi parameter/iproperty that the final value is:
Angle 50x100x5 (suppousedly code should contain smth like: "Angle", "d1", "x", "d2", "x", "d3") but I do not know exactly...
View 2 Replies
View Related
Jan 3, 2012
I would like to add a Custom iProperty to the BOM using API.
It would mimic the "Add custom iProperty columns" dialog.
View 5 Replies
View Related
Aug 31, 2011
I want to change 'mutil value select" to "custom value input" in ilogic user parameters. something like this:
if condition A then
multivalue.setlist("length", 1,2,3,4,5)
else
(users can enter any value they want, how can i remove the list first and set it to custom value input?)
View 2 Replies
View Related
Sep 17, 2012
I want to use Ilogic to construct a code part name.
My question is perform a code of about 12 characters. For example the parameter "Lenght" is 600mm but in the expressione result It must be "000000000600" (a string of 12 characters)
View 3 Replies
View Related
Nov 3, 2011
I am struggling to find the right ilogic to extract the state of a multi-value text parameter and use it to populate a single i property.
View 1 Replies
View Related
Oct 17, 2011
Is it possible to add the iproperty summary, comments to a ilogic form?? Can't find it in the list..
Autodesk Product Design Suite Ulitmate 2012 Sp1 / Vault Collaboration 2012 Sp1
HP EliteBook 8560w
Intel(R)Core(TM) i7 CPU Q 720 @ 2,0GHz 2,0GHz
16GB RAM
Windows 7 X64 SP1
View 6 Replies
View Related
Jan 16, 2012
I am trying to add a custom iProperty from my assembly to the drawing parts list. According to the help wiki, I'm supposed to click Column Chooser > New Property > Custom Properties List (click here to see the relevant wiki page--also see the attached screenshot called Custom Property Help.png).
When I click on new property, there is nothing about Custom Properties List.
View 2 Replies
View Related
Jun 18, 2012
I can't get Inventor 2013 show a custom iproperty correct.My iLogic rule is this:
iProperties.Value("Custom", "myvol")=volume = iProperties.Volume
But the custom iProperty is a Yes or No.Had no problem with this in Inventor 2011.
View 2 Replies
View Related
Oct 26, 2012
I had wanted to find a way to engrave/emboss the part number on a part model and have it be parametrically tied to the part number iProperty. Since it doesn't appear that I can create a text box and insert the iProperty directly, here's what I did to work around this. (I setup my part templates to have this out of the box....)
1. Within, the IPT file, add a user text parameter called "PartNo" and set its initial value to any text value.
2. Create your sketch for your text to be engraved. Insert the User parameter you just created.
3. Create the engraving/embossing for your text.
4. Create the following iLogic rule:
' Requires a User Text Parameter called "PartNo" prior to running' Set the appropriate event trigger to tasteIf Parameter("PartNo") <> iProperties.Value("Project", "Part Number") ThenParameter("PartNo") = iProperties.Value("Project", "Part Number")InventorVb.DocumentUpdate()End If
5. I set this rule to fire using the "iProperty Change" event trigger. So if the iProperty is set or changed, your text will update. Obviously, you can set this to run with whatever trigger you like.
Inventor 2014 64-bit SP1
Win 7 Pro 64-bit SP1
View 2 Replies
View Related
Aug 29, 2006
way to get multiple lines of text in an iProperty? I am using a custom iProperty named "Title" so users can insert the drawing title into the title block using the custom iProperty. The only problem is that the title comes out all on one line and goes outside the title block. Should I be using iproperties or is there a better way?
View 2 Replies
View Related
Dec 21, 2011
I have gotten in the habit of using a leader text with a custom iproperty to do material call outs on my drawings. I have been doing the first one then copy/pasting the leader onto each piece i want to call out.
This worked flawlessly in 2010 and has worked well previously in 2012. For some reason it is not working at all in this particular .idw.
work flow is to create the first instance, copy. right click outside the view border and select paste. Then attach to as many different parts as needed.
attached is the error message I get.
The custom iproperty is text. 1/2 a36 or 4x4x3/8 Angle
View 1 Replies
View Related
Apr 11, 2012
In the attached file there are two custom iProperties that cannot be perminantly updated nor deleted. The iProperties are "size" and "purch_qty". These iProperties were created and set using a custom macro but they are of course accessable via the standard iProperties dialog. I can change the values for these particular iProperties but as soon as I save the file they revert back to their original values. Same goes for trying to delete them. All other iProperties, custom and otherwise, seem to behave normally.
The sketch in this file originated with a 2D DXF file for a vendor supplied aluminum extrusion quite a few years back. The original file has been copied (save-as...) to about 20 different files over the years. The iProperties in question were added years after most of the files were created, Each file is exibiting the same problem. These files are used in a LOT of assemblies. The thought of recreating all these files from scratch and updating the assemblies is not very inviting.
No other IPT files seem to be having this issue.
Inventor 2012 SP-1
Acad 2012 SP-1
Vault 2012 Update 1 Hotfix DL18480860
Windows 7 Pro 64-bit SP-1
Quad core Xeon 2.26GHz 12 GB
Quadro 4000, 7936 Mb, driver 8.17.12.6570 (265.70), Dual Monitors
SpacePilot Pro, driver 3.3.107.0
View 3 Replies
View Related
Jan 29, 2013
I'm new to inventor and I need to be able to create coppies of a part in my assembly that are uniquely identified so they can be individually changed. I see that this can be done through the ribbon with the "Place iLogic Component" button, but is it possible to do this from the API in a rule?
I am using inventor 2012 pro.
View 2 Replies
View Related
Jul 10, 2012
Lets say you have 100 Keps Nuts in an assembly. Named (KepsNut1,KepsNut2, etc)And you want to suppress them on and off.
Would there be a way to make an array 1-100 and just say suppress/unsupress "KepsNut" & array list of numbers.To basically add the two strings and find all the components in that array and turn them off or on.!
View 9 Replies
View Related
Mar 1, 2012
Can I use an iLogic Rule at the top assembly level to "replace all" of a particular component is that component resides in more than one subassembly? I need a rule to run and globally replace the component in all subassemblies without opening up each subassembly manually. I can run a rule in the individual subassembly that looks like the following:
If GoExcel.CellValue("3rd Party:Embedding 1", "Sheet1", "A2")=800 Then
Component.Replace("Part1:1", "OtherPartfilename.ipt", True)
End If
Is there a way to run a "replace all" command from a top level assembly?
View 1 Replies
View Related
Jul 26, 2012
I need to modify all the ipt in an assembly, but I don't kow how many ipt I have, and I don't know the name. Can I have with iLogic the list of all the ipt used in the assembly ? For example, to modify the Part Number in all the components.
The code should be like this :
For All component in Assembly
...
...
Next component
View 3 Replies
View Related
Sep 17, 2012
I have a pattern of reference components, but the quantity of the pattern can change based on certain criteria. When the quantity increases or decreases, I need each pattern element to have its BOM structure set to reference.
The problem is, even if the original pattern element is set to reference, each subsequent element comes in as normal. This causes the BOM quantities for that component to be reported incorrectly in higher assemblies.
Is there some iLogic or VBA code that will automatically set each component in a pattern to BOM structure "Reference", even if the pattern quantity changes?
View 7 Replies
View Related