AutoCAD Inventor :: Write Text String To Parts List Column With ILogic

Mar 5, 2013

I'm trying to create an iLogic rule that will print a text string to a cell or column of a parts list in inventor.My code so far...

Sub Main()
On Error Resume Next
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
[code]...

I want to print what is in the MessageBox into a cell in the parts list, and i am stumped.The cell i am trying to print to is a custom property in the Parts List.

View 3 Replies


ADVERTISEMENT

AutoCAD Inventor :: Write Text String To Parts List With ILogic

Mar 5, 2013

I'm trying to create an iLogic rule that will print a text string to a cell or coloum of a parts list in inventor.

My code so far...

Sub Main()
On Error Resume Next
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
[code]......

I want to print what is in the Message Box into a cell in the parts list, and i am stumped. The cell i am trying to print to is a user property in the Parts List.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Rule To Print String To Parts List?

Mar 5, 2013

I am trying to make an iLogic rule that gets mutliple strings from different places, and prints them to a user property in the Parts List.

My ultimate goal is to print the drawing number, sheet number and the item column value to the user property with the format being...

"XXXXX-X-X"

So far, i can get the drawing number from an iProperty and the sheet number easily. But im getting stumped on obtaining the item coloum value and printing it to the same row.

This is what i have so far...

Dim DWGNUM As String = iProperties.Value("custom", "DWG Number")
SheetNumber = Mid(ThisDoc.Document.ActiveSheet.Name, InStr(1, ThisDoc.Document.ActiveSheet.Name, ":") + 1)
MessageBox.Show(DWGNUM+"-"+SheetNumber, "DXF Number")

And print the message box output to a column in the parts list

View 7 Replies View Related

AutoCAD Inventor :: Parts List Column Properties?

Aug 30, 2013

I need to create a column in a partslist that reads IDENTIFYING NO. instead of the factory PART NUMBER title. When i create the new property in the column chooser dialog box how do i get inventor to pull the PART NUMBER from iprops over to the IDENTIFYING NO. column.

View 4 Replies View Related

AutoCAD Inventor :: Fill Multivalue List In ILOGIC With Produced String (FILTER)

Nov 4, 2011

I try to filter an Excel List and therby fill certain Multivalue Parameters with the filtered data.

The filter works fine an provides me a string looking like the sytax for the MULTIVALUE.SETLIST command.

B6string = FilterReturn  &  Chr(130) & B6String = 75‚80‚250‚65‚45‚250

Unfortunatly this string gets exactly as ONE entry in the Parameters Value listing !

MultiValue.SetList("B6_Lochbild_Länge", B6String)

I also tried

MultiValue.List("B6_Lochbild_Länge") =  New Integer () {B6String}

and also

B6string = Chr(148) & FilterReturn & Chr(148) &  Chr(130) & B6String

with the same effect !

View 2 Replies View Related

AutoCAD Inventor :: Part List Column Width ILogic

Jun 11, 2013

I found the following code on Curtis Waguespack site. [URL] ........

View 3 Replies View Related

AutoCAD Inventor :: Parts List Column Heading Row Height?

Apr 13, 2010

I have a parts list, with a column, that the description in the column heading is longer than the width of the column. I would prefer not making the column wider, so is there a way to increase the row height of the heading, and wrap the text?

View 9 Replies View Related

AutoCAD Inventor :: Column Chooser In Parts List Is Missing Some Properties

Oct 30, 2012

I am trying to generate a parts list that will contain a stock number from the BOM.

When I go to customize my parts list I cannot add a stock number as it's not on the list of properties available.

