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
ADVERTISEMENT
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
Aug 31, 2011
I want to change 'mutil value select" to "custom value input" in ilogic user parameters. something like this:
if condition A then
multivalue.setlist("length", 1,2,3,4,5)
else
(users can enter any value they want, how can i remove the list first and set it to custom value input?)
View 2 Replies
View Related
Jul 18, 2005
Is there a way to create user parameter as TEXT Paramters does not accept the text paramaters . we always have tor create parameters as numbers.
View 9 Replies
View Related
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
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
Jan 9, 2013
Is there any way of exporting text parameters from an assembly to individual parts without using i Logic? I am also unable to import text parameters to a . I am from an excel file.
We are currently using ilogic to change part text parameters from the assembly but it is a sticking plaster at best, as the rules need to be rewritten when parts are added and deleted from the assembly. We are trying to update our etched job number (which in many cases contains letters) from a single point on the assembly model which should populate all part files, and make it robust for all our CAD users, who do not use iLogic in their day to day duties.
If this is not possible (exporting text parameters the same way numerical parameters are handled) is there any plans of getting this included in upcoming versions?
View 1 Replies
View Related
Sep 11, 2012
I have created a dynamic scale bar block that a user can edit two custom properties of (Horizontal Scale and Vertical Exaggeration) and the values on the scale bar will self-adjust after a regen. The block works fine if inserted into a drawing as per normal the normal insert method.
However, the issue I am running into is this:
If the block is inserted into a template drawing that contains our standard company titleblock (again this part works fine), and that layout is then imported into a new drawing using the "From Template..." right-click option on the Model/Layout tabs, the block loses the custom user parameters. Editing the block definition shows that the parameters are there, they just no longer have names or default values and do not appear in the properties window when the block is selected.
Trying to edit the user parameter names in the block definition of this imported copy of the block, just results in receiving an error that I'm attempting to use characters that are not alphanumeric.
I've tried this same procedure with 2013 and the issues still occur. I've tried user parameter names that don't have an underscore in them (just in case that was causing the issue), but again no luck.
I've attached a simpler block that recreates the same problem: Tester.dwg - this is the block that can be inserted into a drawing. It contains two user parameters "Tester" and "Tester_2". Inserting this block into a drawing shows the block works correctly (user parameters are editable from the properties window).Testing.dwg - this is a drawing that contains the above block inserted onto Layout 1. If Layout 1 is imported into a new drawing (using the "From Template..." right click option of the model/layout tabs), then the block no longer functions as it should. The two user parameters are no longer visible in the properties window.
View 2 Replies
View Related
Feb 14, 2012
I need a parameter from an iPart to show up in my Parts List by using the Stock Number iProperty, then CHANGE with each variation of the iPart (PLATE BC-01, PLATE BC-02, PLATE BC-03, etc). I already have the parameter exported, named 'BOTTOM_A.' Stock number has the expression: '=1/4" HRS x <BOTTOM_A>.'
However, this only works for that particular part. The number does not change when I place a Parts List for PLATE BC-02 and PLATE BC-03. All three have the same number. I found that the number corresponds to the active part. If I double-click PLATE BC-02 in the ipt file to show it, the number for the separate Parts Lists will all correspond to PLATE BC-02.
I've attached an image of the Parts Lists after double-clicking PLATE BC-02 in PLATE BC.ipt. I can include more if needed.
View 4 Replies
View Related
Apr 10, 2012
I've some user-defined iProperties in my idw-file. As soon as I set the file to "read-only" (via explorer RMB->properties) these iProperties are not shown on the drawing sheet when i open the drawing. ow to abandon this effect?
View 3 Replies
View Related
Apr 23, 2012
I need to copy about 15 user parameters from 1 part to about 300 others. I used the DA to copy the iproperties but the user parameters are also needed.
View 2 Replies
View Related
Feb 25, 2013
Is it possible to add a user parameter into a general table in a drawing?
Example:
If I create a multi value text parameter called "Design", and give it two values "open" & "closed". Is there a way to add the chosen value into a general table on the drawing.
Autodesk Product Design Suite 2013
Win 7 Professional 32bit
Intel(R) Xeon(R) W3565 @ 3.2GHz QC
4.0 GB Ram
1GB Nvidia Quadro 2000
View 1 Replies
View Related
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
View Related
Aug 22, 2011
We are trying to add reference lines to the idw drawing for a sub-assembly. These lines represent centerlines of parts of the main assembly. The main assembly is not the reference file for the drawing. However, the required dimension setting the centerlines is a User Parameter in the sub-assembly. (The centerlines are represented by work planes in the sub-assembly file). Using iLogic, we were able to populate the User Parameter from the sub-assembly into the idw file. We can see it as a User Parameter in the idw file. However, when we go into sketch mode the User Parameter is not an option. In sketch mode, we pull a dimension between the two centerlines (d4). When you look at the parameters d4 does not exist so we cannot set d4 equal to our User Parameter (and we've looked there are no filters on). We need this dimension to be able to adjust as the length of the sub-assembly adjusts for different cases. Each case is unique and done on a job by job basis.
There are several places in our drawings where being able to place reference lines and set their relationship to the part would be very useful.
1. Why are the User Parameters not available for use in sketch mode on a drawing?
2. Why can the dimension IDs (ex. d4) not be seen by looking at the parameters?
3. alternative way of putting reference lines on a drawing?
View 4 Replies
View Related
Apr 10, 2013
I work with Inventor 2011.
It is possible to sort Parameters (user parameters) by code (simulating a click on column header) ?
View 3 Replies
View Related
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
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
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
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
Mar 23, 2012
Copy custom iproperties from one part to the other - possible?
View 6 Replies
View Related
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
Oct 6, 2012
But I was wondering if it is possible to contol the insertion of dynamic blocks and it user definerable parameters from a excel-text file.
I am surveying a section of pipework and I need to display the brackets that are supporting the pipes. As there are numerous pipes on top of each other I have decided to show the brackets in plan and isometric view.
I think I have made the dynamic block ok and have numerous stretch/move and scale parameters working correctly.
But the only way that I can see of chaging these parameters at the momment is by manually typing them in the properties tool pallete for each individual block.
So I was thinking that if I can store the correct values that I need for each parameter in the dynamic block on our data logger along with the correct E,N,Z insertion point is it possible for this file to change the parameters in the dynamic block for example, If I have the correct insertion point stored and then have 10 parameters stored with that point for simplicity I store as A=5.00,B=8.00,C=0.100 etc and these correspond with the parameters in the dynamic block will this file be able to alter the dynamic block as the values in the excel/Text file are displayed.
View 2 Replies
View Related
Aug 3, 2011
How can you access user-defined parameters/function defined in the Parameters Manager dialog?
View 1 Replies
View Related
Feb 25, 2013
I have a large collection of parts that are controlled from an exteranl rule. I need to make slight changes to the external rule, but for the changes to be successful I need two extra user parameters to be added to each of the parts. There are hundreds of parts, so going in and adding the two parameters to each would take days.
Is there a simple way of getting the external rule to add the two parameters?
P.s. My VB skills are pretty limited, but my understanding of iLogic is pretty good.
View 2 Replies
View Related
Jul 19, 2013
I made an assembly that adjusted to sized based on some key parameters. These key parameters are controlled by a form in the main assembly. The keys parameters actually adjust the skeleton file, which then drives the frame, then all the parts are adjusted.
after changing these parameters all necessary parts would adjust to size and keep the location constraints. Worked quite well.
The issue now is that, we adopted a new naming convention and this assembly requires all the part files to be renamed. I meticulously saved each part as their new name and then replaced each component in the main assembly. This worked to an extent. The problem that I am facing is that when I saved each part as there new name, the new part retained the linked parameters to the old part. Is there a way to change this link to the newly name skeleton file?
I looked into design assistant for this process as well, but the only changes I think available were to add a prefix or suffix. If worse comes to worse, I can remodel this project but, I am sure there has to be a way to alter this.
attached is a single part with those parameters in the image above.
View 2 Replies
View Related
Jul 11, 2012
I have a part with very irregular shape created by projecting geometry of other parts.
I wondered if there is any way of calculating area of this extrusion instead of dimensioning the sketch and creating equasions in user parameters?
View 9 Replies
View Related
May 1, 2013
I have an IPart with about 100 instances in it that is sheet metal. I created a user parameter for the gauge of the sheet metal relating to the thickness and that works fine in the ipart. My dilema is how to get the gauge to show up in my drawing in the general table. Pretty much I woud like the table to list part number, material and then have a column for the gauge of the steel related to the thickness in the Ipart table. I am using Inventor 2011 if that makes a difference.
View 2 Replies
View Related
Dec 8, 2011
I have some parts with varies User Parameters that allow cusomization of part features. With numeric user paremeters we can check the export parameter box and then, in the description of the part we can refrence that parameter. For instance the description could be: =Width <Width>, Height <Height>, etc. Where it would desplay as Discription: width 22in, height 12".
We also have text User parameters. Is there a way to add these parameters to the description as well? They do not have the option of checking the export parameter box in the parameters table.
View 1 Replies
View Related
Aug 30, 2013
I need import all new params, rules and forms from a new template to older parts. I'm trying to use an external rule to create a new iproperties and import params from xml file but I can't assign these parameters with these iproperties.
I attach the code.
View 3 Replies
View Related
May 21, 2012
I would like to have a rule that will add specific user parameters to a part file. These parameters need to be formatted so the width, depth and thickness will control the description of the part.
IE:
Width=4
Depth=2
Thickness=3/16
DESCRIPTION = TS <Width>X<Depth>X<Thickness>
I would like to format each parameter so that the:
Format=Fractional
Precision=1/16
Unit string=False
This is what I have so far:
oMyParameter=ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters
oParameter=oMyParameter.AddByExpression("Width", "TOP_RAIL_WIDTH", UnitsTypeEnum.kInchLengthUnits)
oParameter.ExposedAsProperty=True
oParameter.Units="in"
[Code]...
The TOP_RAIL parameters are from a linked file.
View 9 Replies
View Related
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