AutoCAD Inventor :: ILogic - Export Idw Part Data To Text File

Aug 7, 2013

We have an idw package we use for Quality control. This idw has more than one sheet. Each sheet has a part placed on the sheet with dims.( DWF attached). Next we open DA inside of the file and run a report. (exported txt attached). I am trying to use ilogic the make the same report with a iLogic browser button pick. I have 2 codes (code examples on attached jpg) that i need to make into 1, or whatever works.

1st code
Dim oDoc As DrawingDocumentoDoc = ThisApplication.ActiveDocument Dim oSubDoc As Inventor.Document Dim oPropSets As PropertySets Dim oPropSet As PropertySetDim oPartNumiProp As Inventor.Property For Each oSubDoc In oDoc.AllReferencedDocumentsIf oSubDoc.documenttype.
[code]....

 2nd code
fileheader = "QAF Parts for Planning "fileheader1 = ThisDoc.PathAndFileName(True) 'first line header of txt filedescription = "Components to use for Nesting" 'use this variable in the body of the txtdelimiter = "," 'character to separate the names and values on each lineoWrite = System.IO. File. Create Text (ThisDoc.PathAndFileName(False) & ".txt")oWrite.WriteLine(fileheader) 'include the fileheader on the first.
[code]....

View 4 Replies


ADVERTISEMENT

AutoCAD Inventor :: Suppress Pattern Occurrence In A Part File Using ILogic

Dec 8, 2011

I have set iLogic to change a rectangular pattern to a certain amount of occurrences depending on which is selected , i.e. 117 cavities, 140 cavities and 96 cavities. Only one is active (or unsuppressed ) at a time. 

What I need to do is suppress the 4 corners of each pattern, considering there's only one pattern and is dynamic.

View 2 Replies View Related

AutoCAD Inventor :: ILogic For View Representation Of Part File (in Assembly)

Apr 17, 2012

I have received a great solution from Bobvdd allowing ilogic control of the view rep in a part file (not an assembly file). The code below works brilliantly when the part file is the active document. However when the part is placed in an assembly and the ilogic is run with the assembly active, the code produces no result. How to modify the top 6 lines of code?

Dim oApp As Inventor.Application
oApp = ThisApplication
Dim oDoc As Document

[Code]....

View 2 Replies View Related

AutoCAD Inventor :: ILogic To Change View Representation In Part File

Apr 16, 2012

How to change the view rep in an assembly

(using oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("Red").activate) -

However I am trying to achieve the same with iLogic in a part file (multi-solid).

View 2 Replies View Related

AutoCAD Inventor :: ILogic To Tie Engraved Or Embossed Text To Part Number IProperty

Oct 26, 2012

I had wanted to find a way to engrave/emboss the part number on a part model and have it be parametrically tied to the part number iProperty.  Since it doesn't appear that I can create a text box and insert the iProperty directly, here's what I did to work around this.  (I setup my part templates to have this out of the box....)

1.  Within, the IPT file, add a user text parameter called "PartNo" and set its initial value to any text value.

2.  Create your sketch for your text to be engraved.  Insert the User parameter you just created.

3.  Create the engraving/embossing for your text.

4.  Create the following iLogic rule:

' Requires a User Text Parameter called "PartNo" prior to running' Set the appropriate event trigger to tasteIf Parameter("PartNo") <> iProperties.Value("Project", "Part Number") ThenParameter("PartNo") = iProperties.Value("Project", "Part Number")InventorVb.DocumentUpdate()End If

5.  I set this rule to fire using the "iProperty Change" event trigger.  So if the iProperty is set or changed, your text will update.  Obviously, you can set this to run with whatever trigger you like.

Inventor 2014 64-bit SP1
Win 7 Pro 64-bit SP1

View 2 Replies View Related

AutoCad :: Export To Text File Data Points That Make Perimeter Of Sections

Oct 4, 2011

I am completely new to the forum and to Autocad. I am using version 2011.

I am working with irregular solids and after I SECTION them, I would like to export to a text file the data points that make up the perimeter of the sections.

Ideally, I would like to do it from the command line, but that's a secondary goal, first of all I would like to know how to do it.

View 0 Replies View Related

AutoCAD Inventor :: ILogic Code To Check File Name Matches Part Present In Drawing

Feb 15, 2013

At my company we use part numbers as file names for everything. for example, part number 09090P00100000, will be saved as 09090P00100000.ipt and will have a drawing saved as 09090P00100000.idw.

