i have made a iLogic Module who, whit an external rules, import the iProperties value from an external exel file.The exel file is connected from SQL with the our managerial software.This in the external rule:
It's work fine but i have same question. There is some string to refresh an iLogic Module? When i push the ruel button the rule add the custom value in iProperties, but there are disabled, i have close the module an reopen it for correct display the value of the iProperties.
this module work with single parts. Can I do an rule who do the same thing of my string but in one assembly, do this for every parts of assembly automaticly??
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
Dear Sir, In particular project, when I insert part in Assembly file, It is inserted as a Tube & Pipe run part. so that It is not Grounded automatically. What is the settings by which I can insert as a normal part in assembly file ? I have attached herewith the JPG file also.
Is it possible to identify the location of a part in an assembly file?
I cannot access (or find access to) global locations, just local. You may ask, whats the problem? Well, right now, I have 10 subAssemblies and they are all "located" at (0,0,0), which means I have 10 solids sharing the exact same space. This problem can be easily fixed if I can compare the Global Origin to a Local Origin, but I can only find the "work axes origin" which is worthless to me.
My goal is to open have people go into a central assembly file, type in their specific parameters and the various part files update within the assembly. I wish to do this without the need for an excel sheet, but when I try to link the parameters from the assembly file to the part files, it will not allow me to insert these parts. I get an error about an "assembly can not be placed into itself."
Iparts will not work as this has an infinite amount of sizes.
I have finished all my parts and now i have to assemble them. I normally just use the constrain tools, but this time i need to set a part in mid air. I would like to use the move tool, but with exact xyz coordinates. I only seem to be able to do that with an UCS (coordinate system), not the part itself. I guess it's just a button i'm missing somewhere.
How can I make an assembly file independent from the part files that went into it? I tried converting it to STL then opening the STL document, but that causes problems with what I'm trying to accomplish.
I have an assembly with a few parts inside and want to create a new part(hose) in the assembly and link some faces from other parts within the assembly to my new part to show the routing of the hose.
Can I link faces within an assembly to one of the assembly components.
I am trying to extract part locations from an assembly file. I've been successful UNTIL I come to a part/subAssembly where the workAxes is orientated differently then the overall assembly axis. Is it possible to compare the local axis to the global axis? If the answer is 'yes', can sample code be posted (i.e. dim sameOrientation as bool; sameOrientation = ... )?
Also, once I know that "sameOrientation = false," how would one convert local coordinates to global coordinates?
I have a 3ds max file that the company i work for needs to get into inventor. I have tried exporting the file to .sat, .iges, and .dwg file an none have imported the assembly into inventor properly.
When trying to import a NX 7.5 assembly file into inventor, there is a lot of duplication of parts, missing parts, and scattering of other parts. Is there a way to successfully import an assembly from NX to inventor, if so does it include all the original sketches and feature history that created the parts, or is that not possible?
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.
I have received a great solution from Bobvdd allowing ilogic control of the view rep in a part file (not an assembly file). The code below works brilliantly when the part file is the active document. However when the part is placed in an assembly and the ilogic is run with the assembly active, the code produces no result. How to modify the top 6 lines of code?
Dim oApp As Inventor.Application oApp = ThisApplication Dim oDoc As Document
I would like to save my inventor Part and Assembly model file in a lower version. Like in our company we use both Inventor 2012 and 2010. Once the file is created in 2012 and when shared to 2010 users they are unable to open, is there any possiblities to open 2012 files 2010 like how we do in Autocad.
I have an assembly in which the thickness of each of the layers in an assembly are generated from a part file that is split via a sketch. I use the Make Components tool to break the part into the individual layers, which also spits out an assembly.
Is there a way to push the thickness value of these parts that will update automatically if the thickness is changed in the parent part, in order to reference this property on the drawing?
I have created a parametric, multibody master part file to derive parts from it, and then put them in an assembly. See attached file. Now, I need 3 different versions of this setup (with different values of the parameter 'bending_angle').
What is the best way to do it? If I derive parts from it, they always follow the *actual* status of their master file. Is there some method to do this: "derive from this file, with parameter bending_angle=55deg", but keep the dependency relation, i.e. if I modify something on the master file, the derived part fill follow the modifications (with the value of bending_angle=55deg)
I'm working on Autodesk VBA, and I'm trying to get user input on which vertex to use for a constrain. I want to make a macro that can go into part edit, allow user to select a vertex, and then automatically set up the constraint. Initially I wanted to do this in a single macro, using this short piece of code
while oSelectSet.Count <>1 DoEvents Wend
While this worked when run directly from VBA, if I call it as a macro in Autodesk itself, the DoEvents doesn't seem o work because I wasn't able to make any selection at all. I googled and it seems like this is just how macros are.
So I split the code into a 2 subs and a function (as attached), and put them into separates rules that I call using a form in Autodesk. The first sub "Meta1Pin1_1" works, then I would select a vertex in edit mode. But when I go ahead and call the second sub "Meta1Pin1_2", I get the error message that I created which says no vertex is selected. But if I select a vertex and call the second sub again, it will work.
So I've been trying different things and I realize that every time when I first call the second sub, my selection is erased teh moment it goes into the sub. But, for some unknown reason, the selection will remain when I call it the second time. I can't figure out what exactly happened between the first and second call of the same sub, that allowed the selection to remain.
' prepares assembly for user input by grounding bones and going into part edit Public Sub Meta1Pin1_1() Dim oDoc As AssemblyDocument
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.
is it possible to write a plug in that runs when a user does something.example. you start inventor and open a assembly file the user selects a part and the plugin automatically runs.no pussing buttons, no quick key, it just runs.
I am trying to acheive copying parameter from one part/assembly to another part/assembly document and this is what i came out with:
Private Sub CopyParamToTarget(SourceFile As String, TargetFile As String, ByRef ParamList As ListBox) 'Declares the variables to be used in this sub Dim d_target As Inventor.Document = Nothing, d_source As Inventor.Document = Nothing Dim t_transaction
[Code]....
I did another version for Inventor VBA in which is quite similar to this length as well . . .
Tried using ComponentDefinition instead but it does not have access to the Parameters list.
This program continues to surprise me, negatively. I did not want to modify any thing, but to import/place a part into assembly and gives me this picture. why is so important to not modify library????
I've some user-defined iProperties in my idw-file. As soon as I set the file to "read-only" (via explorer RMB->properties) these iProperties are not shown on the drawing sheet when i open the drawing. ow to abandon this effect?
I search a way in a Csharp program to read iproperties without open file in appentrice because it's time consumption. When we right-click on the file in the windows explorer, the iproperties come instantly.
I have to pick up the Iproperties information of each .ipt file into SQL Server. But I don’t know how to write a programming with VB.NET to acquire the Iproperties information without opening the file.
I am writing a external ilogic riule, which will iterate through all the referenced documents of the active assembly and write certain iproperties to a text file.
The code is below
It works in that the text file is created and it does write the iproperties. HOWEVER it only writes the iproperties from the active assembly
' go through all referenced documents in a assembly . Grab the description,title and part number iproperties
' and print out a list
If Not ThisApplication.ActiveDocument.DocumentType= kAssemblyDocumentObject Then Return End if
[Code]....
How can i fix this code so that it writes the iproperties for each oFileRef ?