AutoCAD Inventor :: Write A Program In C# To Automate Ballooning From BOM

Feb 2, 2012

I'm trying to write a program in C# to automate ballooning from a BOM.The routine must read the BOM and for every row it highlights in all the views the corresponding component.Then the user must be able to manually draw a balloon or balloons to the highlighted items.

When done the next row of the BOM is called, etc.I can choose to start with a BOM from our PDM system or the Inventor BOM, partlist or drawingBOM

I tried different ways but I get stuck on it.I even tried to select the nodes in the browser and called oNode.doselect, but then I can't get the proper type for the selected items to go further?

View 1 Replies


ADVERTISEMENT

AutoCAD Inventor :: Ballooning In IAssembly

Aug 28, 2013

I have several iterations of an assembly.  Specifically I have a base of a machine with different tooling for different products. 

I generated the BOM by referencing the specific tooling I am trying to detail.  That worked.  But when I balloon, it references the main assembly.  It won't let me redirect the source file to the tooling asm.

View 9 Replies View Related

AutoCAD Inventor :: Ballooning By Assembly Level

Jan 9, 2014

When ballooning an assembly drawing having a structured/all levels BoM, the balloons default to the part level of the BoM hierarchy.  Is there a way to have the balloons reference the part's subassembly (direct parent) without having to override the value of each balloon manually?

View 7 Replies View Related

AutoCAD Inventor :: Ballooning Wiring / Split Balloons

May 17, 2010

(check out the attached .bmp for clarity)

I need to either add a custom balloon to a 3D wiring harness (made of individual wires) or add a split balloon (showing item number then sheet number) to my layout. What I have now is a 3D harness with all my connectors shown on it and a balloon calling out what connector it is. I want to attach a custom split balloon to my connector callouts to reference the wire and sheet number of another sheet in the same project. I should also mention that there are tons of connectors that as far as Inventor is concerned is the same model.

I've already created a user symbol to attemp to work around it but I can't attach the custom symbol to the existing balloon.

Secondly, why can't I attached a balloon to the 3D harness anyway. I also can't add a balloon to the nailboard view either!

View 1 Replies View Related

AutoCAD Inventor :: How To Represent Parts List And Ballooning As Different Single Instances

Mar 2, 2012

I am wondering when in the idw and have multiple parts some the same and some different. I would like to distinguish between each part as a different part or balloned so they all have a different ref number.

example: have part A and part B and part C

part A has three different instances in the iam 

part B has two

part C has four

How do I represent them in parts list and ballooning as different single instances?

part A- ballooned like- 1, 2, 3

part B- ballooned 4,5

part C- ballooned 6,7,8,9 

View 2 Replies View Related

AutoCAD .NET :: Trying To Write Layer Gather And Change Program In C#

Aug 2, 2013

I am trying to write a layer gathering and changing program that will store a lists of layers based on layers they need to be changed to. I am writing it in C# and the part that is killing me is I need to store the old layers before I convert them so that way in the future the program will automatically know to change those layers to the appropriate layer.

I am trying to use an .xml file to permanently store the layers, and a serializer to read the layers into a dictionary so that I can search and see if I have already come across a layer.

I know that sounds very convoluted so let me simplify the problem. We have our layers which are only 7 layers. We get drawings from outside sources and they have their layers. Their layers correspond to one our 7 layers. We have a list showing which of their layers correspond to one of our layers. When we get drawings with layers we've never seen before, we need to search through the list to confirm it isn't already there and if it is not present, then ask the user to which of our layers their new layer should be associated.

I want to store the data in a xml file in a manner similar to this <ourlayertheirlayer> ourlayer1, somerandomthintg ourlayer1, anotherrandomthing ourlayer1, thisrandomthing ourlayer2, whatisthis ourlayer2, whoisthis ourlayer3, whycantifigurethisout ourlayer3, canyoufigureitout</ourlayertheirlayer>

 Then I want to serialize the xml file and save the data in a Dictionary<string,string> type whre the first string is one of our layers and the second string is their layer.

I want the data in the xml file to persist between application sessions, but the dictionary would be filled each the program is started.Later in the program I will use the Dictionary to gather all the objects based on their layer, the second string in the dictionary, and convert them to our corresponding layer, the first string in the dictionary.

I am having trouble setting up my types in C# though. How do I create an xml serializer that will read ourlayer, theirlayer from an xml file and save it to a Dictionary. The data doesn't have to be in the xml file in that format either, I just can't think of an easier way than commas to sepearte the two pieces of data.

