AutoCAD Inventor :: Automatically Saving Assembly Macro

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


ADVERTISEMENT

AutoCAD Inventor :: Adding Save Run Macro To Automatically Run Macro

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

AutoCAD Inventor :: Macro For Automating Assembly

Aug 21, 2009

Can we Make code for Selecting Part Automatically?

View 9 Replies View Related

AutoCAD Inventor :: Saving Assembly Parts As New (sub) Assembly?

Nov 28, 2011

Can I select a bunch of parts in an assembly and say "save these pieces as a new assembly"?

It is just such a needed tool but I cant find an easy way to accomplish this.

View 2 Replies View Related

AutoCAD Inventor :: Placing A Part In Assembly With Macro?

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

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 View Related

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 View Related

AutoCAD Inventor :: Creating Macro To Run From Assembly That Will Loop Through Each BOM Item

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

AutoCAD Inventor :: Adjust Assembly And Parts Automatically?

Nov 27, 2013

Is there a way to adjust the assembly and the parts automatically adjust as well?

View 7 Replies View Related

AutoCAD Inventor :: Automatically Constrain Components To Plane In Assembly?

Nov 14, 2011

I'm a playground designer and we're currently in the process of updating our systems to Inventor. Over the next few years I'm going to be working on many different assemblies all using the same parts and sub assemblies, many of which need to share the same ground plane.

I'm wondering if there is any easy/quick way to make certain parts (not all) automatically constrain/flush to the ground/XZ plane when I place them?

View 2 Replies View Related

AutoCAD Inventor :: Part List In Assembly Drawing Does Not Automatically Updates

Apr 1, 2013

I have a Part List in the assembly drawing.

This list has Renumber Items activated.

All renumbered items become in blue cells in Part List properties table.

All added or altered after that Part Properties are not shown in this Part List.

For instance if I would add or change some Description, Comments or other properties to some parts which are in “blue” cells those will be not updated in neither auto nor any manual way.

So far I should delete and create the table again to see new added properties.

The question is: Is there are any other more simple ways to update the Part List table without recreating it from scratch?

View 3 Replies View Related

AutoCAD Inventor :: Part Or Assembly Automatically Turns Textures Back Off

Jan 7, 2013

I had with a custom texture not showing up on my parts while they were showing up on a coworkers computer fine.  I recently cured my own issue (I just needed to click Textures On in the View toolbar under Appearances).  I am thinking it is going to be a simple fix as well but I have not been able to find it.

Everytime I close out of a part or assembly it automatically turns the textures back off so I have to turn them on everytime.  I looked through the Application Options and Document settings to keep textures turned on but could not find anything. How to turn the textures on and leave them on?

View 1 Replies View Related

AutoCAD Inventor :: Create Automatically Code For Saving Documents?

Sep 2, 2013

I need assign automatically, a unipersonal code at file, before saving it. When i do save as or save at the first time,  inventor take automatically the name listed over the tree of operations at the left of screen, My problem is, that i can't identify this paramter or property, for assign this code in ilogic.

View 1 Replies View Related

AutoCAD Inventor :: Open A Assembly File / User Selects A Part / Plugin Automatically Runs

Feb 27, 2013

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.

View 2 Replies View Related

AutoCAD Inventor :: Saving An Assembly To A Project

May 22, 2012

I have an assembly that needs to added to a project. How the whole project system needs to be laid out even though I've used Inventor for several years.  Guess it's time to get some formal training.

If I save it to a library that is in the project I can't make changes so how do I take an existing assembly that needs to be worked on and add it to the project.

View 2 Replies View Related

AutoCAD Inventor :: Saving As Assembly To Another File Name?

Feb 14, 2012

I took an existing assembly from one specidifc directory and copied it to another location.  Then one part by one I use the replace command to swap out the parts to map to the new location because when I went to iproperties it was still pathing to the old location.  I change the new parts physical features (i.e. length, diameter).

I get done with it and all references are pointing to the new location.

I exit out of inventor and call up the new assembly and it has mate errors because the parts are all of the old ones from the original location.  Why is it not remembering or retaining the new parts and there locations?

