AutoCAD Inventor :: Macro Job For Creating Drawing For Part - SelectSet Method

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


ADVERTISEMENT

AutoCAD Inventor :: Better Method To Find Part Overall Size?

Jul 14, 2013

Is there any better method to find the overall size of a part model? I tried Range Box method and that gives some inaccuracy if the model have loft feature and fillet on that. But if I use GetExistingFacets the size gives more accurate. At the same time in a round part model with a cut, the GetExistingFacets give inaccuracy and range box method gives better result. Below is the X, Y, Z sizes of the two models with the above mentioned methods.

Round Part (Part1)

Measured with GetExistingFacets method = 129.934196472168 x 126.422719955444 x 25
Measured with Range Box method = 130 x 126.514225996919 x 25
 
Rectangular Part (Part2)

Measured with GetExistingFacets method = 300 x 300 x 30.0000286102295
Measured with Range Box method = 300 x 300 x 30.4094903224854

find attached part models which I used.

View 9 Replies View Related

AutoCAD Inventor :: How To Filter A Selectset

Jan 23, 2013

I need to filter a selectset, in order to have only the objects I need (here balloons) in a collection.

I tried to test using "Typeof", the problem is some objects in the selectset are "empty".

What are thes "empty" objects ? And, more important, how can I found them ?

My current code is :

*******************************

Dim oSelection As SelectSet

Dim oSelectedBalloons As New Collection

Dim selectedObj As Object

[Code]...

********************************

This function if objects in the selectset are not empty.

How can I adapt it for empty objects ? Something like "if selectedObj = Nothing..."

View 2 Replies View Related

AutoCAD Inventor :: Templates Not Used Depending On Method Used To Create New Part File?

Feb 19, 2013

I have found that if I use the drop-down to select a new part file, it does not use the default (and only) part template in my templates folder.  I know this as there are several settings that do not match.  If I click on the icon to open the new part dialog, it displays my templates (part, assy & drw) and creates the new file based on those accordingly.

Any setting that needs to be changed to correct this behavior?

View 3 Replies View Related

AutoCAD Inventor :: Unable To Find Suitable Modeling Method For Part

Nov 28, 2012

Please see attached image (I have tried to attach the part file but file size is to large to upload). I have created a sheet metal part, then converted to a solid component to utilize the bend tool. The actual part will need to overlap at the ends and will be joined using spot welds. I would like to be able to illustrate the overlap in the inventor model if possible but how to achieve this.

Before I call it a day and revert to AutoCAD or sketch this into a IDW,

View 9 Replies View Related

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 :: 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 :: 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 :: Macro In VBA Export Structured Part List In XLS

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

AutoCAD Inventor :: Creating Casting Part From Machined Part

Oct 7, 2011

I have a part that is designed to be made from a casting. In my workflow it makes more sense to create the as machined part first and then base the casting on the machined part usually by using save as and then deleting the machined features. I understand that you can easily go the opposite direction by creating the cast and then creating a derived part that you apply the machining features to.

I tried to derive the casting in this way hoping that you could just suppress of delete features without altering the associativity between the two files but it appears that the derived part doesn't "know" about the features on the original, it's just a solid.

It would seem that this workflow would be a no brainer since most of the time the casting depends on the finished part which depends on the design specifications, so am I missing something or is there really no way to do what I want to do without having to go the messy route of having to manually alter two separate parts every time I alter the design?

View 7 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 :: Use ILogic To Replicate Old School Method Of Replacing Drawing References?

Dec 14, 2011

Is there a way to use iLogic to replicate the old-school method of replacing drawing references? (ie, where you'd temporarily rename the originally referenced file, open the drawing, and then point it to the new file after Inventor says it can't find the original)

Longer version:

I have an iLogic configurator that manipulates skeletal models, copies them out as new files, and swaps them into template drawings. The original skeletal model can be configured in several different ways (different features, surfaces, etc), so I have several template drawings set up for each model depending on the configuration.

The problem that I'm encountering involves the order in which the drawing is loaded and then has its references replaced. When first opened, the drawing loads the original skeletal model which doesn't have all the geometry of the "new" model for which the particular template drawing was intended. This makes most of my section and detail view constraints go belly-up. After subsequently replacing the model references with the "new" model with the correct geometry, the section and detail view constraints fail to resolve themselves, and my once-perfect detail drawing is ruined.

If I instead force the drawing to open with the new model from the git-go (via the workaround discussed above), everything loads perfectly. However, I haven't yet found a way to handle this automatically with iLogic.

