AutoCAD Inventor :: Add Custom IProperty To BOM Using API?
Jan 3, 2012I would like to add a Custom iProperty to the BOM using API.
It would mimic the "Add custom iProperty columns" dialog.
I would like to add a Custom iProperty to the BOM using API.
It would mimic the "Add custom iProperty columns" dialog.
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 RelatedI 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.
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.
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.
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.
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 RelatedI 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
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
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]......
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
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)
I have a drawing of a sheet metal part with multiple sheets. I have named each sheet to reflect the nature of the views (general dimensions, detail views, flat pattern, etc.). I want the name of the sheet to appear in the title block, but I cannot seem to find the "Sheet Name" property anywhere. Can it be added to the list of the drawing or sheet properties, or is there another way to achieve this?. I do not want to have to use Custom Properties, and manually re-enter the names of each sheet.
View 8 Replies View RelatedHow to export the drawing scale to a custom property, I can use in my title block? I would prefer that it updates when you save.
I use Inventor 2012 64bit.
I am trying to write a small standalone app in C# that I can run when I have an assembly document open. I want the app to iterate through all the parts in the assembly and set the iproperties. I am having some trouble accessing the iproperties however.
I want (for example) to set the "TITLE" in the "DOCUMENT SUMMARY INFORMATION" to be a concatenation of the part number and the description separated by a " - ".how to access these properties.
I'm looking for a way to convert the iproperty value "volume" into length from known values in the part. I have an assembly which consists of 20 different typs of sheets which are rolled out in certain patterns. The width and depth of the sheet are known, and I would like to use the volume to find the length. The assembly is linked to an excel file so the values will change based on certain parameters. I'm using this as a check to make sure there is no error from the spreadsheet.
View 7 Replies View RelatedI wonder why my ipt iproperty is not transfer to the idw iproperty. Is there something I need to enable for the iproperty?
View 1 Replies View RelatedI'd like to build a rule into my standard part template that takes the part number (which it automatically gets from the file name by default), removes the characters after a delimiter, as well as the delimiter itself, and sets that as a new custom property. For example, we'll call the custom property Prop1
For part 123-321-1.ipt
Inventor already sets part number iProperty to 123-321-1
I want to set Prop1 to 123-321
For part 123-321-25.ipt
Inventor already sets part number iProperty to 123-321-25
I want to set Prop1 to 123-321
I've created a form to fill out with drop down options that link to a multitext parameter. I want to link this parameter to the keyword iproperty but a text parameter will not export.
AutoDesk Inventor 2012
My company manufacturs many sheet metal parts that ends up being painted.We need to describe both material and surface treatment in the title blocks on our idw's. Inventor parts then have a selected material (the required steel type) and a color override is applied (the required paint job) But color override is not just like that to retrieve for the title block, like standard iproperties like
<MATERIAL> or <THICKNESS>
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 RelatedI am trying to change the iProperties "Physical" "Material" using an Inventor VBA macro..For example, say the material is set to "DEFAULT" and I want to change it to "TITANUIM", how can I do this using VBA?
View 1 Replies View RelatedI 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 RelatedI put this url in iproperty: catalog web link: google.it in a part
Then I published the DWF.
I supposed than I push ctrl - click catalog web link: google.it in design review properties table the browser pop up but nothing happend.
My idea is fill this iproperty of any part that need maintenance with the url of manufacturer. So the customer can directly download the manuals.
Am working on iProperties and i am trying to find the iProperty Location. I tried
-Inventor User Defined Properties
-Inventor Summary Information
-Design Tracking Property
But i am unable to find the Location iProperty.. how to find this location.
is there way to refresh sheet of drawing when an iProperty is changed trough API? When I change for example revision Number, the sheet still show old number. The value is changed, because if I open the iProperty dialog, there is new value and also when iProperty dialog is close then the sheet (title block with this property) is immediately correctly updated. I know that I can use ActiveSheet.Update method, but this update whole sheet and it take long time. There nust be something better because dialog iProperty doesnot update whole sheet and it is vvery quick.
Dim oISI As Inventor.PropertySetDim oDrw As Inventor.DrawingDocumentSet oDrw = ThisApplication.ActiveDocumentSet oISI = oDrw.PropertySets.Item("Inventor Summary Information")oISI.Item("Revision Number").Value = "test"oDrw.ActiveSheet.Update ' I would like to replace this line, this take long time
[URL]
For some reason I get the prompt update thunder aside of my parts list in .idw tree that wont go away...
I edited one of the parts, updating its iproperties and since that it wont go away.
I tried opening each part, assembly and updating, saving it but it wont work...
How to force update?
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 .
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?
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...
I am simply trying to traverse an assembly, check each component for existance (or value of) an iProperty, and if so add that components name to a list. Here is what I have, but it doesnt work.
'Define the open document
Dim oDoc As Document = ThisDoc.Document
Dim oRefDoc As Document
[Code].....