Even when I have gotten this screen I have selected "No" to the bottom (2nd) selection which is the original location I do not want.

View 9 Replies View Related

AutoCAD Inventor :: Saving Tube And Pipe With Assembly

Jun 21, 2012

I have a problem when it comes to saving the flexible hoses I have made in the tube and pipe module of 2012 pro.

after making the hoses on my particular assembly, and trying to save the whole assembly, none of the hoses will save, please see attached image, I have found that on another model it would save the hoses, . the error message is in the screenshot.

View 6 Replies View Related

AutoCAD Inventor :: 2009 Creates XLS File When Saving Assembly Drawing

Jan 19, 2012

Inventor 2009 creates XLS file when saving assembly drawing (IDW file).Why? How to get rid of that?

View 6 Replies View Related

AutoCAD Inventor :: Saving Part And Assembly File In Lower Version

Apr 27, 2012

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.

View 2 Replies View Related

CorelDRAW X5 :: Create Macro That Automatically Delete All Color Styles

Nov 17, 2010

Now that SP2 is out and we can delete all in one sweep, is it possible to create a macro that would automatically delete all color styles as soon as any file is open? I never use that feature and would gladly pay for such a macro.

View 14 Replies View Related

AutoCAD Civil 3D :: Label Assembly With Field Automatically

Feb 21, 2011

Found a link to some code (URL...) to automatically place an Mtext field to label assemblies. It was written for C3D 2009/2010 but I can't get it to work for 2011 - any VBA gurus care to take a look to see if it will run (or not) on 2011.

View 7 Replies View Related

AutoCAD Architecture :: 64 Stall When Saving Automatically Or Manually?

Aug 9, 2013

I have had this complaint for a while internally however whenever Autocad Architecture saves while using a fully functional 3d architure model it hangs when it saves.

There are no errors discovered via audit, the file has been purged, the file has annotative scaled items, there are 3 x-refs & we are working off the server.The file generally has a low amount of layers and the xreferences have also been audited and purged.

in the base file - When Autocad Saves automatically or manually I get a 30 second delay. The task manager only shows one core on the I5 being used more than the others (not fully but spikes up and down). However when I want to go crazy and save multiple times the other cores pick up accordingly (obviously). Cpu usage only shows 27% usage at it s peak (overall).

The amount of ram used remains unchanged in both scenarios.

The network indicates 3-12% usage.

