AutoCAD Inventor :: Embedded Excel Spreadsheet (Open / Save And Close) (iLogic)

Apr 30, 2013

I have some code (below) that will open my embedded excel spread sheet and it works great.  Now I need the code to save and close the excel file after it’s been open.The embedded excel spreadsheet pushes some stuff the model and does a couple other thing. So all I really need is for the excel file to open, save, and close when the rule is run.Imports Inventor.

OLEDocumentTypeEnumExcelApp = CreateObject("Excel.Application")Dim ExcelFile As ReferencedOLEFileDescriptorExcelFile
=hisDoc.Document.ReferencedOLEFileDescriptors.Item(1)ExcelFile.Activate(kEditOpenOLEVerb, ExcelApp)

View 4 Replies


ADVERTISEMENT

AutoCAD Inventor :: ILogic - Replace Or Refresh Embedded Excel Spreadsheet

Sep 20, 2013

For Creating my own templates i want to use iLogic and embedded Excel-Spreadsheets. The embedded Sheet has its own data, but i want to create a rule to refresh the data from an external Excelsheet.

For now i use the following rule:
 
For I = 65 To 90 '65=A 90=ZBuchstabe = Chr(I) GoExcel.CellValues("3rd Party:Embedding 1", "Platte", Buchstabe & "1", Buchstabe & "999") = GoExcel.CellValues("G:KonstruktionVorlagenMaterialgrunddaten.xlsx", "Platte", Buchstabe & "1", Buchstabe & "A999")Next I

it works well, but wont insert a new single-sheet or refresh formats, i have to add the same code for each sheet. And its REALLY slow.

Is there a possibility to refresh or replace the whole embedded file via a simple iLogic-rule?

View 1 Replies View Related

AutoCAD Inventor :: ILogic - MultiValue Parameter - Get Named Range From Embedded Excel

Jan 9, 2013

I have a MultiValue Parameter that I want to populate using a named range from an embedded excel spreadsheet. I would like an iLogic solution if possible because I need other people to be able to understand the code without too much difficulty.

One of the sample snippets given allows access but not if the excel file is embedded.
 
'GoExcel.NamedRangeValue("Part_Width")
 The code below works but not when using a named range.
' Load bearing housing typesMultiValue.List("parameter1") = GoExcel.CellValues("A1","A20")
 Is there something I'm missing? I was hoping to use something like below
' Populate MultiValue Parameter from excelMultiValue.List("parameter1") = GoExcel.CellValues("3rd Party:Embedding 4", "Sheet", "myNamedRange")

View 2 Replies View Related

AutoCAD Inventor :: Open Embedded XL Sheet With ILogic?

Nov 8, 2012

Is it possible to open an embedded XL sheet with iLogic ?

I tried "GoExcel.Open("3rd Party:Embedding 2", "ENTREE DES DONNEES"), but nothing happen...

View 9 Replies View Related

AutoCAD Inventor :: ILogic To Close / Hide Open Form

May 23, 2013

I'm wondering if there is a way to either close or hide an open form with iLogic? Something like the opposite of iLogicForm.Show.

View 2 Replies View Related

AutoCAD Inventor :: ILogic Excel Save As Command

Dec 12, 2012

I have an ilogic rule to open an existing excel file template and export the inventor parameters into it. I am trying to find a way to then save the excel file as a different filename. This way the original template can stay unmodified. I have found the GoExcel.save command but is there some sort of GoExcel.saveas(filename, filepath) command?

View 2 Replies View Related

AutoCAD Inventor :: Unable To Open Or Communicate With Excel And ILogic (2013)

Nov 20, 2012

I'm unable to open or otherwise query an Excel spreadsheet.

I get the following error message.  see attached.

What steps must I take to open and query Excel spreadsheets?

I'm using Inventor 2013, Excel 2007 and Vista 64.

Inventor 2012
AutoCAD 2012
Product Design Suite Ultimate 2012, 2013 & 2014

View 1 Replies View Related

AutoCAD Inventor :: Open Excel File (start Application And Show Worksheet From ILogic)

Nov 11, 2013

I'm trying to start Excel and show the results of some BOM items I have written to a file like item number, part number and description.The task is to find components in an assembly that have a part number longer then 39 characters, due to ERP limitations.

What I´m doing is cycling through all BOM (structured) items on first level and check if the part number is longer then 39 characters.