public class OursTheirs{ public List<string>[,] goToDict { get; set; }}public class oursTheirsComma{ public string commaPresent { get; set; }}public static class SerializeAddToDict{ public static string getFromXML(string xml) { XmlSerializer xmls = new XMLSerializer(typeof(string)); return xmls.Deserialize(new StringReader(xml)) as string; } public static List<string>[,] ParseXML { //Stuff here

I haven't figured out to convert the string to a //List<string>[,] where the first column is one of our 7 layers,second //column their layer } //Then some other stuff here to add the stuff to a dictionary}

 I just starting learning C# and .NET.
 

View 5 Replies View Related

AutoCad :: DWG Files Are Ballooning In Size From 3 Mb Up To 20 / 40 / 60 And Even 90 Mb

Jul 1, 2013

We are experiencing a significant problem which is shutting us down almost completely with several files. We believe this is because they are files which at on e time had Civil drawings x'ref'd into them. Even after detaching the xref's and purging and auditing, they remain large (38mb) so that AutoCAD (we use 2013 both full and LT versions which all react the same - Windows 8 64 bit) cannot even perform basic functions like copy/paste. They become basically unusable, and we can't continue. We have done all the program updates and once this happens, it appears that it can't be reversed.

View 2 Replies View Related

AutoCAD Inventor :: Automate DXF Creation

Nov 4, 2008

Is it possible to automate the creation of a DXF file when you save or check-in a part file from inventor. I have already set it up to create a DWF file to a shared folder on our network but we also export to DXF files as well for use in our machine shop. As of now the only way I know of doing it, is to open the .idw file and save it as a DXF manually. How to set this up to automatically create one on save or check-in.

View 9 Replies View Related

AutoCAD Inventor :: Automate Drawing Creation

Jan 9, 2013

All I want to do is automatically generate a drawing for an assembly with sheets for the component parts. The assembly is being placed as an iLogic part if that makes a difference.

View 2 Replies View Related

AutoCAD Inventor :: Automate Insertion Of Several Files ILogic?

Jan 24, 2013

I have the following code to automate the insertion of several files iLogic.

Sub TestPlace(doc As String) Dim cm As CommandManager Set cm = ThisApplication.CommandManager Call cm.PostPrivateEvent(kFileNameEvent, doc) Dim cd As ControlDefinition 'Set cd = cm.ControlDefinitions("AssemblyPlaceComponentCmd") Set cd = cm.ControlDefinitions("iLogic.PlaceComponent") Call cd.Execute End SubSub InsertaIlogic() TestPlace ("ilogic1.iam") TestPlace ("ilogic2.iam") TestPlace ("ilogic3.iam") TestPlace ("ilogicN.iam") ...

When I launched the single macro inserts two.

You can insert when to introduce coordinates ?

View 1 Replies View Related

AutoCAD Inventor :: Automate Parts List Export

Dec 5, 2011

We would like to be able to export parts lists from our drawings into Excel, so we can build a master item list on a project to get purchasing information on long lead purchased items early in the design phase.

We are thinking of exporting the part list to an Excel file named the same as the drawing file each time the drawing is checked in to the vault. We will have another VBA routine that does some sorting and other magical things to build the master list in Excel.

View 5 Replies View Related

AutoCAD Inventor :: Automate Dimensioning Of Drawing Views

Feb 10, 2012

Is it possible to automate dimensioning of drawing views?

Here's the situation: I have an Inventor assembly that's controlled entirely by iLogic. My users, who have zero Inventor training/experience (or with any 3D CAD software for that matter), pull up the assembly. They enter product related parameters from paper work orders into an iLogic form and hit a "Go Button". The assembly updates based on the parameters, suppressing and unsuppressing parts, features, patterns, and mates.  This works great.  They then hit a "Run Job" button. This takes them to an .idw where they fill out another form with order specific information and hit another "Go Button". This then cycles through every detail sheet and the parts list, deleting sheets deeemed unneccessary for the product, generating part numbers, exporting dxf's, generating an excel BOM, etc.

This works great as well. The problem is with the dimensions.  They blow all apart when the model changes.  I know I can run some API code to delete dangling dimensions, but is there away to programmatically create dimensions so I don't have to rely on my users remembering what needs them?  I've played around with using model dimensions, but I find that they stay and remain attached even when their corresponding feature gets suppressed. 

IV 2012

View 1 Replies View Related

AutoCAD Inventor :: Automate Change To IProperty Of Multiple Parts?

Jul 23, 2013

Is there a way to change an iProperty, specifically the iProperties->Project->Project field for multiple parts automatically.

I use the iLogic Design Copy Tool to copy over an entire project, and for the most part the only changes is the project number.

I didn't see a way to change this in the Design Copy Tool, possibly there is some other tools that can do this that I don't know about. But if not, I am assuming a small script (VBA??) would be required to do this? whether it is in Inventor or just an outside program to carry out this change.

I found this old thread, but it seems that people just found another way to do this?

[URL]

My workflow would follow something like this:

-Use iLogic Design Copy Tool to copy over project to new folder

-Open up full assembly

-Run rule or script to update all parts in assembly with new Project iProperty

-Save

-update the drawings as I need, (they will all need to be reviewed as some parts will be modified anyways)

Inventor Professional 2014-Update 2 - AutoCAD Electrical 2014
Win7-x64 | ASUS P8Z77-V | i7 3770 -3.4 GHz | 32GB RAM |
240GB SSD | nVidia GTX 670 4GB - 320.49

View 9 Replies View Related

AutoCAD Inventor :: Automate Printing Process - Print All Sheets As One PDF File

Nov 26, 2012

I would like to use Drag2PDF to create my PDF, and I want to automate the printing process. I want to print all sheets as a one PDF file. I have created a simple C# code, which prints to PDF, but I have one problem... When I submit the print a dialogue will appear (from the Drag2PDF) which asks for the file to be saved (location and name) How can I automate this?

I may not use pdfAddIn.SaveCopyAs, it makes my PDF not good.

public void PrintDrawingToPDF() {
Inventor.DrawingPrintManager oPrintMgr = (Inventor.DrawingPrintManager)InventorOpen._invApp.ActiveDocument.PrintManager;
oPrintMgr.Printer = "Drag2PDF";
oPrintMgr.PaperSize = PaperSizeEnum.kPaperSizeA3;
oPrintMgr.PrintRange = PrintRangeEnum.kPrintAllSheets;
oPrintMgr.SubmitPrint();
}

View 3 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 :: Can't Write To Cable And Harness Library

Nov 26, 2013

When I try to create a custom ribbon cable I get a message that reads:

"The cable and harness library is being edited by another user or is marked as read only. The Cable and Harness Library will be opened in read-only mode. No changes can be made to the cable and harness library, but wires and cables can still be inserted into the harness assembly."

In my project file I made "use style library" to = Read-Write

System Specs:

Windows 7 Pro
Autodesk Product Design Suite Ultimate 2014
Autodesk Vault Basic 2014

View 1 Replies View Related

AutoCAD Inventor :: How To Write A Code For Pressing Esc Button

Jul 24, 2013

how to write a code for pressing an esc button but in vba

View 2 Replies View Related

AutoCAD Inventor :: Disk Write Protected / Is It Not Possible To Format

Apr 27, 2011

I'd like to format the memory stick that Inventor was shipped on. (Don't need it anymore) But when I tried to format the stick I got a error "The disk is write protected". Is it not possible to format the disk? I rather reuse it than throw it in the thrash..

View 9 Replies View Related

AutoCAD Inventor :: How To Write-out Parameters In Correct Units In ILogic

Aug 14, 2013

I have this little iLogic snippet that writes out the name and value of all parameters in active document.

doc = ThisDoc.Documentparams = doc.ComponentDefinition.Parametersnames = New List(Of String)values = New List(Of String)For Each param In paramsIf Len(param.Name)>4 Thennames.Add(param.Name)values.Add(param.Value.ToString)ElseEnd IfNextMultiValue.List("ParamsList") = namesMultiValue.List("ParamsValues") = valuesGoExcel.CellValues("COVER.DEFAULT.PARAMS.xlsx", "Sheet1", "A2", "A400") = MultiValue.List("ParamsList")GoExcel.CellValues("COVER.DEFAULT.PARAMS.xlsx", "Sheet1", "B2", "B400") = MultiValue.List("ParamsValues")GoExcel.SaveGoExcel.Close

