AutoCAD Inventor :: Modifying Custom IProperties In C#

Aug 11, 2012

I am using some code from the June 2010 "Mod the machine" posted by Brian Erkins.I keep getting an error in C# (express 2010), Please see attached screen dump.

I don't see any obvious difference in my code when compared to Brian's (in fact at one point I copied and pasted his code and still had the same error). Here is the

private void button1_Click(object sender, EventArgs e)        
{            
Inventor.Application invApp = null;            
invApp = (Inventor.Application)System.Runtime.InteropServices.Marshal.GetActiveObject("Inventor.Application");
Inventor.Document doc = invApp.ActiveDocument;            
Inventor.PropertySet customPropSet;            
customPropSet = doc.PropertySets["Inventor User Defined Properties"]; 

View 1 Replies


ADVERTISEMENT

AutoCAD Inventor :: ILogic Code Part Iproperties To Custom Iproperties

Sep 19, 2013

I was looking for some iLogic Code for Inventor 2013 that would cycle through all the parts in an assembly grabbing the quantity of each part and setting it equal to the custom property "Qty" of each part.

Having a little trouble creating the for each loop and setting reference to each part without referencing each part by specific name.

View 6 Replies View Related

AutoCAD Inventor :: Modifying Custom Content Center Part

Dec 4, 2013

A coworker of mine has made a bunch of custom extrusions, turned them into iParts, and published them to the Content Center. The parts are driven in length by the key parameter "Length". Unfortunately, he forgot to mark that "Length" parameter as export in the parameter dialogue before publishing. Is there ANY way to get that "Length" parameter to be exported so the Parts List can pull the cut length?

View 2 Replies View Related

AutoCAD Inventor :: Modifying Component Visibility With Custom View Rep

Oct 11, 2011

In my neverending battle to find a way to turn off unneeded components in an assembly, I'm trying my hand at modifying component visibility with a custom View Rep. View reps seemed to pose fewer issues than LOD's (in that you can have a drawing and model open at the same time without a million error messages)......until I tried to make a pattern.

When first placing a new subassembly component into an assembly, it will automatically place in the "Last Saved" View Rep. Since certain parts may be invisible in my "skeletal" subassembly, this is ideal. HOWEVER, when I try to pattern this subassembly, all of the occurrences absolutely insist on displaying at the "Master" View Rep. This makes no sense to me whatsoever and destroys yet another workflow at the 99% mark. I understand that I can change the view rep manually, but manual workarounds and corrections defeat the point of using iLogic to manipulate our models.

Am I the only CAD user who wants the simple ability to "turn off" an assembly component? iAssemblies are not an option due to the shear number of combinations of unneeded components.

View 4 Replies View Related

AutoCAD Inventor :: Change Order Of Custom IProperties?

Apr 9, 2012

how to change the order of custom iProperties.  I would like to group like iProperties together to make editing a bit easier.

Windows 7 Pro, SP1
Inventor 2012 SP1

Due to the nature of our business, I am not permitted to attach any files showing models or .idw environments of any actual work-related components.

View 3 Replies View Related

AutoCAD Inventor :: Mass Custom IProperties Modification

May 18, 2012

Is there any easy way of adding custom Iprops to previously created parts and assemblies? A macro or something that could set up additional lines without having to go in and type them out all the time?

View 5 Replies View Related

AutoCAD Inventor :: Custom Iproperties Within Part File

Sep 18, 2012

we have a part file that has 2 custom iproperties in it.

Length and Width.

If I delete these properties its fine and the properties are removed.

However if I then save the file, the properties become available again.

View 3 Replies View Related

AutoCAD Inventor :: Adding Custom Iproperties With ILogic?

Nov 2, 2010

Is it possible to automatically add custom iproperties using iLogic?

I have a rule thats adds text to a propery, but when I run the rule in an old partfile i get the error:

"Can't find a property named DrawingNo"

Is there something like:

"Create iProperties.Value("Custom", "DrawingNo")"?

View 3 Replies View Related

AutoCAD Inventor :: Copy Custom Iproperties From One Part To The Other?

Mar 23, 2012

Copy custom iproperties from one part to the other - possible?

View 6 Replies View Related

AutoCAD Inventor :: Importing Custom Iproperties From Excel

Sep 5, 2012

I'm importing custom iproperties from an excel document into inventor using the code I've written below.  I've figured out how to bring up a dialog box to select the excel file I need, but I'm completely stumped when it comes to selecting the sheet within the file.  As it is now, I'm specifying the sheet in the code itself (Str. C).  My goal is after selecting the excel file from the dialog box, have ilogic list all the sheets within the excel file, then be able to select which sheet I need using a radio box, list box or some sort of prompted entry. 

DimfdAsOpenFileDialog=NewOpenFileDialog()
DimstrFileNameAsStringfd.Title="Open File Dialog"fd.InitialDirectory="C:"
fd.Filter="All files (*.*)|*.*|All files (*.*)|*.*"
fd.FilterIndex=2
fd.RestoreDirectory=True
[code]....

View 2 Replies View Related

AutoCAD Inventor :: Custom Drop Down Under Cost Center In IProperties

Dec 9, 2011

 I'm using 2011 and I would like to add a drop down menu under the cost center box so I pick from a list of processes we use for purchasing. Is it possible to add a drop down list there?

View 1 Replies View Related

AutoCAD Inventor :: Custom Multi-Value Menu In Drawing IProperties?

Jul 10, 2012

how to make a multi-value drop down menu in drawing iProperties? 

I want to make a list with aluminum extrusion sizes where I can pick it's name from a list of names. Similar to the custom iProperties "Design State".

View 5 Replies View Related

AutoCAD Inventor :: Custom IProperties From Exported Parameters In Derived Blocks

Oct 23, 2013

I have two part files: Part A and Part B. Part A contains a sketch block, Block A, which will be used as a basis for Part B.

I derive Part B from Part A using a "Derived Part" to bring in only the sketch block (Block A) from Part A. When I do this, Inventor sets every dimension in Block A to "Export" and creates a custom iProperty for it. Then the Custom iProperties list in both Part B and Part A is cluttered with every dimension from Block A.

Is there any way to prevent it from creating all of these custom iProperties?

Inventor 2013

View 2 Replies View Related

AutoCAD Inventor :: IProperties And ILogic - Transfer Custom Title To Drawing

Oct 26, 2012

I have a form that is loading automatically in my part model. where i write the part number, description, project and custom titles.

my questions are:

1 - when i write the part number i would like then when i click apply it opens the save box with the same part number.
2 - it's possible to check-in the file during the saving and keeping the file checkout?
3 -  i would like that some of the properties would be transfer to the drawing, like the description and the project (this two are from the part properties.
4 - transfer also for the drawing the custom titles to the custom i properties of the drawing as pre fill in.

View 1 Replies View Related

AutoCAD Inventor :: Exporting User Text Parameters To Custom IProperties

Nov 21, 2012

I am trying to export a user parameter that is a text string to a custom I property. I am able to export other parameters to custom properties that are numarical values. I export check box is missing on the text user parameter.

Is there a way to acomplish this with I-logic?

View 5 Replies View Related

AutoCAD Inventor :: ILogic Changes Custom IProperties Type From Number To Text

Nov 2, 2011

I am using ilogic in Inventor 2011 to update my iproperties when I save a .dwg file. I am having problems with some custom iProperties I have created that are of the type 'number' and are initially set to 0 (zero). After the iLogic rule has run and the user has entered a numeric value the type of the custom iproperty has changed to 'text'.

The ilogic code I am using is:

 If iProperties.Value("Custom", "Nominal ID") = 0 Then 
    iProperties.Value("Custom", "Nominal ID") = InputBox("Enter The Nominal ID (Enter 0 if no value is available)", "Nominal ID", 0)
    Custom_iProp_Nom_ID = iProperties.Value("Custom", "Nominal ID")
 End If

I am using Vault 2011 and would like to map this property to a numeric property so I can perform <= and >= searches.

View 2 Replies View Related

AutoCAD Inventor :: Custom IProperties Not Updating In Drawing When Update Assembly Model?

Nov 19, 2012

I'm using Inventor 2011 and when I go to change parameters using iLogic in an assembly model, (sometimes it is a component suppression, other times it is an iPart component change) it won't update the associated drawing file. I need to go into the BOM on the drawing and renumber the balloons, or change something else in order for the custom iProperties to update in the drawing template. If I just change the iPart component, then the BOM doesn't need to update making the renumbering of balloons redundant.

I'm using iLogic to update all of the iProperties and component references, then reattach balloons. What I would like to do is automatically update the custom iProperties drawing template fields, and renumber the drawing BOM.

View 2 Replies View Related

AutoCAD Inventor :: ILogic To Create And Display / Insert Custom IProperties In Template

Aug 25, 2012

Any way to use iLogic to create custom iProperties from the cells in an Excel spreadsheet (both text and numbers) for a .dwg template. The only thing even close has been a user who already knew how to do it and was having a different problem. I am using Inventor 2012 and Excel 2003 and have very little experience with VB. I currently have a family of assemblies, consisting of two parts linked to an Excel spreadsheet to control the various parameters for each variation of the assembly.

I need creating an iLogic rule that will:

Go to a specific tab (I have four different tabs/worksheets) in an Excel spreadsheet.

Make a specfic row of that worksheet the current row based on the part number used to generate the models of the assembly shown in a .dwg.

Use the contents of a cell in that row (text or numeric or a combination of both) to generate a custom iProperty for the .dwg template.

Use the custom iProperties to fill in the title block of the template.

View 4 Replies View Related

AutoCAD Inventor :: How To Create ILogic Rule To Create Custom IProperties

Sep 30, 2013

I'm trying to figure out how to create an  iLogic rule that would create a Custom iProperties and put in what version of Inventor the file was last updated with.

View 8 Replies View Related

AutoCAD Architecture :: Modifying Custom Structural Member

Apr 5, 2012

I had created a structural member using the structural member wizard. I used many instances of the member in my drawing. However, the thickness of the member needs to be modified. Is there a method to modify the existing custom structural member without creating a new custom structural member?

View 2 Replies View Related

AutoCAD Inventor :: Modifying 3D Dimensions

May 23, 2012

Quick question...

Once a 3D object is drawn/completed in Inventor LT, how does one go back to the object to change the length/radius of certain objects without having to completely redrawn the object.  For instance, imagine a bike wheel that is fully draw.  Later perhaps one wants to go back to the wheel and adjust the radius of the spokes and the length.  How does one do this quickly.  In 2D I see how, but can this also be done in 3D with Inventor LT?

Working with... Autodesk: AutoCAD Inventor LT Suite 2013 | OS: Windows 7 | GC: ATI 6670 | Mem: 8 gigs RAM | Proc: Intel core i5 | Monitor: Acer V213HL

View 4 Replies View Related

AutoCAD Inventor :: Importing And Modifying DWG?

Mar 22, 2013

I am trying to do a "quick and dirty" stopgap.

I am in the process of repairing and assembling the various systems for a luxury yacht - electrical, mechanical etc. The ultimate goal is to get a full 3D layout of parts and assemblies, then using tube and pipe and cable and harness to run conduits, aircon ducts, fuel lines....

All I have to go on are .dwgs

In the meantime I need to submit a modified .dwg to the engineers overseas to get the O.K. on swapping the order of certain components. All I need to do is change the labels text on the layout, nothing else.

I have imported the .dwg into an Inventor sketch and edited the text.

Now I am stuck. Placing the view into a new drawing shows nothing.

RMB export sketch as .dwg works, but not a single line of text shows, only the layout.

View 5 Replies View Related

AutoCAD Inventor :: Modifying Component Pattern Through API

Mar 15, 2012

I have a component pattern with 3 components in it and I need to remove one of the components from the pattern. How can I modify the pattern through the API? I have tried various things but I do not appear to be able to change the pattern.

View 1 Replies View Related

AutoCAD Inventor :: Modifying Diameter And Radius Dimensions

Oct 23, 2012

My company is trying to Standardize all drawings produced to 1 format.  the one we are attempting to create would be in the form of: nominal upper limit^lower limit.  this is easily acheived in autocad and linear, chamfer, and hole/thread dimensions in inventor.  but radii's and diameters from a round surface (as apposed to linear diameters) we have run into a snag with.  We cannot seem to find a way to either remove the prefix symbols or be able to insert text between the symbol and tolerance.

below is a illistration of the problem and the form of the new dimensions.

View 4 Replies View Related

AutoCAD Inventor :: Set IProperties Upon New / Save

Apr 10, 2013

I want to make popup the i properties windows to fill or change in 2 ways:

» when creating a new ipt, iam and idw
» just before saving all 3

the properties I want to validate are

-  the title not filled
- if there is more than one line filled in comments

View 1 Replies View Related

AutoCAD Inventor :: IProperties - Opening Using VBA

Mar 7, 2013

I am opening, using VBA, the iProperties "Pop Up" box, using the following code....

ThisApplication.CommandManager.ControlDefinitions.Item("AppiPropertiesWrapperCmd").Execute

If it is possible to open the iProperties "Pop Up" box at a specific Tab, for example, "Physical" or "Status" etc?

View 1 Replies View Related

AutoCAD Inventor :: Part IProperties From IDW

Dec 5, 2012

Is there any way to add an "iProperties" item to the context menu in the drawing environment, so that I can select a part on the drawing and access its iProperties, instead of having to "Open, edit iProp, Close," for each individual part? - Using Autodesk Inventor Professional 2012

View 2 Replies View Related

AutoCAD Inventor :: Same Part Different IProperties

Jul 3, 2012

Any way of having 2 files with different file name but identical designs what automatic updates the other one?

I need the same valve design with different materials, stock number and part names but I would like to make sure that both files are always updated to latest rev. Without having to remember to do it my self every time.

We are using vault?

View 4 Replies View Related

AutoCAD Inventor :: IProperties Dialogue Box

Jul 9, 2012

Is it possible to create a new TAB in the standard iProperties dialogue box for Inventor Models and Drawings?  I want a completely new TAB to hold unique company information fields without having to create Custom Property fields.

View 2 Replies View Related

AutoCAD Inventor :: How To Delete Value In IProperties Using VBA

Aug 26, 2013

While in assembly, i would like to select a subpart and be able to clear or delete the value of ex description without opening the part file.

I can delete properties in custom prop but i cant do it in description....

I've use design tracking properties but to no avail....

View 3 Replies View Related

AutoCAD Inventor :: Retrieve IProperties From IDW To IPT

Dec 20, 2013

In the past we filled in our changes, we did on the part, in the iProperties of the IDW. In the IDW we use some Custom iProperties for this. That's not usefull because you want this data in the 3D-model. Now I have written some code to automate this, which works really great. This code works in the IPT as well as the IDW. But what I want to achieve is: When my IPT is the active document, I want to read out the iProperties from the IDW to check if there is already filled some of these properties, because I have to deal with 'old' documents as well.

So my basis question is: How can I read out iProperties from an IDW into the IPT. I have found lots of solutions which go the opposite direction, IPT -> IDW. I want IDW -> IPT.

View 9 Replies View Related







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