AutoCAD Inventor :: Macro To Make Change In The Assembly?
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
ADVERTISEMENT
Aug 21, 2009
Can we Make code for Selecting Part Automatically?
View 9 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
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
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
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
Oct 31, 2011
My assembly has grown (about 50 parts) to where I need to consolodate some parts into subassemblies for reuse and alternate iterations of the basic design.
When I import the original parts into a new assembly, all of the constrains I created are not there of course.
I've tried creating a new empty part and then deriving a new part from the assembly, but I can't add, delete or edit any parts.
I looked at using Shrinkwrap, Substitutes, iParts, Multi-body Parts, and Multiple Solids but I remain confused.
In retrospect, maybe I should have created the subassemblies between the part and assembly stage but I didn't.
View 4 Replies
View Related
Jul 6, 2013
how to change an "IPT" files iProperty "Material" with a VBA macro?
For example,
If I have created a part (ipt) file, the iProperties "material" is set to "Default"
How can I change the material to say...."GOLD" (Example Only!!!) using a AutoDesk Inventor VBA macro?
View 1 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
Jan 3, 2012
For several years I've been programming in Inventor and AutoCAD, with VBA. Making macros and creating a button for them in the toolbar of Inventor is no problem. What disturbs me slightly is that the name of the button is the same as the name of the macro. In VBA you can't create functions with spaces in the name. So the name of the toolbar button often looks quite silly.
Is there a way to change the name and the tooltip-text of the toolbar button without loosing the link to the original macro? In AutoCAD this is no problem, but Inventor...
Product Design Suite 2014
Inventor 2012 SP2, Vault 2014
HP Workstation Z220
Intel Xeon 3.4GHz
16GB RAM
Nvidia Quadro 4000
Windows 7 Professional (64bit)
View 1 Replies
View Related
Jan 2, 2012
Inventor 2012.
How to make a macro that changes the font for a specific Text Style. The name of the Text Style is eg. "3mm", which I want to change from RomanS to Verdana.
View 1 Replies
View Related
Feb 11, 2004
Is there any macro-command to do this :
"Open the .idw that you created your title block in. Locate and right click on your title block in "drawing resources". Select copy. Open the file that you want to put your title block in. Right click on "drawing resources" and paste your title block there. Now you will have to delete their title block and then activate yours. "
I want to change my drawing template and I have many to do and it must have somewhere somehow a way to do this automatically?
View 8 Replies
View Related
Sep 10, 2008
I am trying to make a macro that adds the vendor column to the end of a parts list, sort by it first, then by part number, renumber the parts list, then save the overrides to the BOM. Everything works great except for saving the overrides to the BOM. The item number sort order gets jumbled back up. I am using Inventor 2008 Pro SP2. Below is the
Public Sub SortPartsList()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oPartsList As PartsList
Set oPartsList = oDoc.ActiveSheet.PartsLists.Item(1)
Dim oPropsets As PropertySets
[Code]...
View 5 Replies
View Related
Dec 30, 2012
I have been using the addin "Save Run Macro" to automatically run a macro every time the "Save" button is pressed.
Any of the following questions about "Save Run Macro"?
1] When I protect the macro from viewing (so I can protect my code) "Save Run Macro" does not see the macro.
2] When I save the part for the first time (ipt, iam or idw/dwg) the macro does not run. I always need to run the macro again.
View 1 Replies
View Related
Jul 15, 2012
I have an assembly (ex: test1.iam) that have many parts.
There are 2 of them, that I what to make only one assembly, and I would like them to stay in same the position as in test1.iam.
How do I do that?
View 2 Replies
View Related
Sep 7, 2012
what kind of work flow I can use to make an assembly adaptive as possible..I need to make a machine fixture that requires cut outs for three parts. The fixture is made from a 8" x 5" x 0.19" thk piece of UHMW. I've made the "blank" and it features the work planes I need to place the three parts that the cut outs are derived from.
At first I just started the assembly and placed the parts where they should be and then used sketched outlines to define the cuts. However, since the parts are there they get "cut" as well.
I was wondering if I could make adaptive sketches linked to these parts and then import THEM into the correct plane. I could then use them to define the cuts.
View 2 Replies
View Related
Jan 5, 2012
find out a way to make some sort of parametric assembly.
Where I work, we make conveyors and those conveyors need legs. Those legs are all built the same except for the height and width. They are made of 2 tubes with a cross shaft between them + bolts, washer, plastic end cap.Is it possible to create some sort of iassembly or ipart for this? When creating a conveyor I would like to choose the height and width of those legs when I import them into the assembly.
View 9 Replies
View Related
Dec 2, 2011
How to make thread in assembly?
View 9 Replies
View Related
Nov 15, 2011
I have the Silicon crystal (as attached herewith along with he parts and the assembly). It is a simple and small structure which I created from 3D Cartesian coordinates. Now, I need to repeat this structure in X Y plane to make a bigger structure.
View 2 Replies
View Related
Aug 14, 2013
Is there a way to have inventor make each part in an assembly have a different color? I like to work in assemblies like this because it is easier to tell the parts from each other. It's just time-consuming to go through and change everything if the assembly was designed with realistic colors. I am thinking there might be a macro for this, but I don't have much experience with macros so idk.
(extra brownie points if the method has the capability of reverting back to realistic colors)
Inventor 2014
HP Pavilion dv6t-6b00
Intel Core i7 2670QM
AMD Radeon HD 6490M
8gb RAM
Windows 7 64 bit
3Dconnexion SpaceExplorer
View 9 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
Sep 30, 2013
Can i change the direction and orientation of the origin axes in an assembly with some parts?
View 5 Replies
View Related
Jan 20, 2012
What's the best way to do this?
1. Model parts in steel using metal-steel color.
2. Create assembly from parts.
3. Leave metal-steel as default view.
4. Create new view rep with assembly colored blue.
There are two ways I can do this:
A. Create new view rep "Blue".
B. Select all parts and apply blue color at assembly level. View rep associations are broken.
OR
D. Create new view reps in each part "Blue" and make the part blue in that view rep.
E. Create assembly view rep "Blue" and apply part "Blue" view reps. View rep associations are kept.
A-B is quick but dirty, although in Default view the associations will be kept.
D-E can be tedious in large assemblies.
Is there a quicker way to change color but keep associations?
View 6 Replies
View Related
Nov 1, 2013
I am using Inventor 2014. I have an assembly where one parts has to be trimmed after assembly. When I do the cut in assembly, the part turns to a different color (black). My current view rep in assembly is Default.
View 2 Replies
View Related
Jul 30, 2013
I attach a assembly file.
In front view, I can see all elevation drawing (DWG file)
but, when import this file to IDW sheet, I can't anything . I can look at 3D object section only.
View 1 Replies
View Related
Mar 19, 2012
I have design tree like this:
Main Assembly
L Sub Assembly1
L Sub Assembly 2
L Sub Assembly 3
L part 1
in part i have a parameter name ("Panjang")... how to control "Panjang"?. I cannot access a part parameter in Sub-assembly.
[URL]
View 9 Replies
View Related
Jul 25, 2012
Before using iLogic, I created lot of iAssembly and iPart. I could change iPart factory member when I need in iAssembly.Now, I want to move everything to iLogic.
how could I change the part by iLogic code?
For example:
I generated "Part1.ipt" and "Part2.ipt",...... (I have hundred of member)
In my assembly, sometimes, I need use Part1.ipt, sometimes I need use Part2.ipt.
Which is the iLogic Code I should to use?
Inventor 2009, WIN XP.
Autodesk Inventor Professional 2013 (64 Bit) SP2
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory
View 9 Replies
View Related
Mar 30, 2012
there is a way to change the template used for a part or assembly. The problem is that I created a template to fit my needs but I had to update it and the update doesn't effect the parts created with the old version one. How do update the templates of the files created using the old template?
View 4 Replies
View Related
Nov 9, 2013
I wish I can open my general assembly BOM and set the proper Materials to my all my parts after migration from 2012 release.
But I cannot change Material for the some custom part in the assembly BOM in the Parts Only tab. Parts refusing to change a Material have special symbol and I guess it means “promoted assembly” – no info regarding these symbols.
I can change any Material in Structured and Model Data tabs but it is extremely inconvenient for the big assembly.
[URL]....
The questions is: Why those promoted assemblies have inaccessible Material in the Parts Only tab?
I have similar subassemblies built in similar way as you can see fro video, but one is treated as promoted assembly and other as promoted part, the question is what possible difference between those is?
View 8 Replies
View Related
Jun 6, 2013
My part color is yellow. In the assembly It shows as gray.
I cant seem to get it to change to match the part color. I used to know why this happens and knew how to fix it but seem to have forgot. How do you get this to work?
I also recently loaded 2014, but had the same problem with 2013, so its not a release issue.
View 4 Replies
View Related
Jun 13, 2012
I declared a BOM as "indivisible" when I converted an assembly to a welded assembly and currently I need to show the BOM as "Only parts" to insert it in a drawing. There is any way to convert the BOM style?
View 4 Replies
View Related