I write these item number, part number, description to an Excel file (temp.xlsx), so the user sees which Components he has to check for the Part Number (make it shorter). I figured it would be best to do that with an excel file, so the user can save the results to a new file or just check it.

Values will be erased from the temporary excel file afterwards.Here I can't figure out how to start the excel application and open the file in an actual application window if possible.

how to list the results with plain iLogic that would do it too or some other solution to list a snapshot from the BOM.I guess there is no way to add your custom BOMViews ?

View 6 Replies View Related

AutoCAD Inventor :: Insert IDW Into Excel Spreadsheet

Feb 15, 2012

Trying to figure out the best method to insert an IDW into an Excel spreadsheet without sacrificing quality. I have tried several methods to go straight from Inventor(2012) to Excel(2010) using print PDF at press quality, export JPEG, and even the snipping tool as a last ditch effort all of which inevitably loose all line quality when inserted to Excel.

I have only had success bringing a PDF from Inventor into Adobe InDesign where I am able to mimic the design of my Excel spreadsheet and create an additional PDF to include with the Excel document. It seems like there would be an easier way for Inventor and Excel to work together without sacrificing quality or adding additional steps.

View 1 Replies View Related

AutoCAD Inventor :: Export BOM To Excel Spreadsheet?

Nov 21, 2012

I am trying to export some data from my BOM. I require the part names, quantities and lengths. I have followed a previous topic in these discussions which is now closed. it seems simple to follow but requires me to click on the export BOM icon in the top left of the browser. In my instance this is greyed out. D

View 4 Replies View Related

AutoCAD Inventor :: Import / Export With VBA To Excel Spreadsheet?

Apr 17, 2013

Im struggeling with creating a code that opens a certain Excel spreadsheet and retrieves / inserts info.

the spreadsheet is a list containing part numbers for purchased components, therefore the list must be filled with information from iproperty. But it has to be where the next available number is. i had this working in iLogic, but have to move it to VBA for better use. the code that worked in iLogic is this one.:

[URL]

If possible it would be nice if the code at the same time retrieves the new partnumber and saves the active part as this part numeber...

View 4 Replies View Related

AutoCAD Inventor :: Using Excel Spreadsheet In Design Accelerator?

Nov 15, 2012

I am working on a gearbox design that requires multiple iterations on the shaft dimensins and other parts, so linking  the dimiensinos to a spreadsheet would make this easier. However, I'm using the design accelerator for the shaft and other components and I cannot find any information on how to connect the dimensions I enter in that design accelerator to a speadsheet. 

I know how to link to a spreadsheet for a regular component, but haven't used that much.

View 3 Replies View Related

AutoCAD Inventor :: Inserting Points From Excel Spreadsheet?

Sep 13, 2013

Is there a way of inserting points from an excel spreadsheet that come into the part file already fixed, instead of manually selecting the points and selecting the fix constraint?

View 2 Replies View Related

AutoCAD Inventor :: Inputting Comment Column In Excel Spreadsheet

Jul 26, 2012

My "parameter names" and "value" columns fill in under the Inventor Parameter chart, but for some reason I can't get the comment section to fill in.

Inventor 2011
07 Excel
Inventor 2011
Intel Core 2 Duo 2.93GHz
8GB RAM
Windows 7 Pro

View 1 Replies View Related

AutoCad :: Saving Part As Copy That Uses Excel Spreadsheet (Inventor)

May 12, 2012

I created a spreadsheet of about 40 rows to be used to create different parts. I then created a part "we'll call it Board_A". I linked to the spreadsheet and used 3 of the fields for my dimensions. Lets say I named the length (which was the extrusion number) as "Len_1". I saved it and all is well!! I then created other parts and used the spreadsheet for the dims. I then went back and opened "Board_A" and saved a copy as "Board_B". I closed Board_A and opened Board_B. I then rt clicked on "Extrusion" so I could change the length from "Len_1" to "Len_1_A" which is another row (field) on that same spreadsheet which is still linked. When I tried I received a message that said I couldn't do that (I forgot the actual message!) I clicked the Parameter icon and the only fields showing on the popup spreadsheet box were the ones I had previously used for those parts that I made from scratch. I thought I figured this out once but if I did I forgot. I deleted the spreadsheet link and then re-added it but nothing I have tried has worked. Is there a way to get these fields to be usable with a Copy of an existing part or do I just have to start from scratch and make the similar part?