Within the drawing template file, i want to set up an ilogic rule that will check that the part present in the drawing corresponds to the file name of the drawing. This rule will run after saving and will just display a warning if the file names do not correspond.

I just need some code that will get the file name of the part displayed in the drawing.  Note that we use iparts so the code must get the member file name and not the factory file name.

Dim oDrawingDoc As DrawingDocument
oDrawingDoc = ThisApplication.ActiveDocument  
Dim oSheet As Sheet   
oSheet = oDrawingDoc.ActiveSheet

[Code] ........

Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit

View 8 Replies View Related

AutoCAD Civil 3D :: Export Offset / Elevation Data From Cross Sections To Text File / Excel

Jun 9, 2010

I am using Civil3D 2010. I am trying to export the offset/elevation data from my cross sections to a text file or excel file so i can paste the info into another program. so far i've been labeling the offset/elevation info on the section and typing it into excel by hand.

View 9 Replies View Related

AutoCAD Inventor :: Export To DWG / Missing (Part Number) Text Parameter

Dec 3, 2012

I'm using the "Part Number" parameter inside a block of text in my drawing, but when I export it to AutoCAD DXF 2010 format, the text in the exported file shows up as "<PART NUMBER>", instead of displaying the actual part number.

-Using Autodesk Inventor Professional 2012

View 2 Replies View Related

AutoCAD Inventor :: ILogic Rule For Each Part In Assembly To Change Part Parameter

Apr 1, 2013

I`m looking for the iLogic code that can change one parameter (user defined) for each (ipt) part in assembly (iam)

The one below doesn`t work.

Sub Main Dim oApp As Inventor.Application = ThisApplication Dim oAssy As Inventor.AssemblyDocument = oApp.ActiveDocument For Each oSubDoc as Inventor.Document In oAssy.AllReferencedDocuments On Error Resume Next Parameter(oSubDoc, "FH") = 15.26 Next End Sub

View 5 Replies View Related

AutoCAD Inventor :: Using ILogic And Parameters In IDW File Text Box

Jun 7, 2011

I am trying to enter some material ordering info into an external spreadsheet, and have that info reflected in a text box within an idw drawing file.

My method is as follows:

Obtain a numerical value (250) from an external Excel spreadsheet (sample.xlsx).Assign this value to a parameter (abc) in an idw file (Materials Ordering.idw).Insert parameter abc I made into a text box within the same idw file.

I made a set_parameters rule, and the ilogic text of the above example is as follows:

'Open File and Scan line - Part = Impeller Casing Flange
i = GoExcel.FindRow("sample.xlsx", "Sheet1", "Part", "<=", "Impeller Casing Flange")
'abc = Material Width
abc = GoExcel.CurrentRowValue("Material Width")

I had no problems with the first two steps, after checking the parameters I could see that parameter abc is being updated successfully.

However, I am having trouble with the third step. In the format text dialog box, I can see a drop box for components, but I can't find a reference to the idw file in there.

My question is, am I going the wrong way about this? Should I have assigned the parameters to a component instead of the idw file?

View 5 Replies View Related

AutoCAD Inventor :: How To Close A Text File From Within An ILogic

Nov 3, 2012

I have an iLogic that runs to create parts and assemblies. These parts and sub-assemblies are for a range of library components which are either part(s) or assemblies or and assemblies composed of parts) and sub-assemblies as well. This iLogic is mostly done despite I have limited knowledge in this area. At the beginning it opens a text file (.txt)  by the command line:

ThisDoc.Launch("L:\_Nov 02Info and Input GuideLines.txt")that offers guidelines and instructions. 

I would like to how can I close (exit) this text file at a point within or end of the current iLogic because, it opens a several files of the same every time I run the iLogic otherwise.

View 3 Replies View Related

AutoCAD Inventor :: ILogic Connection From Part To Part

Feb 8, 2013

Is there a way to connect parameters from part1 to part 2 using iLogic, without using an assembly.

View 9 Replies View Related

AutoCAD Inventor :: X / Y And Z Coordinates Out To Text File From Part

Feb 22, 2012

Is it possible to pull out the x,y,z coordinates to text file from a inventor part. I am aware about this that it maybe need some programming but what kind of programming Language is the best to use ? is it possible to use the build in programming Language called Ilogic? Or is it better to use some .net? At my work we use PDMS to do plant modelling and we want to use inventor for modelling the machines and doing the workshop drawings ect. And we want to be able to take the inventor part coordinates and transfer them to PDMS because it can model the machines just by coordinates taken from a text fil. 

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 :: Getting Data From Access Database Using ILogic