FWIW, I am currently using the following code in a subroutine:

DESTINATIONDOC=ThisApplication.DOCUMENTS.Open(TemplateDrawing, False)
DESTINATIONDOC.SAVEAS(filePath&Left(PN,6)&".idw", False)
DimSTRNEWREFNAMEAsString

DimOREFFILEAsFILEDESCRIPTOR

[Code]....

View 2 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 :: Drawing Of Part Made From Driven Part

Oct 4, 2012

To create my new  part, i used the deriven part of another part, and used only ‘Body as work surface’ before inserting in my new part.

When I create the drawing of my new part, why is it that I still see all the ‘Body work surfaces’ of the direven part?

When I make it on my other computer  I dont see it... so it is surely an option…

View 1 Replies View Related

AutoCAD Inventor :: Using Ilogic Or Macro To Automate Drawing Creation Of IAssembly Members

Nov 6, 2012

I have an iassembly which contains around 500 different members.  There aren't any major differences between the members other than parts being Included/Excluded and parts being replaced by similar parts (this can all be done in the table as the parts are all created as one ipart family).

I need an assembly drawing for every member.  As the drawings will be very similar, it is possible to just create one drawings then use 'Save as' and 'replace model reference' to create the whole lot.  As this process would be very tedious and time consuming, I want to create a ilogic program or a VB macro to automate this process.

Basically i need a program that will...

FOR every line in the table (say 1 to 500)...

look at the currently active drawing...

replace model reference (for 2 views and a parts list) with the appropriate member (whos file name will match it's Part Number)...

save as with a file name that matches the current rows Part Number...

END when all of the members are complete.

View 9 Replies View Related

AutoCAD Inventor :: Creating A New Part Out Of Two Different Ones

May 14, 2012

I have to design a new part based on joining two of an already made ones. I thought it would be as easy as a "union" command in AutoCAD... but couldn't find anything that resembles that, and I really need them to be a joint part, since I will be printing them in a 3D printing machine. how I can do that in Autodesk inventor?

View 4 Replies View Related

AutoCAD Inventor :: Creating Nest For Part

Mar 19, 2013

I have some parts that I need to make a nest for. I get the part from a customer and it's not in the most usable shape. It's just a bunch of surfaces. I can't change anything from it. I create a square block and place both the block and the part into an assembly. In the assembly I place the part in the block how I would like it to go. From there I create my whole mechanism around these nested parts. What I need to do is cut the shape of the part into the block so that I can bring the block into a CNC program and mill it.

View 9 Replies View Related

AutoCAD Inventor :: Creating Part In Top Down Assembly

Jun 19, 2012

I am facing problem in creating part in top down assly.

Find attachment.

I first part as pipe having dim 300 mm.In assly I select create option and made sketch having diameter 100 circle . I have extrude this circle up to the wall of 1 st component . I select to option but surface of 1 st component not getting selected. If I select 1 st part rectangular shape, that case 2 part extrude using same concept. (# ref 2 attachment)

View 8 Replies View Related

AutoCAD Inventor :: Creating Nest For Part

Mar 4, 2013

I have a part that I get from a customer that is imported into Inventor. The part doesn't' come in as a solid, I can either bring it in as surfaces (thousands for them in fact) or as a composite. What I want to do is create a nest for the part to fit into on the machine I am building. I create a part thats nothing more than a block, bring the part and the block into an assembly and I place the part into the block where I want it to go. What I need is to be able to cut the contour of the part into the block. I use Mastercam for my milling programs and what I ultimately need is just the surfaces (the top surface of the block and the cutout surface).

View 4 Replies View Related

AutoCAD Inventor :: InvalidCastException When Creating New Part

Mar 5, 2012

I am trying to create a new part in Inventor from Microsoft Visual Studio and the code I have so far is:

Dim invApp As Inventor.Application Try
invApp = GetObject(, "Inventor.Application")
Catch ex As Exception Try
invApp = CreateObject("Inventor.Application")

[Code] ......

When I run this, it opens Inventor and creates a new part then gives me the following InvalidCastException was unhandled:

Unable to cast COM object of type 'System.__ComObject' to class type 'System.Xml.Linq.XDocument'. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface.

View 1 Replies View Related

AutoCad :: Command For Creating Circle From Tan Method

Sep 1, 2012

what is the command shortcut for creating circle from tan tan tan method????

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 :: Creating Void Or Hollowing Out A Part?

Aug 5, 2013

I have a complex part that will be created using additive manufacturing. Since this type of machining is adding material needed rather than removing material, I would like the make voids and hollow out the part wherever possible to reduce the manufacturing time, and the weight of the part. Are there any features in Inventor that allow you to click on an internal volume and specify a void that produces certain wall thickness? The closest feature I can think of is the Shell feature but that only works for parts with very simple geometry and it doesn't make a void like I would like. The shell feature cuts out material from the face so it is good for making something like a cup but does not make an internal void.

View 9 Replies View Related

AutoCAD Inventor :: Creating Part That Also Contains A Hole Surrounding It

Jul 23, 2013

I am just starting with inventor and love the capabilities, which makes me think this is possible.  I am creating a cross dowel nut (also called a dowel nut) that looks like a barrel with a threaded hole on the side.  This nut is intended to be inserted into wood and connect with a screw.  Is it possible to create this cross dowel that also contains the hole surrounding it so when I insert the part into an assembly (a sheet of wood), the hole is created as well?

View 9 Replies View Related

AutoCAD Inventor :: No Browser When Creating New Part From Scratch?

Jul 2, 2013

I have a program which creates a new part. It works, but
 
The browser pane sets to "No Browser"The actual part window is not maximised inside the Inventor but in "normal" mode.
 
If I click on the brower I can go into Model mode, and the No Browser option disappears.

And I can simply maximise the window using the maximise icon in the part Window.

But how do I do these programatically? And why is there no Model browser by default?

This is C++ COM from an external EXE.

View 5 Replies View Related

AutoCad :: Best Method For Creating 2D Polyline For NC Routing From 3D Solid?

May 2, 2012

I have discovered a 3D polyline cant be joined to a 2D polyline and when i exploded 3Dpline then flattened it ,as recommended elsewhere on this forum,it seems its shrunk in length.The NC router I have access to has to use 2D polyline for the path of the cutter.wish i could simply fed the 3D object into the NC router software and that was all i had to do.

View 9 Replies View Related

AutoCAD Inventor :: Sketch Panel Don't Open When Creating New Part

Apr 18, 2012

I have a problem when I`m creating a new part in assembly.

I`m in assembly and I push a create button. Then I give it a name and OK. Then I push a plane where I want to make the part. New sketch comes but no sketch panel. I have to push right button from mouse and click finish sketch. Then when I go edit sketch the sketch panel comes like it suppose it to be.

View 9 Replies View Related

AutoCAD Inventor :: Creating Part Files - Blending A Miter

Oct 5, 2012

I am creating part files for one of our machines, and how to proceed with making a smooth transition on the bevel, like it is showing on the print from our customer.

What would be the best way to accomplish this?

View 2 Replies View Related

AutoCAD Inventor :: Creating Part Parameter With ILogic Running In IDW?

Mar 19, 2012

Im quite new to customizing inventor and have been playing around with I-logic. I can get I-logic to enter values into existing ipt paramaters when run from a rule within the idw. I can also get I-logic to create a custom Paramater within the ipt using some copied API code, however I dont know my way around API at all yet. So...

I was wondering if it was possible to create a custom part parameter from an ilogic rule run in an idw with that ipt featured?

View 4 Replies View Related

AutoCAD Inventor :: Creating A Sheet Metal Part In Autodesk

Nov 20, 2012

I am having difficulties creating a creating a sheet metal part in Autodesk Inventor to be able to create a flat pattern. I attached a PDF of the part I'm trying to create. The first page is the item I am trying to create. The next page are the 2 pieces I've been able to construct in Inventor but I can't seem to figure out a way to make it together. I also attached the Inventor model I was able to create.

View 4 Replies View Related

AutoCAD Inventor :: Hole Patching When Creating Derived Part

Aug 17, 2012

I am trying to patch up a bunch of small holes in a derived assembly. I've tried going to the options tab that comes up when deriving the part/assembly and plugging in values for the range of hole sizes to be patched, but I get no results when clicking ok. I have scaled down the assembly to 1/10 the original size. I set the range of holes to be patched from 0 to 0.25". The diameter of the holes in the assembly are only 0.017" after scaling down.

Inventor Professional 2013
Intel Xeon W3680 @ 3.33Ghz
12GB DDR3 RAM
NVIDIA Quadro 2000 GPU
Windows 7 Professinal 64-bit

View 2 Replies View Related







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