AutoCAD Inventor :: Part Number In IProperties Is Automatically Updated To Match New Filename
Jun 13, 2013
When you do a Save As or Save Copy As in Inventor the part number in the iProperties is automatically updated to match the new filename. I would expect the Document.SaveAs method in the API to act in a similar way. However I found out that this is not the case.
SaveAs: Document.SaveAs(filename, False) does not update the part number. The new part will still have the same part number as the original part. This can give problems since in the BOM parts with the same part number are interpreted as the same physical part.
SaveCopyAs: Document.SaveAs(filename, True) does work as expected and the part number will update correctly.
Is this a bug in the API? or is there a reasonable explanation for this?
Inventor 2013 SP2
View 5 Replies
ADVERTISEMENT
Jul 29, 2013
Currently I'm converting one of our machines from AutoCAD to Inventor 2009.
This machine can vary from 1200mm to 1600mm and has a couple of options to choose from for our customers.
These dimension changes are all driven by a single excel file and the options are controlled in the an IAssembly.
Some of the 2D drawings will have a variable width, in our ERP system they are marked width dependable as followed: "partnumber/1200" or "partnumber/1410" in which 1200 or 1410 is the machine width.
Is it possible to have the 2D drawings automatically update the partnumber? so if I configure my machine as a 1200mm machine it automatically changes my drawingnumber to the actual machine width?
View 1 Replies
View Related
Feb 26, 2013
Is there a api to read part number value in properties "Project Tab" for a drawing document?
View 2 Replies
View Related
Oct 28, 2013
I have two user parameters saved in a part template that are tied to the part volume and an overall estimated part weight. The user parameter Pc_Volume is the volume in cubic feet and calculated by pulling the part mass (in cubic inches) and converting to cubic feet via ilogic rule. This is then automatically run via event triggers before a file is saved and if the part geometry has changed to keep the volume up to date. These are exported because they get pulled into iproperties of our drawing files as well as used to create a parts lists showing the volumes and weights.
I have the property formats of the user parameters set to Number and to unitless and the unit display turned off so it does not show on the parts list, with a precision of 0.000 for Pc_Volume. The Pc_Weight is set the same way however with a precision rounded to the nearest whole number.
These are created this way so when we use the part file as the template when we select "Make Components" to separate our parts and tie them to an assembly all the files are then updated and the information saved for exporting.
The problem is, the Pc_Volume always comes in rounded to a whole number. The Pc_Weight Does as well, but that doesn't bother me since we want it to do that anyway. If I would go into the part file after it's created, double check the precision and then re-run the rule the volume will show up with the correct precision in the exported parameters. I don't want to have to open each partfile however to get this to update.
Attached are images of the parameters, ilogic rule, and exported results.
View 2 Replies
View Related
Nov 8, 2011
Create a Content Center Part that prompts for a file name and sets the Part Number to whatever I save the part as? It would also be nice to... Have the browser Display name the same as the saved filename.
If I have a standard part with a blank filename, inventor will make the part number equal the filename at the first save. It is this functionality that I require when using Custom Content parts.
E.G. If I have a length of 'RHS 200x100x6.3 - 2000mm' selected from content centre and I want the filename to be saved as 'Part-001', then I would like the Part Number to be set as 'Part-001'.
If I then place the same member in another project/assembly I may want to call it 'ProjectPart-100', where the part number would then be 'ProjectPart-100' and so on.
This method ignores the filename entry in the Ipart table.
View 1 Replies
View Related
Sep 22, 2006
here's a macro I wrote to copy the filename to the Part Number iProperty for all parts and sub-assemblies contained in a top-level assembly. I wrote this after using a bunch of custom iParts and all the Part Numbers were the same for each part! (my fault of course, but a pain to fix one at a time).
Public Sub SetAllComponentPartNumbersToFileName()
Dim oAsmDoc As AssemblyDocument
Set oAsmDoc = GetActiveAssembly
If oAsmDoc Is Nothing Then Exit Sub
SetAssemblyComponentPartNumbersToFileName oAsmDoc
End Sub
[code]....
View 4 Replies
View Related
Sep 21, 2011
I would like to have the part number automatically be entered with ilogic.
Normally I know how to do this but this time I'm trying to have a couple constant letters with numbers to be filled in.
Example
MGR72
MGR is constant and the 72 will change with the width
What I thought would work but doesn't is
iProperties.Value('Project", "Part Number")="MGR" Width
View 2 Replies
View Related
Sep 19, 2013
I was looking for some iLogic Code for Inventor 2013 that would cycle through all the parts in an assembly grabbing the quantity of each part and setting it equal to the custom property "Qty" of each part.
Having a little trouble creating the for each loop and setting reference to each part without referencing each part by specific name.
View 6 Replies
View Related
Jun 11, 2012
In the I properties project tab I would like to change the "Stock Number" name to "A.R.M.-PN:". I need to reference 2 part numbers in my IPT I properties. This will then show up on the Parts List as a column which I can add. Or I would like to add a new dialog box to the "Project Tab". Is there a easy way to do this in 2011 Inventor Professional?
View 5 Replies
View Related
Dec 14, 2012
When I publish from Inventor to DWF (including sheets in the idw and an view of the iam assembly file) numerous part properties are included in the dwf that I would like to strip out so we don't share too much info with.
For example, filenames are included, stock numbers the complete bom from the model (as opposed to the parts lists that are shown in the idw's... This info shows in the structured bill, and if you click on a part in the iam.
How do I filter all this out so I only show part numbers and descriptions in iproperties?
View 4 Replies
View Related
Jul 1, 2011
I like to keep the properties of my drawing the same as those of my model. Currently I must remember to hit the "updat copied properties" button in the drawing to discard any old drawing properties and replace them with the properties from the model.
Is there any way to automate this task (perhaps on saving the drawing?) I presume an iLogic rule could be created in the drawing template, just not sure how to go about it.
View 7 Replies
View Related
Nov 2, 2011
I am using ilogic in Inventor 2011 to update my iproperties when I save a .dwg file. I am having problems with some custom iProperties I have created that are of the type 'number' and are initially set to 0 (zero). After the iLogic rule has run and the user has entered a numeric value the type of the custom iproperty has changed to 'text'.
The ilogic code I am using is:
If iProperties.Value("Custom", "Nominal ID") = 0 Then
iProperties.Value("Custom", "Nominal ID") = InputBox("Enter The Nominal ID (Enter 0 if no value is available)", "Nominal ID", 0)
Custom_iProp_Nom_ID = iProperties.Value("Custom", "Nominal ID")
End If
I am using Vault 2011 and would like to map this property to a numeric property so I can perform <= and >= searches.
View 2 Replies
View Related
Dec 5, 2012
Is there any way to add an "iProperties" item to the context menu in the drawing environment, so that I can select a part on the drawing and access its iProperties, instead of having to "Open, edit iProp, Close," for each individual part? - Using Autodesk Inventor Professional 2012
View 2 Replies
View Related
Jul 3, 2012
Any way of having 2 files with different file name but identical designs what automatic updates the other one?
I need the same valve design with different materials, stock number and part names but I would like to make sure that both files are always updated to latest rev. Without having to remember to do it my self every time.
We are using vault?
View 4 Replies
View Related
Nov 22, 2012
I am currently working on a school group project that requires me to submit all inventor files as "LASTNAME_FIRSTNAME_PART,ASSY,DRAWING,etc..NAME". My original parts were all done in mm instead of cm, so for our project, I opened all new files and derived the same parts at a different scale to fix this scale issue between the members. For the new derived parts I temporarily allowed the file name to remain as part1, part2, part3.... and continued with the assembly. Now that my assembly is complete and I would like to change my part file names to the required format, my assembly will not show the parts and (?) symbol is shown by all parts with updated file names. I also changed the original file names and now the new derived parts, when opened, have the same (?) which I assume is related to the fact that the derived parts are dependent on the original file. Is there a way to update this information? We are using INVENTOR 2013.
View 2 Replies
View Related
Oct 2, 2012
We have recently migrated our production work to Autodesk Inventor. We have a condition or rather a requirement to constantly keep a check on the iProperties of a part while in an Assembly file.
So I thought the best way to do so is to have a form which float's in one of the corners of the screen and updates the fields based on the item selected. Is this possible?
We mostly have parts one level below the assembly, occasionally we have them as a sub-assembly.
View 7 Replies
View Related
Jan 28, 2013
I would like to be able to add iproperty values to a derived part from the assembly..!
Breaking it down..:
When i run the rule, it creates a derived part from the Assembly i have open.
The iproperties from the assembly should be copied to the new Derived Part. or just set direclty from the rule, doesn't matter...
View 9 Replies
View Related
Sep 26, 2013
How to add a virtual part from an excel list to assembly using vb.net plugin. I`d like to know how to change i Properties of the virtual part through vb.net.
The iLogic code that I would typically use is:
Dim occs As ComponentOccurrencesoccs = asmDoc.ComponentDefinition.OccurrencesDim identity As Matrixidentity = ThisApplication.TransientGeometry.CreateMatrix
Dim virtOcc As ComponentOccurrenceIf v_qty >= 1 ThenvirtOcc = occs.AddVirtual(sVirtPart, identity) Try iProperties.Value(sVirtPart & ":1", "Project", "Description") = oProp1iProperties.Value(sVirtPart & ":1", "Summary", "Title") = oProp1 Catch End Try.......
so for the plugin I need to re-write this
Dim _invApp As Inventor.ApplicationDim occs As ComponentOccurrencesoccs = asmDoc.ComponentDefinition.Occurrences
Dim identity As Matrixidentity = _invApp.TransientGeometry.CreateMatrix Dim virtOcc As ComponentOccurrence If vp_qty >= 1 Then virtOcc = occs.AddVirtual(sVirtPart, identity) 'Try ' iProperties.Value(sVirtPart & ":1", "Project", "Description") = oProp1 ' iProperties.Value(sVirtPart & ":1", "Summary", "Title") = oProp1 'Catch 'catch error when oProp1 = nothing 'End Try
How should I re-write the text in bold , so it works?
View 4 Replies
View Related
Jan 19, 2013
I'm using Visual Basic 2010 Express and Inventor 2013. I can get the properties such as PartName, Description information of the all sub parts using below
Dim invDocs As Documents
invDocs = inv_App.Documents
Dim i As Integer
Dim invDocument As Document
For i = 1 To invDocs.Count
[code].........
Above code works perfect. But I want to get or change i property values of the selected part or assembly in the biggest assembly. I got below information:
Dim selSet As SelectSet
selSet = asmDoc.SelectSet
Dim compOcc As ComponentOccurrence
Dim obj As Object
For Each obj In selSet
compOcc = obj
'Debug.Print(compOcc.Name)
compOcc.Visible = False
Next
But I do not know how can I get the properties of the selected part or sub-asm . How can I walk from "compOcc" to "invDocument.PropertySets.Item("Design Tracking Properties").Item("Description") "
P.S. I will check the selected part quantity. It must be only ONE! Control Code below:
Dim asmDoc As AssemblyDocument
asmDoc = inv_App.ActiveDocument
If asmDoc.SelectSet.Count <> 1 Then
MsgBox("You need to select only one part or sub-asm to change properties...!")
Return
End If
View 2 Replies
View Related
Sep 18, 2012
we have a part file that has 2 custom iproperties in it.
Length and Width.
If I delete these properties its fine and the properties are removed.
However if I then save the file, the properties become available again.
View 3 Replies
View Related
Mar 23, 2012
Copy custom iproperties from one part to the other - possible?
View 6 Replies
View Related
Apr 18, 2013
how could I synchronize my drawing with the referenced part?
I have a "User Defined Propertie" called "RBMATNO" in the part and in the drawing.
View 3 Replies
View Related
Feb 19, 2012
Is it possible, if you have a merged BOM.row to get the total quantity of each part?
inventor professional 2011 / 2012 / 2013
View 4 Replies
View Related
Dec 3, 2013
Why when I mirror a part in an assembly the mirrored part gets a new part number? I want to mirror only the position of the part which is always the same part. Is it possible to do that in Inventor?
View 7 Replies
View Related
Feb 18, 2013
I've occasionally run into a problem where when I right-click at the root of the browser tree and select iProperties, the dialog will not show. The application acts as if the dialog is active (in particular, Windows makes an annoying ding every time I try to click somewhere on the Inventor UI) but I cannot see it. If I recall correctly, this only affected some files, and I could usually get around it by opening the dialog from the main menu rather than from the browser.
Now I am experiencing something similar with the Derived Part dialog. After I select a part file to derive from, the dialog for selecting individual elements never actually appears on the screen, but Inventor seems to think it's there, as the part I am deriving from is displayed in the viewport and the browser tree is locked out. Again, it seems as if the dialog is active but invisible: If I press Enter, I get a derived part, and if I press Escape, the preview disappears and nothing new is put in the browser. Of course, I can't choose which elements of the base part I want to derive from. Right-clicking the derived part entry in the browser and selecting "Edit derived part" produces the same result -- evidently, an invisible dialog box.
I am running Inventor 2011 SP2.
View 3 Replies
View Related
Sep 27, 2013
Is there any way to automatically fill in description in iProperties (.idw) from model description?
View 7 Replies
View Related
Jan 24, 2013
I have a batch of 25 drgs that need their revision letter updated then pdf'ed. Is there a method that can be adopted, where the drg sheets can be updated automatically, then batch printed into pdf's, without having to open the individual files?
View 5 Replies
View Related
Apr 8, 2013
How to make the threads match on a male and female part. Using a tap size chart, I made a hole 31.5 mm in diameter. Then I added interior threads with a tap size M33 x1.5. How do I determine the diameter of the male part before adding threads? Would it also be 31.5 mm? I plan on 3d printing these parts, so I've also been using the thread modeler tool.
View 1 Replies
View Related
Apr 11, 2013
My customer is having trouble with the part list feature inside the Inventor 2D drawing.
For example, He has a car assembly file with 4 wheels and alot more subassemblies, then he creates a view representation which only visible for 1 wheel.
When he generates the part list in Inventor 2D drawing, he go to part list >filter setting and set to ‘’Assembly view representation’’ but the quantity for the part list is still showing as 4 as per attachment.
change the value manually inside the part list table?
View 5 Replies
View Related
Sep 18, 2013
I want to use the part number propertie to change the sheet name in the .idw
So when i insert a new sheet and place a part the part number wil be placed in the title block and i want to change the sheet name to that part number.
View 9 Replies
View Related
Feb 13, 2013
I name my files with our part numbers and the revision number. Our part numbers are 6 to 9 digits long and sometimes start with a zero! My iLogic rule, while simple, drops the first zero if its there. See the "FirstNumbers" below: (I tried to add the CStr(), but now I see that it just changes it to text after it drops the zero!)
ThisFile = ThisDoc.FileName(False) 'without extensionFirstNumbers = CStr(Val(ThisFile)) 'sets the first numbers from the file name to textPartNumber = iProperties.Value("Project", "Part Number") 'reads part number from file
'check to see if the part number is the same as the file name's numbersIf String.Compare(FirstNumbers, PartNumber, True) = 0 Then'do nothingElse
'set the Part Number to the file name's numbersiProperties.Value("Project", "Part Number") = FirstNumbers
'let's me know that something has been doneMessageBox.Show("Part Number has been set to " & FirstNumbers, "Part Number from File Name")End If
View 5 Replies
View Related