Aug 2, 2010

I have a program that populates an access database with part parameters. Each Inventor part can look up its own parameter values from the database when supplied with a single parameter, the ID number of the database record. The ID number is derived from a blank part that the program also updates. So in a nut shell, the program populates the blank part's parameters with all database ID numbers that would make up entire assembly. Those parameter values are derived to all the parts in an assembly. This is by far the fastest most efficient way I've found to rapidly generate an entire assembly. In a matter of seconds I can have a new 1000+ part assembly.

 The rumor that Inventor will eventually sever ties with VBA has put this whole process in jeopardy. So I have been looking into using iLogic to perform the same task of looking up the data from Access. I know that iLogic has Excel functions built into it, but because the original program is Access based (changes this is not an option) any way to use iLogic to retrieve data from Access.

View 4 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 :: Derive Part Using ILogic?

Nov 10, 2011

I need to derive a part in a model (not assembly and as a separate solid), to remove it and make a cavity. However, I need inventor to prompt what file is to be derived through iLogic.

View 5 Replies View Related

AutoCAD Inventor :: ILogic To Control End Of Part

Sep 16, 2013

Is it possible to control (move) End of Part with iLogic? Let's say to move it before or after a certain feature.

View 1 Replies View Related

AutoCAD Inventor :: Extract Part Qty With Ilogic

Aug 3, 2012

I have an assembly with 20 parts.

I will make a detail drawing of the parts in the assembly.

In the detail part IDW I would like to have the qty needed for the assembly 1,2,4 ect.

So how I think the ilogic should work.

In the detail drawing have a rule named QTY when ran auto or manually Will pompt to pick the Top Level Assembly the parts are in.

The user will look for the top level assembly select it.

The rule would filter out all parts but the detail part number and return the QTY of parts needed for the assembly.

I only need the Qty.

I know this is done by the number of Occurrences in the assembly this I can find but what I can't find is how the user would look up the assembly and set it to parts only.

Like the pic below when doing a parts list.

I don't need the select view because it is a part and it would return QTY of 1 but the assembly may have 5.

2012 Factory Design Suite ( will not load 2013)

View 9 Replies View Related

AutoCAD Inventor :: Replace Part Using ILogic?

Jun 13, 2013

I have an assembly which I want to replace one of the parts with one of four other parts.

My code reads:

Select Case Width
Case "750"
Component.Replace("part:1", "L:Drawingspart2", True)
End Select

This works fine and when 750 is selected, part1 is replaced with part2.

My problem is then if I want to select "1000" I don't know the part name which I will be replaced by part3 as this could be part1, part2, part4,or part5.

View 1 Replies View Related

AutoCAD Inventor :: Run ILogic Of Part In Assembly?

Jul 25, 2012

How to run iLogic Rule which I created for .ipt  file in assembly?

As I have a myPart.ipt file with iLogic Rules which could create part1.ipt, part2.ipt, ..... (hundreds of them).

Now, I want creats iLogic Rule in myAssembly.iam to run the iLogic Rules in myPart.ipt in order I could create correct .ipt file to be used in myAssembly.iam.

View 4 Replies View Related

AutoCAD Inventor :: Same ILogic Part In Same Assembly?

Jul 26, 2012

I have the same ilogic part placed in the same assembly, and i am trying to drive two different configurations of the same part and when i apply the configuration it changes both of the parts but to only one of the configurations.

Is there a way to drive them seperately even though they are the same part.

View 5 Replies View Related

AutoCAD Inventor :: Populating An Existing Spreadsheet With BOM Data Using ILogic?

Dec 6, 2010

I already have a cut list  template in Excel that calculates my stock material,  volume,  etc when I populate the appropriate fields. It is also connected to an access database that has various information that automatically generates the final price of my product based on various suppliers prices and data with whom I do business with and so on.

I would like to know if there was a way with iLogic to make Inventor populate specific cells with information found in the BOM such as: description; Qty and custom iProperties value like dimensions, etc?

The reason why I'm making a new topic out of this is that I have read previous post about the issue, but they were regarding "exporting the BOM to an excel". I, on the other hand, would like to populate an already existing spreadsheet with data from the BOM

After exploring the iLogic snippets, I've only found the "export" option. It referenced the API snippets, but with limited programming knowledge there is not much I can understand.