View 1 Replies View Related

AutoCAD Inventor :: Close ILogic Form With VBA Or ILogic Rule

Aug 19, 2013

how can I close an iLogic Form from either an iLogic Rule, or a VBA Rule (VBA is the Preferred method)?

View 5 Replies View Related

AutoCAD Inventor :: How To Use Embedded Excel File

Jul 4, 2012

I have used the command "insert object" to embed an excel sheet. I can see in the modelbar the new stage called "3rd Party", expanded I also see "Embedding 1". If I use edit I can see my excel sheet. So far good.

My next task is to create a Rule to recall cells in the sheet. I use the command CellValue (embedded) to pick my cell value. My problem is that then I close my rule-editor I got the error:

Error in rule: Rule0, in document: Box test.ipt

GoExcel: 3rd Party worksheet not found: "3rd Party:Embedding 1", Sheet: "Sheet1"

It seems like I´m not able to recall my cellvalues.Whats the difference between embedding a excelsheet as above or use the add link command i Parameters window?

View 4 Replies View Related

AutoCAD Inventor :: Embedded Excel File In DWG?

Nov 14, 2012

When inserting object - xls file, i found trouble, max. number of column i see in dwg file is 22.

Creating table using table - general require long time for set up every column (different with)

View 1 Replies View Related

AutoCAD Inventor :: ILogic Spreadsheet Sketched Symbol?

Feb 1, 2011

I would like to use a multi-value custom iProperty 'item_finish' in the part or assembly model to drive an iLogic rule.

'item_finish' would be 1-24 from the list.

The part file would have an embedded spreadsheet with column A corresponding to the 'item_finish'.

The spreadsheet would have column B containg long text descriptions of the finish process.

The ilogic rule must take the 'item_finish' number, find the corresponding row and then return the B column cell text to a user parameter 'defined_finish'.

The 'defined_finish' parameter can be called in a sketched symbol to describe the finish.

It appears this is all possible, but I cannot find enough information describing the snipped code requiremnets to accomplish the goal.

View 6 Replies View Related

AutoCAD Inventor :: Open Word File And Save As From ILogic / VBA?

Nov 14, 2013

We have a word file that we use a lot for our drawings.  There is an empty file that we open and then save the file into the same directory as the drawing.

I am trying to setup some code that will open the empty Word File, and then bring up the Word Save As dialog box with the correct directory and file name already completed.  The correct directory and File name will be determined by the Drawing Code.

I have been able to open the Empty Word Document from iLogic with the following
 
'CRS Template Path & File NameoCRSTemplate = "\WWSERVERDisplaysA-Z Stand PartsCRS-Template.doc" 'Publish document. ThisDoc.Launch(oCRSTemplate)
 
I have been able to Open the Empty Word File from VBA and then bring up the Word Save As Dialog Box but I cannot work out how to define the initial directory or the initial file name from Inventor.

This is the VBA Code I have been using top open the Empty Word File and Show the Word Save As Dialog Box:

Public Sub OpenCRSDoc1()
'Don't Forget to Add the Word Object Library in the Tools - References
' Call SetCRSDetails

[Code].....

If you try to use the With Command for the FilePicker it will just open the Word Document and NOT the Save As Dialog Box!!!

Example of the With Tried

With FilePicker
.InitialDirectory = "Z:"
.DialogTitle = "Hello"
.Show
End With

How to open a Word Document from either iLogic or VBA (VBA Preferred) and then open the Word Save As Dilog Box and define the Initial Directory and Filename?

View 1 Replies View Related

AutoCAD Inventor :: Using Excel Spreadsheet To Hold Parameters And Then Auto Update In Model

Aug 7, 2013

I have a problem with using the excel spreadsheet to hold my parameters and then making them auto update in the model.

I have the excel 2003 spreadsheet saved in the same folder in the projects directory as the model. When I create the spreadsheet and enter the parameters and values etc I save and close the file.

When I am in inventor 2013 64 bit with SP1 installed, I open the model and can link the spreadsheet to the model and the model reflects the values in the spreadsheet. I also click update on the parameters dialog box.