 The problem is it ignores the parameter's units and assumes cm for length and rad for angular. I need another nested IF - Then that says: 

IF param.Values.'UnitType' is "in"  THEN
param.Value = param.Value/2.54
Else If   param.Values.'UnitType' is "deg"  THEN
param.Value = param.Value*360/2/3.14159
End If

I just do not know the syntax or proper method.

View 1 Replies View Related

AutoCAD Inventor :: Listening To Events - Python To Write DXF Files Out

Jun 21, 2012

I wrote a small script in python to write dxf files out. I want to add this to a button on the ribbon. I got that sorted out and can get my button to appear where I want it. I am having trouble calling the script from the button though.

The API tells me that the button has an OnExecute() event that I should listen for to call my script. I have been searching on how to do that from python but I haven't had any luck.

View 2 Replies View Related

AutoCAD Inventor :: (VBA) Write Multiple Prompted Entry Fields In One Pass?

Oct 17, 2013

Is it possible to write multiple prompted entry fields down in a single pass? As it is now, you can see the taskbar reporting as it writes down each line.

Essentially i've got 6 different fields i'm trying to write down using code like shown below:
 
If oTB.GetResultText(oTitleBox1) <> Me.Title1.Value Then Call ThisApplication.ActiveDocument.ActiveSheet.TitleBlock.SetPromptResultText(oTitleBox1, Title1.Value)End IfIf oTB.GetResultText(oTitleBox2) <> Me.Title2.Value Then Call oTB.SetPromptResultText(oTitleBox2, Title2.Value)End If

Just wondering if there's a way it can be written down in a single pass to save time or if it's a limitation of prompted entry text.

View 2 Replies View Related

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 :: 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 View Related

AutoCAD Inventor :: Unable To Update Content Part / Write Permission Is Missing

Aug 31, 2012

When I attempt to place from Content Center some components, I receive the error message I attached:

"Unable to Update Content Part . Write permission is missing."

I receive this error not for all files.

View 3 Replies View Related

AutoCAD Inventor :: Change Library Content Centre Status From Read Only To Read / Write

May 4, 2012

How to do it?

I am using Inv/Vault Pro 2011.

View 9 Replies View Related

AutoCAD Inventor :: VBA - Program Which Can Steer Model

Mar 16, 2011

I was created model of industrial robot with assembly and I need to create program in VBA, which can be used to steering robot arms in model for example used keyboard. Program have to include assembly too. I don't know what I should start do this.

View 5 Replies View Related

AutoCAD Inventor :: Error When Launching Program?

Oct 31, 2013

I have AutoCad2013  installed on my system, I am running Windows 8.1, my system updated automatically. After updating none of my Autodesk software will launch. When I try Inventor I get a capatibility error and I follow the link and get the SP1 file but it says it also no capatible. When I try and launch Autocad 2013 I get an error thas says" acad.exe This app has failed to start because its side by side configuration is in correct" I als have Revit 2013 on my system and an error comes up saying "This app was unable to start correctly (Oxc0150002)"

View 2 Replies View Related

AutoCAD Inventor :: (Not Responding) Upon Opening Of Program

Dec 10, 2013

I just installed Autodesk Inventor Pro 2014 as a student for my engineering class and I have yet to get it to work properly. Every time I try to open the program, it will open to the main selection page. But the first click I do on the screen causes it to say 'not responding'. I have to close the program and try opening it again. The second time, it does not even get past the opening screen. It freezes and I end up having to log off of my user and log back in. I have the 64-bit version that matches my computer.

View 3 Replies View Related

AutoCAD Inventor :: ILogic - Run Program 2 Times?

Feb 5, 2013

I'm having an issue where when I run my RULES the model updates 99% of the assembly components.  The 1% will update if I run the RULE again with the same inputs.  What am I missing?

View 4 Replies View Related

AutoCAD Inventor :: Validate / Simulate PLC Program

Dec 22, 2012

Is it possible to validate/simulate my PLC program with autodesk inventor, using for example OPC connection between Inventor and my PLC. I know its possible in Delmia, but in our firm we have Inventor.

View 2 Replies View Related

AutoCAD Inventor :: Place VBA Program On Toolbar / Ribbon

Jul 27, 2012

I have created a VBA program (form with options) that modifies our parts list and saves the information to a text file for use by our purchasing dept. software.  I need to be able to run this program on multiple IDW files whenever I have them open and whenever I need.  How can I place it on the toolbar (ribbon) for easy access across any open file.

As of now the only I see is to export the form,, then import it to every IDW file, there has to be an easier way.

View 9 Replies View Related







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