AutoCAD Inventor :: How To Create A Macro

Sep 1, 2012

Is there a way to creat Macros in Inventor... like we used to do with AutoCAD?

View 5 Replies


ADVERTISEMENT

AutoCAD Inventor :: Macro To Create Revolved Part

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

AutoCAD Inventor :: Create Macro To Get Constraint Rec Block In Sketch

Jan 16, 2013

I am using inv2011. I have to create rec. blocks very often and in inv2011 . I have to constraint it in middle.

Can i write a Macto that gives me constraint rec block in sketch. This feature already available in Inv12.

View 5 Replies View Related

AutoCAD Inventor :: Create Parts List Macro - Position Based On Style

Oct 19, 2011

I have a macro that I acquired somewhere (possibly these boards, can't remember now) for placing a parts list.  I have modified it somewhat to change the location on the sheet where the list gets placed, as well as a sub that starts the autoballoon command afterward.

The macro is set up to place the parts list in the upper left corner, by adding the parts list width to the Mini Point of the border.  This works perfectly well, except that we have two parts list styles, and they are differently sized.

What I would like to do is have the macro detect the parts list style, and change the offset value depending on which style it finds.  I am an extreme novice with the API, who basically knows just enough to tweak sample code a bit, and have not been able to find anything close enough to use as an example.

How I should go about this, or even post some samples of something similar?  Current code is shown below.
 
Public Sub CreatePartsList() On Error Resume Next ' Set a reference to the drawing document. ' This assumes a drawing document is active. Dim oDrawDoc As DrawingDocument Set oDrawDoc = ThisApplication.ActiveDocument 'Set a reference to the active sheet. Dim oSheet As Sheet Set oSheet = oDrawDoc.ActiveSheet ' Set a reference to the first drawing view on ' the sheet. This assumes the first drawing ' view on the sheet is not a draft view. Dim oDrawingView As DrawingView Set oDrawingView = [code].......

The macro does not have to set the parts list style - that is controlled by the drawing Standard.  It just needs to detect what it is, and place the list accordingly. 

View 7 Replies View Related

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 :: VBA Macro - Create PDF File From IDW File?

May 3, 2012

Before I run this on Autodesk Inventor 2012, any possible problems that I might have with the following VBA macro code?

Set Doc = ThisApplication.ActiveDocument
Call Doc.SaveAs("C:Test.pdf", True)

All I want to do is to create a PDF file, automatically, from a IDW file without going through a PDF Printer

View 2 Replies View Related

AutoCad 2D :: Calculations To Create Macro Button In Excel

May 23, 2012

After starting my previous thread "What formula will work to achieve this result" I decided to post this new thread because I have changed my mind and will now be using the external Excel file that the "Extract Data" creates to do my calculations.

Here's what I would like to do: create a Macro [button] in Excel with the following conditions:
*
Sample of excel spreadsheet:
*
MANUF NoSUB No.DESCRIPTION** UNIT QUANTITY
A123494456TYPE A, XXXX XXX * * * * EA** * * * 45
A423520374YA1AM, XXXXXXXXXX * **EA** * * * 55
A148231375TYPE B, XXXXXXXXX * * * EA** * * * 33
A146151725A1AAM, XXXXXXXXXX * * EA** * * * 67
A135621873TYPE A, XXXXXXXXX * * * EA** * * * 24

1. * * * CONDITION #1:
IF "DESCRIPTION" TAB ["C" COLUMN] CONTAINS "TYPE A" AS PART OF TEXT/DESCRIPTION, TAKE THE "QUANTITY" TAB ["E" COLUMN] SPECIFIED ON THAT PARTICULAR ROW AND DIVIDE IT BY 20, ROUNDED UP TO NEAREST ONE.*

2. * * * CONDITION #2:
IF "DESCRIPTION" ["C" COLUMN] CONTAINS "TYPE B" AS PART OF TEXT/DESCRIPTION, TAKE THE "QUANTITY" SPECIFIED ON THAT PARTICULAR ROW ["E" COLUMN] AND DIVIDE IT BY 10, ROUNDED UP TO NEAREST ONE.

3. * * * AUTOMATICALLY SAVE THE EXCEL FILE AFTER THIS MACRO HAS BEEN UTILIZED.

View 4 Replies View Related

AutoCad :: How To Create Button With Macro To Edit Existing Text In Place

Jan 12, 2012

I'm trying to create button with macro to edit existing text in place, with predefined text with macro .... For example, existing text is "Old text", and I want this text (or whatever I select) to edit in place with click on macro button to change it to "New text".

View 1 Replies View Related

AutoCAD 2010 :: How To Create A Macro For Change The Plot Styles In Hundreds Layouts?

Oct 4, 2012

I have (unfortunately) the necessity to modify into some files (which are used as models) the print style preset.

These files, which are necessary for the realization of electrical diagrams, have inside hundreds of layout.

Each layout set default printing parameters, so as "Laser b/n.pc3," as the paper size "A4" scale "Scale to Fit", and plot style "Schemi.ctb", etc. ..

Is there a way to create a macro (a field unknown to me) or something similar, to automatically change in all the default layout, for example, the printer "Colori.pc3" and the print style in "Schemi_colori.ctb "?

View 5 Replies View Related

CorelDRAW X6 :: Create Macro Button For Two Circles

Dec 20, 2012

I create macro button for two circles.if we click that button a guidelines create the center of both these circles. i have new in coreldraw VBA.

View 2 Replies View Related

CorelDRAW X3 :: Create Curve With VBA Macro With Same Length Of Segments

Jun 10, 2013

I try to create a curve with 3 or more equal segments. When I draw random curve using the "Freehand tool" I always get curve with several not equal segments.So how can I create a curve using VBA Macro so that the curve has equal length of the segments.I attach two pictures with curve that i have and with curve that I need to have.

View 11 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 Inventor :: DXF Translator Macro

May 24, 2013

When I am done with a drawing (inventor .dwg), I manually go to "Save Copy As" and select DXF, and using my default options, save the drawing as a DXF on a server (OUTSIDE of vault) that our shop guys can access for CNC stuff. I understand there is a DXF Translator that I may be able to set to do this for me. How to use Inventor add-ins (my translator is loaded, thats as far as I got) or set them as macros. A button on the ribbon to export to DXF would be nice and I may also want to automate this further and have it do it on file save.

View 9 Replies View Related

AutoCAD Inventor :: How To Save All Changes Via Macro

Nov 11, 2010

We want to change iassemblies in a table using macro. When we change an iassemblies, inventor asks "Do you want to save changes to ......?". There are many iassemblies in our model, so it takes serious amount of time. We can disable all messages using macro, But this time after macro completion, there may be some errors in model, because we dont accept all changes. How can we accept all changes while running macro?

We use SilentOperation property. but in Save dialog, there are some parts indicated "yes" and some indicated "no". how can we change them "yes" and save all dependents?

View 9 Replies View Related

AutoCAD Inventor :: Condition IF For Macro

Aug 14, 2013

I trying create simply macro for my work. It is mass rename for *.ipt files and their iProperty.And i need create condition "IF" for this (example 2 files):

4-1903-01 Pachole.ipt  -> iProperties-Summary-Subject = nothing
4-1903-02-01 Dachole 2.ipt  -> iProperties-Summary-Subject = "4-1903-02" (first 9 symbols)

How to do it? Maybe find first symbol "space"

Public Sub UpdateDocs()'JDK 2013' Include REF to Microsoft Scripting Runtime Dim oApp As Application Set oApp = ThisApplication Dim oDoc As PartDocument Dim oPropSet As PropertySet Dim FSO As New Scripting.FileSystemObject Dim oFld As Scripting.Folder Dim oFile As Scripting.File Dim Path As String Dim sTitle As String.
[code]....

View 1 Replies View Related

AutoCAD Inventor :: How To Place Macro

Sep 3, 2013

How do you insert macros available in the user community in to the inventor. I tried to open default.ivb file and copied in it but it doesn't work. Any example which shows how to place macros in the inventor.

View 1 Replies View Related

AutoCAD Inventor :: Run Addin From VBA Macro

Nov 9, 2011

How to call a addin from vba ? The addin is existing, source code not available :-(

My only idea is to somehow activate the button on the ribbon. Made a dump with the Print Ribbon routine from the online API help:

Tab: CDLIGHT, CDLIGHT.Part.Tab

Panel: iToolbox, CDLIGHT.iToolbox.Part.ToolBar

View 1 Replies View Related

AutoCAD 2010 :: Macro To Create Layers And Place Text In The Layers?

Aug 12, 2013

We use AutoCad to name our dxf files for our Burn Table and whenever we get a new part it is a repetitive task to input layers and common text.  So what I am curious is can AutoCAD input the layers and text automatically using a Macro?

I want the Macro to put in 6 layers and choose the layer color and title then input text boxes with word in 3 different layers.  There will be about a total of 10 different text boxes with text already put in the boxes by the Macro.

View 6 Replies View Related

AutoCAD Inventor :: Macro For Drawing Export To PDF?

Sep 12, 2013

I have one problem in this macro this macrofor drawing exporting to PDF.

How to save the pdf files in same location(Converting Drawing file location) and same number(Drawing file number).

Second one  is in my inventor window I opened 20 files of drawings and how to set the macro for export to pdf all the 20 files in once. 

Public Sub PublishPDF()
' Get the PDF translator Add-In.
Dim PDFAddIn As TranslatorAddIn

[Code]....

View 6 Replies View Related

AutoCAD Inventor :: Dropdown In Macro Menu

Apr 13, 2012

We just updated to 2013 this morning, and my macro isn't in the drop down (All Application Projects and Active Documents) menu like they were in 2012.

I haven't been able to find it when searching either.  I created a test macro, and it showed up: C:Userscad1AppDataLocalTempUserProject1.ivb

But still is not in the dropdown in the macro menu.  I'm using the same project that I had in 2012.Did installing 2013 remove/write over my maco? I imported my preferences this morning, they seem to be fine.

View 5 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 :: Record Macro In 2014?

Dec 10, 2013

Is it possible to Record Macro in Inventor 2014?

If yes, how can I acieve this?

If No, Is there any Add-in or other possibilities? Any Add-in available?

View 9 Replies View Related

AutoCAD Inventor :: Converting Events Macro To Add-In

May 22, 2008

I have obtained a very useful macro from another discussion thread, [URL]....... It automatically names the frame members inserted by Frame Generator. I have modified the macro for our internal naming conventions, but the basic functionality is the same. I would like it to load automatically whenever I am in Inventor and believe an Add-In is the way to go. I have followed Brian Ekins "Taking the Step from VBA to Inventor Add-Ins" paper, but I think I am missing huge chunks on how Add-ins handle events and have been unsuccessful in finding any help topics. How to handle events in an add-in.

View 7 Replies View Related

AutoCAD Inventor :: Macro Starting Time

Nov 26, 2013

I added two macros to be run from a button in the ribbon.  The first time I run one of these macros after startup of Inventor, it takes a lot of time to run (approx. 5 sec.).  But the second and subsequent time the tools are ran, the process is pretty much instantaneous.  It's like the VBAeditor has to load on the background before the tool can process.

I arrived a this hypothesis because the VBA editor is taking around 5-10 seconds to load for the first time but after the tool (macro) has ran once, the VBA editor can be opened instantaneously.

View 4 Replies View Related

AutoCAD Inventor :: Title Block Macro

Jun 13, 2013

Malfunctioning Title Block Macro in Inventor 2014? The script is attached. I think there is a problem with datums. I have switched to a new computer and installed Inventor 2014 on it. The macro worked with my old computer and Inventor 2013. This is a .ivb-file, not a .txt-file. Please change that before you test it.

View 8 Replies View Related

AutoCAD Inventor :: Task Scheduler And Run API / Macro

Jun 27, 2012

Is there a way by which I can run a vba - macro over all the file in a folder using Task scheduler.

Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013

View 3 Replies View Related

AutoCAD Inventor :: Run VBA Macro When Save Is Pressed On IPT Files

Jan 27, 2011

Is it possible to run a VBA macro every time the "Save" button is pressed on "IPT" files?

View 9 Replies View Related

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

AutoCAD Inventor :: Shortcut Key For Macro Doesn't Stick

Dec 9, 2011

I use this macro to toggle my browser from Model to Vault, and have since IV2009, and I have always used a shortcut key combination to access it.  Now that I have installed 2012, the keyboard shortcut doesn't stick.  Every time I close Inventor and re-open it, I have to reassign the key combination to this macro. This equals annoying! Maybe I didn't properly implement the macro in VB? 

View 4 Replies View Related

AutoCAD Inventor :: Set IDW File (Base View) Via A Macro

Oct 9, 2013

I need, using a macro, the ability to pre set the file that I am going to use as a "Base View" on a IDW file.

I call the ipt file "FRED.IPT", when I run the macro, it opens a new clean idw sheet and pre-sets the "Base View" to "FRED.IPT".

or

Automatically open a clean idw sheet and place the file "FRED.IPT" on the sheet, automatically.

View 1 Replies View Related

AutoCAD Inventor :: Macro To Switch Projects And Vaults?

Mar 3, 2010

My system is setup to use different projects and vaults depending on which department one is working. I have been jumping back and forth and was trying to find a macro to quickly switch projects, log out of the current vault, and log back into a different vault. I have minimal experience with macros and none with macros in Inventor . I am using Inventor 2009.

View 1 Replies View Related







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