I then open the spreadsheet and make some changes to the values, save the file and even go to the extreme of closing the file. When I go back into Inventor it recognises there has been some changes in the underlying spreadsheet. The update button is active in the tool bar. However trying to update the models by what ever means does not update the model parameters to those in the spreadsheet. Even closing the model and reopening it does not make a difference.

The only way I can get this to work is disconnecting the file and then reconnecting the file through the links option in the parameters dialog box. Then the model reflects the correct values and updates the model accordingly.

My concern is there is quite a bit of stuff on the net about 2013 not working with 2014 inventor anyway.

View 3 Replies View Related

AutoCAD Inventor :: Customizing Visibility Of Embedded Excel

May 23, 2012

I have an embedded Excel file in my dwg file.  I'd like to make it visible on the drawing.  On the drawing though, it only displays however many rows existed when the sheet was inserted.

For example, when I clicked "Insert Object", only 1 row existed in the Excel sheet.  I've now added 10 more rows, but still only the first row is visible.  

How can I make the table on the drawing display the full view of the Excel file?

Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000
Inventor 2013
ETO 6.1

View 4 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 :: Linked Spreadsheet And ILogic Workflow With Assemblies

Jun 19, 2013

My question is regarding the proper workflow within Inventor.  We are currently using 2013 Pro.

I am trying to develop an Assembly that will take linked excel values and have the assembly repond to the user's input.  This spreadsheet is to be general in form and is to be re-used for different projects.  Right now, the excel values are linked to a master assembly file.  This master file has a few iLogic rules to handle the user's input and to pass particular parameter values to the iAssemblies (read sub-assemblies).  The iAssemblies are not that complex, but they are taking parameter values from the master, and using iLogic within the isub-assembly to choose the iAssembly member based on the parameter value.

Problem one:

There seems to be a problem with changing the iAssembly member.  I have stabilized the iAssembly within the master Assembly.  The isub-assembly does not update unless I open the isub-assembly file.  In both the isub-assembly and the master assembly, I update at the end of each rule, and I trigger the rules after any parameter change.

The questions are:

Since there are 123 members (so far) in each of the 2 iAssemblies within the Master Assembly, do I really have to test the parameter 123 times to assign a particular iAssembly member?  Or is there a more concise way to do this?

We are not using Vault yet, but with described workflow, will we have problems when we do migrate to a vault environment?

View 4 Replies View Related

AutoCAD Inventor :: Update K Factor / Sheet Metal Type From Excel Parameter Spreadsheet

Apr 9, 2012

I have a set of sheet metal parts modeled in inventor that are produced in a wide range of sizes and several different sheet metal types.

The dimensions (length, width, flange size, etc) are driven from a spreadsheet. I would like to be able to have the user update the K Factor from the same spreadsheet by selecting a sheet metal type.

The sheet metal type and K factor are not listed in the parameters list with the other model dimensional data, so I'm not sure how to proceed.

View 1 Replies View Related

AutoCAD Inventor :: Embedded Spreadsheets And ILogic

Jan 14, 2011

I have an Embedded spreadsheet in a .ipt file. I want to access the data in it using iLogic, but i keep getting this error...

GoExcel: 3rd Party worksheet not found: "3rd Party:Embedding 1", Sheet: "Sheet1"

Do I need to declare the spreadsheet somehow, or is there something else I missing? This is the only code I have in the rule...

i = GoExcel.FindRow("3rd Party:Embedding 1", "Sheet1", "ID", "=", 1

View 9 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 Code To Close IPT File?

Aug 21, 2013

Looking for the ilogic code to place in the drawing rule to close *.ipt file that was recently open.

View 2 Replies View Related

AutoCAD Inventor :: How To Close Application (IPT And IAM) By ILogic Code

Mar 26, 2013

How to close an application (*.ipt & *.iam) by ilogic code?I tried to use...ThisDoc.Document.close (True) to close it.Indeed, it can close the application, but there is an error occurred as following:

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

how to avoid this error or any other way to close (or exit) the application?

View 9 Replies View Related

AutoCAD Inventor :: Close Form From Either ILogic Or VBA Rule?

Aug 16, 2013

how can I close an iLogic Form from either an iLogic Rule, or a VBA Rule?

the full code text required to close a form called "Mr Form"

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Zoom Extents / Save All / Close All Open Drawings?

May 26, 2010

how to make a routine for zoom extents, save all, and close all open drawings in a single routine?

View 3 Replies View Related







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