AutoCAD Inventor :: Calling Specific Part In Assembly Through Macro
Nov 1, 2012
I have been trying to create a macro to control an assembly. The problem is that I need to access a certain parameter in a specific part in the assembly. I can get the exact parameter by using the "name" of the given parameter, ex .Item("d7") to call the parameter d7. The problem for me has been what name do I use to call out a given part, I have been using .Item(Index number), ex .Item(12), but this number can change as parts are added, deleted, or suppressed.
The question is what "name" should I be using and how do I use it. I have tried
"InternalName", "PrimaryDeselGUID", "DisplayName", "FullDocumentName", "FullFileName"
but there is no "Name" to input like the parameter.
View 5 Replies
ADVERTISEMENT
Mar 13, 2013
I have been working with macros basically making user forms to control the models. The program calls on a part that I use as an actuation template (its just a part with parameters that are then linked to the assembly contraints) then the macro will change the parameters and update the model.
What I need to do is to put in some code in the userforn initialize sub that gets the actuation template from the disk, for example: C:Other StuffActuation Template A.ipt. Then the macro places the part into the assembly. The userform then manipulates the actuation template (and the assembly model). Then when the userform is unloaded the part is deleted from the assembly.
View 1 Replies
View Related
Sep 4, 2013
Is there a way to move a solid part in an assy using grip snaps and a specific vector direction .
Please look at the attachment,here you will see a gusset positioned on top of a foot plate,the gusset needs to be moved so that it makes contact with the cylinder,it will then be welded. The problem is more difficult because the gusset is offset to the axis of the cylinder and the precise distance is unknown unless worked out using trigonometry.
The question is what is the best method of moving the gusset to the precise distance and direction ?
View 3 Replies
View Related
May 15, 2008
I'm trying to create a macro that can open a specific folder in iam. same like 'place component from' function but from a specific folder.
View 2 Replies
View Related
Jun 16, 2011
I know I can make a button on the ribbon for running a specific macro. But, is this possible for iLogic rules? I would love to be able to run rules and launch forms from the ribbon!?
View 5 Replies
View Related
Aug 21, 2009
Can we Make code for Selecting Part Automatically?
View 9 Replies
View Related
Mar 28, 2012
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.
View 3 Replies
View Related
Apr 1, 2013
I`m looking for the iLogic code that can change one parameter (user defined) for each (ipt) part in assembly (iam)
The one below doesn`t work.
Sub Main Dim oApp As Inventor.Application = ThisApplication Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments On Error Resume Next Parameter(oSubDoc, "FH") = 15.26 Next End Sub
View 5 Replies
View Related
Dec 11, 2013
I would like to simplify this assembly into one seamless part for FEM calculation:The assembly consists out of parts that, in reality, will be welded together. Due to their form, there is no way to place them exactly onto each other, therefore there are slight gaps between the parts:
Now when I try to merge the assembly into one part via "simplify" --> "create simplified part" and choose "single solid body with seams between planar faces merged", Inventor does not fill these gaps (even though it displays only one part in the bottom right corner of my window). Unfortunately, the remaining gaps brings "contact" problems in the FEM simulation.
how to close the gaps and really merge the assembly into one part?
View 6 Replies
View Related
Nov 15, 2013
New user 2014
Part created in assembly does not update to part file.
View 9 Replies
View Related
Mar 29, 2012
I have a part that has protrusions. When i mate that part up to another part that second part needs to have cutouts/holes to receive those protrusions.
i mainly use it in sheetmetal parts. and use the rectangular protrusions on de contour to mate up with corresponding cutouts in the other sheet. this works with positioning and also makes for a nice weld spot/area.
But also for making holes to accommodate a mold pin used in custom punch dies. I want the intervening part to receive a corresponding (propperly tolleranced) hole automatically. Much like a bolted connection does.
same for parts like circlips. i want them to automatically generate the seat in the part it's mated to. Rather than using the axle generator.
Ofcourse one can place the parts and do an in assembly interpart projection and go from there, but i want the part to generate the (predifined) modification to the other part. It would save time and also reduces problems as the parts are moved about or even removed.
View 7 Replies
View Related
Jul 1, 2013
I have an assembly with 10 parts in it. We use many assembly features at the assembly level (Revolve cut, Extrusion cut..etc). How to find the mass difference of each part by comparing at its parts level and its assembly level.
View 1 Replies
View Related
Oct 3, 2013
I have a two part duct fire damper assembly. The IDW has the combined two part assembly, which I know how to turn the CoG on, so that it can be dimensioned. The problem is each piece will more than likely be hoisted separately so I would like to show the CoG for each piece, not the combined master assy.is there a way to do this?
Inventor 2014
Windows 7 Pro SP1
Intel(R) Core(TM) i7-3770k CPU @ 3.50GHz
16GB RAM
NVIDIA Quadro 4000
3D Connexion SpaceMouse Pro
View 5 Replies
View Related
Sep 4, 2012
I have made a macro that asks for a location on the file server (=client name) and then the project name. It then automatic creates the correct folders, opens my custom assembly template and changes an ipart that is by default in it.
That's all great and can save us a ton of time, but the last step is to automatic save the assembly! I just can't get it working and can't find the correct code.
I have defined the target folder earlier and the file name of the assembly is identical to this folder. For example
target folder = O:ProjectsclientNameClientProject1
file name = ClientProject1.iam
-> result: O:ProjectsclientNameClientProject1ClientProject1.iam
the code that I think should work looks like this:
Sub SaveAssembly() Dim oAssDoc As AssemblyDocument Set oAssDoc = ThisApplication.ActiveDocument oAssDoc.SaveAs ("O:ProjectsclientNameClientProject1ClientProject1.iam", False)End Sub
But it doesn't work, I always get the error message
"Compile error: Expected: ="
Whatever I do next I don't get the code to work
View 3 Replies
View Related
Jun 22, 2012
I have an assembly that includes iPart.
For example there are:
C: Part1
C: Part1 Part1-01
C: Part1 Part1-02 ...
C: Part2
C: Part2 Part2-01
C: Part2 Part2-02 ...
I need a macro to make the change in the assembly. You need to replace Part1-04 to Part2-04. Which method should apply for this?
View 6 Replies
View Related
Aug 20, 2013
If I want to find part which is inside another part or assembly, which means no matter how I turn camera, I always cannot see that part.
Does inventor has this function? Or is it possible to develope by .NET API?
View 4 Replies
View Related
Feb 7, 2013
I can't seem to find how to use the Inventor 2012 API to project an entire sketch profile from one .ipt to another .ipt file from within an .iam file.
i7-2720QM Dell Precision M6600, Win 7 Pro 64-bit, 8GB RAM
Autodesk Product Design Suite Ultimate 2013
Autodesk Vault Professional 2013
View 2 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
Sep 28, 2012
I'd like to create a macro that I can run from within an assembly that will loop through each BOM item and add the quantity req'd to a custom property within the component. I'm very familiar with VBA from Office, but I'm new to it with respect to Inventor so I'm pretty fuzzy with object titles and options.
Here's an outline of what I'd like to do:
Execute Macro from within Assembly file
For Each BOM Item to # of BOM Items
If Vendor = "Make" then
Set Component Custom Property "Qty_Reqd" = Total Qty from BOM
Endif
Next BOM Item
View 9 Replies
View Related
Aug 28, 2013
Looking for example macro that can create a new sketch, add a few lines and arcs, Then revolve the sketch around an axis to create a solid part. For example a shaft?
View 2 Replies
View Related
Oct 22, 2012
i need a macro in VBA who export the structurated part list in xls separated by comme with only two cullom in order: Quantity and Part Number.
This .xls file mus be saved in the same folder where the .iam file is saved and with the same name of the .iam file. How to make this marco????
View 9 Replies
View Related
Apr 8, 2011
I got a macro job for creation the drawing for a part. I got a lot of problem.
1/ The first one is move view:
I already create a view (e.g. oIsoView), now I want to move it to the left.
I find the DrawingView.Position method, how can I use this method? I try many time, but it's not successful yet.
Do I need to use the SelectSet method??????
View 9 Replies
View Related
May 21, 2012
I would like to have a rule that will add specific user parameters to a part file. These parameters need to be formatted so the width, depth and thickness will control the description of the part.
IE:
Width=4
Depth=2
Thickness=3/16
DESCRIPTION = TS <Width>X<Depth>X<Thickness>
I would like to format each parameter so that the:
Format=Fractional
Precision=1/16
Unit string=False
This is what I have so far:
oMyParameter=ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters
oParameter=oMyParameter.AddByExpression("Width", "TOP_RAIL_WIDTH", UnitsTypeEnum.kInchLengthUnits)
oParameter.ExposedAsProperty=True
oParameter.Units="in"
[Code]...
The TOP_RAIL parameters are from a linked file.
View 9 Replies
View Related
Oct 24, 2011
Is there a way of using Ilogic to make hidden lines of specific parts in an assembly drawing view visible? If a part with hidden lines showing is suppressed and then unsuppressed the hidden line option becomes unchecked, therefore I need a way of rechecking this option through code?
View 2 Replies
View Related
Jul 23, 2013
I would like to change the way a linetype appears for a specific part, globally throughout my drawing package. How is this done?
I am currently selecting the part in the model tree in the browser and changing it that way, but I have to do it on multiple views, for multiple pages .
View 2 Replies
View Related
Jul 21, 2010
Is it possible to unfold a sheet metal part and save as a dwg in a specific folder automaticaly using ilogic?
Inventor 2012 Pro
Windows 7 64 bit
Core I5 2410M processor | GeForceGT 525M graphics card | 8G RAM
View 9 Replies
View Related
May 8, 2013
I am in Inventor customization using VB.net as development language.
There is one issue which is troubling me from some time.
Is it possible to identify the name of parent assembly of part/sub-assembly.
For Instance there is a Sub-Assembly/Part, how can i identify the parent assembly using VB.net without opening that assembly.
View 7 Replies
View Related
Oct 1, 2013
I have an assembly of stair made from steel. There are lots of part the same. Is there a way to make a hole (inside assembly) to one and that hole would appear on all of them.
And another problem, how can I made cut (inside assembly) through more then one part so that would affect a part also when I open it alone.
View 9 Replies
View Related
Oct 6, 2012
I am capturing a book-case design that I made long ago into Intentor. I am almost finished, and I want to produce .dwg files and a bill of materials of parts that can be held.
For various reasons, almost all the items in the existing design are assemblies, and the underlying parts correspond more or less to half of physical parts that are contained inside a repeating cell. I will almost certainly continue using this approach.
A simplified design that shows this is at [URL]..... in the file Display.iam
I created the file Slat.ipt by using derive (Slat.iam).
If I replace the Slat assemblies with the file Slat.ipt, the bill of materials will show parts that correspond to physical parts that I can hold in my hand, or list on an invoice. I can do this with many, many mouse operations.
To make this modification quickly, I attempted to do Component -> replace on the Slat assembly. I use this operation a lot to replace one version of an assembly with another. When I do it with a .ipt file, the system pauses for some tens of seconds, then crashes.
A brute force work around is to use the mouse to do the replacement, essentially rebuilding the entire project in place.
View 1 Replies
View Related
Sep 27, 2013
When i create a part in an assembly, i select a plane or face with the cursor, but then i select again a plane for the sketch.
Why this double selection, and what does the first selection do, if the part is actually sketched on the plane i selected in the second time.
View 8 Replies
View Related
May 28, 2013
Normally you start with new models/assemblies/and drawings when you use the templates the naming by default is part1.ipt, assembly1.iam, drawing1.idw
I am currently at part431.ipt and assemby57.iam
I am concerned I may eventually reach part1000.ipt LOL
Currently using Inventor2012.
View 6 Replies
View Related