View 3 Replies View Related

AutoCAD Inventor :: Link One Part File Dimension To Another Part File?

Jul 6, 2012

Is it possible to link one part file dimension to another part file?

1. Part first is a cylinder in parametric table i changed it,s name OD , ID  and thk. ( find attachment )

   Cylinder ID is ( ID=105)

2. Then i made 2 nd part whose step od ( od=102) is going to insert in to cylinder id.There is 3 mm clerance every time 

3. So i have to make equction in 2 nd part that ( Step OD= ( ID-3).

means next time when i will change ID of cylinder OD of 2 nd part will ger changed automatically minus by 3 mm than id of cylinder.

View 3 Replies View Related

AutoCAD Inventor :: ILOGIC For Part IProperty Prompt?

Jun 6, 2012

I am trying to find an ilogic for part proparty entry as soon as I create new part/assy.

I know it is possible by Event triger-> New Document .

View 9 Replies View Related

AutoCAD Inventor :: ILogic - Set Iproperties In A Derived Part

Jan 28, 2013

I would like to be able to add iproperty values to a derived part from the assembly..!

Breaking it down..:

When i run the rule, it creates a derived part from the Assembly i have open.

The iproperties from the assembly should be copied to the new Derived Part. or just set direclty from the rule, doesn't matter...

View 9 Replies View Related

AutoCAD Inventor :: Change Part By ILogic In Assembly?

Jul 25, 2012

Before using iLogic, I created lot of iAssembly and iPart. I could change iPart factory member when I need in iAssembly.Now, I want to move everything to iLogic.

how could I change the part by iLogic code?

For example:

I generated "Part1.ipt" and "Part2.ipt",...... (I have hundred of member)

In my assembly, sometimes, I need use Part1.ipt, sometimes I need use Part2.ipt.

Which is the iLogic Code I should to use?

Inventor 2009, WIN XP.
Autodesk Inventor Professional 2013 (64 Bit) SP2
Windows 7 Professional Service Pack 1
Intel(R) Xeon(R) CPU E5645
12.0 GB Memory

View 9 Replies View Related

AutoCAD Inventor :: Enable / Disable Part Through ILogic

Feb 15, 2013

Apparently the occurrences tab setting aren't easily accessible through the code snippets in ilogic.

How would one go about writing a rule that, in essense, would say:

If x = "whatever" then

occurrence.enabled = false

else

occurrence.enabled = true

end if

I've been reading that LOD's and suppression aren't the best course of action for assemblies especially when you're dealing with 20-40 parts as I am. I've got an assembly and parts controlled by a spreadsheet and when things are clicked off in the spreadsheet they need to be off in the model/drawings/bills etc. I have it working (to an extent) with suppression of parts in the assembly, but that casues LOD errors in the drawings. Research says parts are best disabled which is what i'm trying to do.

View 1 Replies View Related

AutoCAD Inventor :: Change LOD In Derived Part Through ILogic

Jan 27, 2013

I got this code earlier from Curtis_Waguespack, and i would like to add a setting... When i run this rule it Derives the assembly, but LOD is set to Master, i would like it to be set to my own (Configurator) LOD...

I don't seem to be able to find anything in this code, that defines LOD... 

So far im doing ok with the standard ilogic code, but when it´s API or VBA code im lost..  which leads me to this.. i've been searching the forum back and forth to find a code that performs the feature "Shrinkwrap", and somehow everything i have found so far does not work... even the code example in Inventors help menu under programming, Therefore im trying to solve this with Curtis's code as staring point.. 

'set a reference to the assembly component definintion.'this assumes an assembly document is open.Dim oAsmCompDef As AssemblyComponentDefinitionoAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition 'define the path and file nameDim sPathandName As StringsPathandName = ThisDoc.PathAndFileName(False)

[Code] .......

View 9 Replies View Related

AutoCAD Inventor :: Use ILogic To Set Size And Length Of A Part

Oct 26, 2011

I have created a ilogic rule that should set the size and the cut length of my parts. Most of the time the rule behave as I want it to. But sometime it gives me a error. See attached picture. By the way, I have included this rule in my custom content center parts (beam's etc). The rule is:

'Turn off workfeatures
ThisDoc.Document.ObjectVisibility.AllWorkFeatures = False

'check if the part has any geometry
If Measure.ExtentsLength="0" Then
[code]........

View 9 Replies View Related







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