Is there any chance to add other properties? (i am aware that I can add a custom property but it won't be linked to my BOM.

View 2 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 :: Get Parts List In Assembly Drawing To Fill Part Number Column?

Nov 19, 2011

I'm using Autodesk Inventor 2012 SP1 64 Bit on a Windows 7 machine without vault.

I seem to be missing something. I cannot get the parts list in assembly drawing to fill the part number column. See the image below.

The BOM has the part number field filled out as shown below. Is there someway that I need to map the iProperty to the part number column in parts list?

View 6 Replies View Related

AutoCAD Inventor :: Ilogic Generate Parts List?

Oct 4, 2012

I curently have a rule that generates a part list automatically in a drawing. the problem is that I want the rule to be continuisly running but it keeps generating 2,3,5... parts lists. I need an if statment to check if a parts list already exists.
 
iLogicVb.UpdateWhenDone = True On Error Resume Next ' 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

[Code].....

View 2 Replies View Related

AutoCAD Inventor :: Ilogic - Programmatically Add Parts List

Jun 19, 2013

im trying to programatically add a parts list into a drawing whilst programatically creating the drawing - the code works fine without the parts list code. The error its showing is 'Parameter incorect' on the line that sais PartsList.add(...   In the past when ive got this error with other code it has been because ive used an incorrect parameter (e.g. decimal instead of an integer).

My error is somewhere inside the oPartsList.add(>>ERROR SOMEWHERE HERE<<<)

oDrawDoc = InvApp.Documents.Add(Inventor.DocumentTypeEnum.kDrawingDocumentObject,AssyTemplate,True) 
oSheet = oDrawDoc.Sheets.Item(1)

[Code].....

View 1 Replies View Related

AutoCAD Inventor :: ILogic And Export Parts List In A IDW

Nov 18, 2010

I need to generate an iLogic rule exporting Parts List (not BOM) from a IDW to a specific folder in XLS format.

Using Autodesk AutoCAD Inventor 2011

View 9 Replies View Related

AutoCAD Inventor :: Parts List Sort Using ILogic

Nov 7, 2011

I have got some ilogic code that i have patched together to sort my parts list in inventor which works great but it will not update all sheets at the same time as when we design we have multiple sheets with parts list on and the odd one without.

add to this code to update all sheets partlists and also recognise that some sheets will not have partslists on so this will need to skip. 

below is code that is used to sort

Format:HTML Format Version:1.0 StartHTML:     165 EndHTML:    4558 StartFragment:     314 EndFragment:    4526 StartSelection: 314 EndSelection:     314
SyntaxEditor Code Snippet
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 4558 StartFragment: 314 EndFragment: 4526 StartSelection: 314 EndSelection: 314
[Code] ...........

View 4 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 - 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 :: Add Category Field To Parts List Using ILogic?

Apr 4, 2013

I am Trying to add the category Field to the parts list, if a sting exists in the field. I want to run this as a rule at the Drawing Level. I can check if there is a sting in the Category Field But not sure how to add this in the Parts List.

View 4 Replies View Related

AutoCAD Inventor :: ILogic To Turn Off Visibility Of Lines In Parts List

Aug 21, 2013

At my company when producing drawings for manufacture we require a sheet for any steel profiles to be cut!..We do this by selecting the assembly from base view,hitting model view tab, selecting presentation and choosing the relevant profile from the drop down!

Once the profile is placed, we highlight the view and hit the parts list tab which obviously creates a parts list, but for the whole assembly, we then have to edit the parts list by turning off the visibility of the lines of all the parts which are not relevant!!...as you can imagine this is quite a laborious task if you have 50 different profiles.

The reason for this is to show the qty, steel grade and part number to the suppliers. My question is, any code that will take the lines of the parts list that are not relevant to the selected view and turn the visibility of those lines off?

View 1 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 :: Wrapping Text In Parts List

Feb 7, 2013

how to Wrap the text shown here.  Obviously the Column labeled "ITEM NO." would be 1, 2 , 3 etc. So I would like that column to be smaller.  When I make the column smaller, the wording disappears. 

View 1 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 :: Rotating Text In Header Of Parts List

Nov 24, 2011

I have been unable to rotate the header text in a parts list.  I created a new text style that is rotated 90 deg, a new part list style that specifies to use that text style in the header.  Everything else about the text in the header displays correctly (i.e. font, size, colour, etc) but not the rotation when I insert the parts list in a drawing using the correct standard.  When I apply this same standard to a regular text line on the drawing it will rotate the 90 degs but not in the part list.

Inventor 2011 SP2

View 1 Replies View Related

AutoCAD Inventor :: Centering Text Vertically In Parts List

Oct 23, 2012

I am trying to align text in a row of my parts list vertically, but I can't seem to find an option to accomplish this. Please see the row for item #5 in the attached jpeg. The default behavior seems to be top justification.

I have found the ability to change left/center/right horizontal alignment in the 'format column' dialogue, but nothing for the vertical alignment. I have also tried changing the settings within the 'styles editor' by going to the parts list style I am using, then the text style that is specified for the data, and changing the justification for that text style to middle justification (see 2nd attachment), but it does not seem to effect the text within my parts list as I had desired.

View 2 Replies View Related

AutoCAD Inventor :: Revert Overridden Text In Parts List

Feb 23, 2012

If I override the text in a parts list, say to rename a part number.How can I make Inventor revert back to the original listed part number?I've tried deleting and inserting the parts list, but it still has the overridden Text.

View 1 Replies View Related

AutoCAD Inventor :: Export Assembly Parts List (BOM) To Text File?

Apr 3, 2012

how I can export an assembly parts list to a text file that can be opened by notepad?

I want to do this from the IAM file, rather than from an IDW file.

View 1 Replies View Related

AutoCAD Inventor :: ILogic Extract Data From String (CSV)?

May 9, 2013

Seeing this error

Error on Line 10 : 'SealString_1' is not declared. It may be inaccessible due to its protection level.
 
Dim SealString_1 As String Dim SealString_2 As String Dim SealString_3 As String Dim SealString_4 As String Dim SealString_5 As String Dim SealString_6 As String Dim SealString_7 As String For Each S As String In SealString_1.Split(",") If i = 0 Then name = S If i = 1 Then name = OD If i = 2 Then name = ID If i = 3 Then name = DE If i = 4 Then name = LI i = i + 1 Next S

View 1 Replies View Related

AutoCAD Inventor :: Where To Find ControlDefinitions Cmd List In Red String

Jul 14, 2013

Where do I find ControlDefinitions Cmd list in Red String.

The question is link of this: [URL] .....

View 1 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Convert List With String Or Lists Of Strings To Text

May 22, 2013

Someday the light bulb is going off and I will understand mapcar and lambda. However.....I have a program that reads an excel file sheets. Sometimes the sheet only has 1 column, sometimes 2 or more.

I need to convert the saved values from the sheet to a list with the text spaced evenly. Unfortunately the text lengths vary. I would like a subroutine to pass the list to and return a list of strings with text aligned with padded spaces allowing for the longest text in each column. I am using the new list in a dialog box with fixed_width_font=true (so columns align).

Example 1-

(setq List1 (list "Col1-Line1" "Col1-Line2" "Col1-Line3-longer" "Col1-Line4"))
(AlignText List1)
returns
"Col1-Line1"
"Col1-Line2"
"Col1-Line3-longer"
"Col1-Line4"

so no padding needed

Example 2 -

(setq List2 (list (list "Col1-Line1" "Col1-Line2" "Col1-Line3-longer" "Col1-Line4") (list "Col2-Line1-longer" "Col2-Line2" "Col1-Line3" "Col2-Line4")))
(AlignText List1)
returns
"Col1-Line1        Col2-Line1-longer"
"Col1-Line2        Col2-Line2       "
"Col1-Line3-longer Col2-Line3      "
"Col1-Line4        Col2-Line4      "

 Example 3 -

(setq List3 (list (list "Col1-Line1" "Col1-Line2-longer" "Col1-Line3" "Col1-Line4") (list "Col2-Line1-longer" "Col2-Line2" "Col1-Line3" "Col2-Line4") (list "Col3-Line1-longer" "Col3-Line2" "Col1-Line3" "Col3-Line4")))
returns
"Col1-Line1        Col2-Line1-longer Col3-Line1-longer"
"Col1-Line2-longer Col2-Line2       Col3-Line2       "
"Col1-Line3-longer Col2-Line3      Col1-Line3       "
"Col1-Line4        Col2-Line4      Col3-Line4       "

View 5 Replies View Related

AutoCAD Inventor :: Remove Iproperty Mass Unit String From Mass Value In Text String?

Oct 3, 2011

I've been looking for a solution to remove the unit string ie Lbs, g, kg from the value given from a 'Mass' value in a text string.

As you may all know, creating text and having a 'physical property - mass' value...the unit string is there...

Lots of people on here have the problem...no-one has got a solution.

Until now...

Basically...open the part you need to get the mass property of in your text string.

Follow the instructions on this webpage...this is the first part...

[URL]

Basically, this creates a Mass property value in the parameters table that you can call on as a text parameter.

It's similar to the custom iproperty model - mass but NOT the same.

Once you have done this, you can go to the drawing of the part and create a text string in the drawing and call it up as shown in this procedure. BUT it still has the unit string.

Here's the best bit that you want to know...

To get RID of the unit string...open up the part again from the drawing...click on the parameter icon...find the user parameter...in the Nominal value column, right click on the value and you get a pop-up that gives you 3 options...

Custom Property Format, Make Multi Value & Delete Parameter.

Click on Custom Property Format.

The pop-up window comes up...showing you the property type...in my case...the 4 left columns read Text, g (grams), Format & Precision...

On the right hand side I have a Preview of the text...then 3 check boxes...Units string, Leading Zero's, Trailing Zero's.

Units string is checked.

Uncheck it.

Close it...Save your part...go back to the drawing and hey presto!...the text now shows the weight you require as a straight value...no units!

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







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