In the xref of the base file (generally the sheet file which has only the base file (with all the attached xreferences) and a title block with a low res image - The model craps out for 2 minutes while it saves same task manager results as well.

I have clean xreferences with no looping which the base file houses.

I'm trying to elimitnate or upgrade (computer) whatever is the issue.

note this has also occured with standard linework files (versus using 3d autcad architure elements)

Computer specs

Intel I5 760 @2.8ghz
16gb ram
64 bit OS win7 pro
Quadro FX 580 with dual screen

View 2 Replies View Related

AutoCAD 2013 :: Saving Automatically When Closing File?

Apr 12, 2013

AutoCAD 2013, 60-90 days into it, upgraded from 2007.

I have 2 of 4 workstations with this issue, AutoCAD will automtically save the file when the files is closed, w/o any prompts to verify of we want to saved or not.

I have my Options|Autosave turned off, but this should not affect the save on close it should only create a continual ac$ backup file.

This is now the 2nd time this has occured. In early March we noticed this and in dealing with AutoCAD (Suscription Service) we finally deceided to restore AutoCAD to factory defaults, which did fix the issue at the time.  However it also meant that I needed to retore all the pathways and our standards.  Once completed, I paid particular attention to ensuring that AutoCAD was NOT saving the file on close and it was doing so up until earlier this week, when I noticed it SAVING on close again.

Now most of you might think, hey thats a good thing, however, we routinely will test modifications to our layouts on our working files, but dont want to actually modify those files and then we would simply close the drawing w/o saving thus ensuring that those mods were not saved.

In March, both 2007 & 2013 did this, however only my 2013 is affected now.

View 4 Replies View Related

AutoCAD Inventor :: Convert Weldment Assembly Back To Regular Assembly Template

Jun 6, 2012

I am using INV 2012 and I wan to to know a trick how to convert the weldment assembly back to regular assembly template.

View 1 Replies View Related

AutoCAD Inventor :: Creating Separate Assembly Out Of Various Component Parts In Existing Assembly

Jul 10, 2012

I'm looking for the best way to create a separate assembly out of various component parts in an existing assembly so that the whole thing can be placed in an assembly as you would a part, I know it's possible to demote components within an assembly but are there any other methods similar / better ?

View 2 Replies View Related

AutoCAD Inventor :: ILogic Assembly Has Double User Request At Inserting In Assembly

Sep 18, 2012

We have an iLogic assembly with to parts in it. Maybe to cylindrical parts. The iLogic rules should do the following.

1. Start a Rule after open document.

2. This Rule starts a Rule in the first cylindrical component.

3. This Rule ask the user for a diameter.

4. The assembly gives this new parameter value to the second component

5. Then the assembly calls another rule in the second component to change it with the new parameter

Everything is working fine when the following combinations are taking place:

1. I open up the assembly out of vault or from a local drive or an accessible server drive

2. I insert the assembly as sub assembly in another assembly from a local drive or an accessible server drive

It don't work with the following situation:

- I insert the assembly as sub assembly in another assembly out of vault

Then the user becomes the dialog "Choose a diameter" twice.

I don't know why, but I have the idea it has something to do with the functionality of inventor to insert a component more than once. If you insert a component in an assembly Inventor gives you the opportunity to add more than one occurence after each other. 

change that behaviour? Maybe a switch to change that inventor "add more than one occurence" behaviour.

View 1 Replies View Related

AutoCAD Inventor :: Tube And Pipe Assembly Styles Don't Translate Into Other Assembly Files

Feb 9, 2012

I have encountered a problem with the Tube and Pipe styles. 

As you can see, I have a rack assembly with a custom tube and pipe style. A wire as a tube in orange, and a tube support in white. Both have their seperate colorations at a style in the tube and pipe styles editor

When placing the rack assembly into the main assembly, it reverts to the coppor coloration I changed from the original style.

Steps I've taken:

Exported the styles .xml and Imported the styles into the master tubeandpipe.iam 

Imported the user created .xml styles into the main assembly file nothing seems to work

View 8 Replies View Related

AutoCAD Inventor :: Find Interior Volume Of Assembly By Subtracting Assembly From Block

Apr 23, 2012

I am trying to find the interior volume of an assembly (when am I not?!?!) by subtracting the assembly from a block that surrounds the most of it.  Somewhere the assembly has a "leak" and I have been trying to use the Cross Section Analysis to track down where the inside lump is connected to the outside lump to be subtracted.  Is there a less time consuming way to dynamically drag a plane across and get cross sectional views?

Even better is there a simple way to animate the analysis plane moving across the block so I can hopefully just watch and pause it when I find a leak?

Inventor 2013 (SP2 Update 2), Windows 7 Professional (64-bit), SP1, Intel Xeon 3.07GHz CPU, 12GB RAM, NVIDIA Quadro 2000, Vault Basic 2013

View 2 Replies View Related

AutoCAD Inventor :: Place Assembly Constraints With Parameters From Parts In Assembly?

Oct 30, 2012

it is possible to make a constraint that utilized a parameter of a part within the assembly.

For example, if I wanted to use the thickness of a plate, which I defined in the part, could I call that parameter in a constraint?

View 1 Replies View Related

AutoCAD Inventor :: Make Sub Assembly From Parts From Main Larger Assembly?

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

AutoCAD Inventor :: Translate Assembly Component Using ILogic / Offset From Parent Assembly Origin

Nov 9, 2011

I want to be able to control the location/position of a component in an assembly. This is easy enough through the iProperties/Occurrence tab and then adjust the location of the X,Y, and Z offsets. Is this possible using iLogic? I have been unable to find a function to access via iLogic. Ultimately I am trying to translate a component about an axis not a pattern.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved