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


ADVERTISEMENT

AutoCAD Inventor :: Create Style From Parts List

Oct 9, 2013

Is it possible to create a drawing parts-list style from a built parts-list in the drawing?

View 4 Replies View Related

AutoCAD Inventor :: ILogic - Control Position Of Parts List

Oct 31, 2011

I am creating a drawing controlled by ilogic. The assembly can vary in size considerably so I have set the IDW to change between sheet size A3 and A2 accordingly using ilogic. However, when the sheet size is changed, the parts list stays in a static position.

Currently, the parts list is situated in the top right corner up against the title block and the border. So when changing from Size A3 to Size A2, the parts list ends up in the middle of the page. Is there anyway i can control the position of the parts list so it changes with the sheet size change?

I know I could simply move the partslist to the bottom left corner, which is a work around. However, I'd like to be able to keep the drawings in line with the company standard.

View 1 Replies View Related

AutoCAD Inventor :: Entry In Parts List Is Not In Correct Position?

Aug 20, 2012

In our idw's we have a parameter that is passed from the part to the idw parts list.  When we/I edit the length of a part, notice how the entry for "Cutlength" is jogged down a little.  To get this back to the correct position, I have to grab the parts list and move it a little.  The text jumps to where its supposed to be.  Any futher edits to the length of the part does not cause this again.  Have never seen anything like this before 2013.

View 6 Replies View Related

AutoCAD Inventor :: Update Quantities In Parts List Based On Parameter In Assembly?

Apr 12, 2012

Inventor 2012.how would I input the total quantity of doors in the .iam in order to update the Parts List quantity column?  I have a lot of user inputs in the .iam file set up to change width, height, etc that are based off of Parameters in the .iam, but I don't know how the user can enter assembly quantities in order to get the Parts List to update the Quantity column correctly?

I have attempted using custom iProperties but how to get it to display based off a user input Parameter.

View 3 Replies View Related

AutoCAD Inventor :: How To Make Macro That Adds Vendor Column To End Of A Parts List

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

AutoCAD Inventor :: Parts List Text Style

May 8, 2012

Standard Text Style and Height used on a Mechanical Drawings Parts List "B Size".

IV 2012 Pro-Suite / VP 2011
Windows Vista Enterprise - 64 Bit
Precision Workstation T7500
Intel (R) Xeon (R) CPU - E5504 @ 2.00 GHz (8 CPUs)
12284 Mb Ram
Dual Quadro FX 5800

View 2 Replies View Related

AutoCAD Inventor :: ILogic To Change Parts List Style

Feb 8, 2012

Below are 2 rules that run in succession to create and save a parts list from a base view in a drawing.

I am now trying to set the parts list style to a custom style, ideally while creating the list.

Also, I have to manually go into the list to turn off visibility of certain items (based on material), does I can do this with Ilogic?  I ask because these steps precede a rule that automates placing base views of all parts in the parts list.  If I could get the style and visibility right, I could automate the entire process.

Looking for changing such a style with ilogic?

Inventor & Vault Pro 2012
Windows 7, 64bit
Core i7 920@2.67
8GB

CREATE PARTS LIST____
' Set a reference to the drawing document.
' This assumes a drawing document is active.
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
'Set a reference to the active sheet.
[Code] .....

View 9 Replies View Related

AutoCAD Inventor :: ILogic Rule To Change Parts List Style

Jul 2, 2013

I need an ilogic rule to autmoatically change the style of the parts list in a drawing file.The parts list style already exist in the drawing.

View 2 Replies View Related

AutoCAD Inventor :: How To Use Sheet Metal Style / Material Appearance In A Parts List

Mar 29, 2013

We use different types of sheet metals, from stainless to bronze, and different thicknesses.

Currently, in order to show the correct material on a parts list, I have to duplicate the material Stainless Steel, and rename it to say 20 Gauge Stainless Steel. Then again for 16 Ga, 14Ga, 12 Ga, etc...

I'd like to have the parts list show the common material such as "Stainless Steel", with another column for the sheet metal style such as "20 Gauge."

We also use items such as Plastic Laminate. I'd like to create a generic material for the physical properties of "Plastic Laminate", and then change the material appearance to say "Formica #1234 Walnut". Again, i'd like to be able to put this in (2) columns on the parts list.

View 1 Replies View Related

AutoCAD .NET :: Create A Selection Set Based On A Specific Multileader Style

Jan 17, 2012

how to create a selection set based on a specific Multileader style? I can currently creating a typedvalue array to define the filter criteria, but cannot find the DXFCODE for the Multileader style.

Ex.

TypedValue[] acTypeValAr = new TypedValue[1];

acTypeValAr.setvalue(new TypedValue(DXFCODE, "Multileader Style"),0);

View 2 Replies View Related

Illustrator Scripting :: Create JS Script To Move Objects Away From Common Center Based Upon Their Current Position

Jan 17, 2014

I was hoping to create a JS script to move objects away from common center based upon their current position. I was thinking to use a single selected path item as the center based on its position x/y and width/height. Using this reference point the script would then move away all other path items from this center point based on a desired amount and with uniform increments given their current location from this center. I was thinking cos and sin would be my friend in this case, however they seem to have become my foe instead. ;-)
 
Does this sound doable? What am I missing, doing wrong, misinterpreting? Below is a non-working attempt, I can't seem to sort things out, perhaps I was close and missed it or maybe I am super way off and its more complex than I thought. However at this point I am confused across my various failed attempts this only being one of them. 
 
// Example failed code, nonworking concept
var docID = app.activeDocument;
var s0 = docID.selection[0];
pID = docID.pathItems;
var xn, yn;
var stepNum = 20;

[Code]....

View 13 Replies View Related

AutoCAD Inventor :: Showing Two Instances Of Parts List And Adding Custom Parts

Mar 30, 2012

On the main sheet of my drawing I have the overall Parts List.  Shows almost all parts except for the few that we don't want to list.  On the second sheet I inserted a Parts List to show only parts that are shown in a detail on that page, made the rest non-visible.

On the main sheet there is an item (#13) that has a QTY of 3.  Two of those Three are optional parts.  What I'm trying to do is insert a custom part into the Parts List, give it an item number of 13A and put in the description "OPTIONAL", then do an Override in the balloon to show 13A.

I get it in the Parts List, Apply it, close it, save the drawing.  Looking at the Parts List, item #13A is there, but item #14 is gone.  I go back into the Parts List and 13A is there and there's a blue box around the item # and the description.  I uncheck Static Value and number 14 shows up (item # and the description).

Then I go over to sheet two, open that Parts List and it lists 13A at the bottom with all the info I added in sheet one and it's non-visible.  Go back to sheet one, open the Parts List and there is no 13A to be found.

View 9 Replies View Related

AutoCAD Inventor :: Parts List Update When Modifying Model Parts In Idw

Aug 21, 2012

My parts list on my idw do not update when I make changes to the model. Specifically, I have deleted a bolted connection on my design and replaced with a different components but the parts list table does not update - all I see is a lightning bolt in the browser next to the parts list but I cannot update it here.

Autodesk Inventor Professional 2013 SP2 64-Bit Edition
Windows 7 HP Z400, Intel Xeon W3550 3.07GHz
12.0GB RAM, ATI FirePro V4800 (FireGL)

View 2 Replies View Related

AutoCAD Inventor :: Virtual Parts Weight Total BOM And Parts List

Aug 7, 2013

I was using virtual parts to add nuts and bolts to a drawing in 2013

I can make a VP bolt in the assembly, no problem, set it's size, weight, etc.

In the VP itself, there is no option for number of bolts I want it to emulate. For arguement's sake the weight was 1 pound per bolt (they are big bolts).

I can go into the BOM and say quantity 60, hit done and save the assembly.

If i open the drawing, the parts lists shows 60lbs for the 60 bolts total - which it should when summing the weight.

The problem is the BOM/assembly. If the weight of my assembly (without bolts) is 10,000lbs, the assembly sees the VP weighing 1lb and says the total weight is 10,001 lbs. Am i going to have to pattern a fake part to get this to work right? Shouldn't the total weight take into account the quantity set in the Bom??

View 2 Replies View Related

AutoCAD Inventor :: Display Density Of Materials Assigned To Various Parts In Parts List On Drawing?

Dec 9, 2013

Is there a way to display the density of materials that are assigned to varius parts in the parts list on a drawing?  I don't need the mass of the parts I just need the material density to show up next to their respective parts.

For example, if I have a part with [steel mild] material assinged to it (no matter the size) I need a column in the BOM on the drawing to show: 490.684 lbs/ft^3.  "Worry when there's something to worry about."

View 3 Replies View Related

AutoCAD Inventor :: Assemblies Showing In Parts Only Parts List

Jul 10, 2012

I have an assembly with a lot of purchased parts. I need to create a buy out list for purchasing. I've done this many times in the past and have a template set up for this purpose.

So now the problem, In this assembly, I have subassemblies showing up on my parts only parts list.

One of the subassemblies cinsists of two purchased parts. Both parts are set to purchased in the Bill of materials. If I do a parts only list on this assembly, it works as expected, showing two purchased parts. However, if I put that assembly into a higher level assembly, A parts only parts list shows the assembly instead of the individual parts.

View 2 Replies View Related

AutoCAD Inventor :: IDW View / Parts List Changes From Structured To Parts Only

May 3, 2013

IV 2010 Suite

Been working over an idw MANY times due to project lag.Today I opened it up and tried adding balloons to an already ballooned assembly.

The parts list has not changed, and is "structured".But, if I try adding balloons, they tag each part, not the entire assembly.

Also, I verified this by trying to add another parts list, which defaults to "parts only".

I can't show my data set, b/c it's HUGE, plus it's proprietary.

IV 2010 Suite
Digital Storm PC:
EVGA & Intel components
Win 7 Pro 64 bit

View 5 Replies View Related

AutoCAD Inventor :: Parts Not Selecting For Parts List

Sep 22, 2011

I have a .idw that I'm trying to make a parts list on.  I select parts list and highlight everything.  There are two screws that are not showing up on the parts list.  I cannot select them manually either.  It's acting like they are not there.  Even if I do a complete parts list (adding the assemblies parts into one big list), they still don't show up.

How can I select these parts?  What is wrong with them that they do not show up in the parts list?

View 2 Replies View Related

AutoCAD Inventor :: No Base Units For Parts Based On Area?

Dec 10, 2008

I was just wondering why there is no base unit for parts based on Area?

I model a lot of parts that are made from Plate.

When you order or sell plate it is usually sold by the Square Meter

The same would go for Square millimeter, Square foot etc.

Also other base units would be handy like Pack, Box, Carton I am sure there are many more.

The main one I really can't do without is Square Meter.

View 3 Replies View Related

AutoCAD Inventor :: Position Of COG In Selected Parts?

Jan 13, 2012

I have now been able to select items in an assembly and get weight and COG details of just the selected items, however I guess the COG will be working from the world datum as the xyz data is very wrong?

how do i set the world datum to a known point on one of the parts in the current view so that I can get the COG to relate to a position within the part that I set the datum to?

basically I have a block of metal with a load of parts on one end that offsets the weight / COG and i need to balance this on some brackets that are equally spaced from the COG, so i need to determine where the COG is of all the selected parts but as a position within the block from a known point.

View 5 Replies View Related

AutoCAD Civil 3D :: Way To Create Parts List For HDPE Pipes

Sep 19, 2012

Any way to create a parts list for HDPE pipes where instead of a  manhole connecting different pipe sections will run continuously with coupling and elbows and it will connect to other pipe segments using wyes. Is this possible? The pipe should be able to bend either horizontally or vertically like any HDPE pipe. Any HDPE library?

My other question is once I have the layout of the pipe is it possible to calculate the trench excavation and backfilling?

View 3 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 :: Macro To Change Text Style Font

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

AutoCAD Inventor :: Flat Layout Of Parts (not Sheet Metal) With VB Macro

Mar 18, 2013

I'm attempting to use a macro in Inventor 2013 I found on the Mod The Machine blog to lay out the parts of an assembly. They're wood (not sheet metal), and the purpose is to create a drawing/cutlist with flat views of all the parts for easier DXF extraction.

The issue is that not all the parts in our assemblies are created with the length and width on the XY plane. So, some parts are laid flat on the XY and some stand up straight. How do I modify this code to look at the XZ and YZ planes as well for length and width?

It's a bit long, so here's the link to the code.

View 3 Replies View Related

AutoCAD Inventor :: Get Parts List From The BOM

May 11, 2012

It seems like most people output the whole BOM.  I only want to data in the Part Number column, preferably as a list of strings.

Here's what I have so far:

foreach (Sheet oSheet2 in aDoc.Sheets){ for (int i = 1; i < (oSheet2.PartsLists.Count+1); i++) { var oPartsList = oSheet2.PartsLists[i]; for(int k = 1; k < oPartsList.PartsListColumns.Count+1; k++) { if (oPartsList.PartsListColumns[k].Title.Equals("PART NUMBER")) { //what goes here??? } } }}

View 1 Replies View Related

AutoCAD Inventor :: Get The Parts List From The BOM

Feb 4, 2013

I've been using the "Phantom" BOM Structure to roll up duplicate .ipt's when I have more than one sub-assembly within a higher .iam and it has worked well.

Question - is it possible to adjust settings so that the .iam that I "Phantom" itself remains as a visable line item in the Parts List while still rolling up like .ipt's?

View 2 Replies View Related

AutoCAD Inventor :: How To Get A List Of Parts

May 16, 2012

I have a drawing and I need to get a list of parts.  I see *most* solutions use the parts list on the sheet itself.  I will not have access to that. Is there a way to get a list of parts WITHOUT accessing oSheet.PartsList[1] ?

Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000

Inventor 2013
ETO 6.1

View 9 Replies View Related

AutoCAD Inventor :: How To Reuse Parts Rather Than Create New Parts

Jul 25, 2012

I have been working with an assembly today where it is ideal to mirror parts and have figured out how to reuse the parts rather than create new parts. Now I find that when the parts are mirrored, they ate not retaining the mates. Where do I find the setting so they either retain their mates, or prefferably retain the mirror so that if I move the origional, the mirror moves as well?

View 9 Replies View Related

AutoCAD Inventor :: Parts List With Thumbnail

Sep 6, 2013

As an academic interest I was trying to convert Brian’s code for exporting Parts list with thumbnail to VB.net 2012. I just modified the below code to remove the vb6 support. I am using VS 2012 and Inventor 2014. The end result on the word report thumb nail for some parts are not visible. It goes to the error code and putting the text instead of thumb nail. At the same time Brian’s code as it is (used the exe file to install it) works fine on the same parts list with all thumb nail.
 
#Region "PictureToImageConverter"
Public NotInheritable Class PictureToImageConverter
Inherits System.Windows.Forms.AxHost
Private Sub New() MyBase.New(Nothing)

[Code] ......

View 1 Replies View Related

AutoCAD Inventor :: Barcodes In A Parts List

Oct 22, 2012

We would like to put barcodes in a parts list. To create a barcode we use a special barcode font.

It's impossible to have two types of fonts within one parts list, but is there an other way? Is there code (VBA) to generate a table with an extract of the bill of materials and a barcode generated

with a special font on the fly. We would basically need a parts list with an extra column for the barcode.

Autodesk Inventor Product Design Suite 2013 SP1.1

View 3 Replies View Related







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