AutoCAD Inventor :: Exported Parameters Updated Through Ilogic In A A Part Rounding To Whole Number

Oct 28, 2013

I have two user parameters saved in a part template that are tied to the part volume and an overall estimated part weight.  The user parameter Pc_Volume is the volume in cubic feet and calculated by pulling the part mass (in cubic inches) and converting to cubic feet via ilogic rule.  This is then automatically run via event triggers before a file is saved and if the part geometry has changed to keep the volume up to date.  These are exported because they get pulled into iproperties of our drawing files as well as used to create a parts lists showing the volumes and weights. 

I have the property formats of the user parameters set to Number and to unitless and the unit display turned off so it does not show on the parts list, with a precision of 0.000 for Pc_Volume.  The Pc_Weight is set the same way however with a precision rounded to the nearest whole number. 

These are created this way so when we use the part file as the template when we select "Make Components" to separate our parts and tie them to an assembly all the files are then updated and the information saved for exporting. 

The problem is, the Pc_Volume always comes in rounded to a whole number.  The Pc_Weight Does as well, but that doesn't bother me since we want it to do that anyway.  If I would go into the part file after it's created, double check the precision and then re-run the rule the volume will show up with the correct precision in the exported parameters.  I don't want to have to open each partfile however to get this to update.

Attached are images of the parameters, ilogic rule, and exported results. 

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Machine Width Automatically Updated In Part / Drawing Number

Jul 29, 2013

Currently I'm converting one of our machines from AutoCAD to Inventor 2009.

This machine can vary from 1200mm to 1600mm and has a couple of options to choose from for our customers.

These dimension changes are all driven by a single excel file and the options are controlled in the an IAssembly.

Some of the 2D drawings will have a variable width, in our ERP system they are marked width dependable as followed: "partnumber/1200" or "partnumber/1410" in which 1200 or 1410 is the machine width.

Is it possible to have the 2D drawings automatically update the partnumber? so if I configure my machine as a 1200mm machine it automatically changes my drawingnumber to the actual machine width?

View 1 Replies View Related

AutoCAD Inventor :: Part Number In IProperties Is Automatically Updated To Match New Filename

Jun 13, 2013

When you do a Save As or Save Copy As in Inventor the part number in the iProperties is automatically updated to match the new filename. I would expect the Document.SaveAs method in the API to act in a similar way. However I found out that this is not the case.

SaveAs: Document.SaveAs(filename, False) does not update the part number. The new part will still have the same part number as the original part. This can give problems since in the BOM parts with the same part number are interpreted as the same physical part.

SaveCopyAs: Document.SaveAs(filename, True) does work as expected and the part number will update correctly.

Is this a bug in the API? or is there a reasonable explanation for this?

Inventor 2013 SP2

View 5 Replies View Related

AutoCAD Inventor :: Part Number Driven By Parameters

Dec 7, 2012

I have 2 parameters in a part (a spring), "diameter" and "Length".

I change these parameters with iLogic to build several springs.

Is it possible to update the "Part Number" Each time I change the parameters "diameter" and "length"?

I want to get the following:

Mola_Ø-65_L-140

Where 65 is the parameter value and 140 is the length value.

I tried with the code below,

iProperties.Value ("Project", "Part Number") = "Spring_Ø-"   Diameter    "_L-"    Length

but that returns: End of statement expected.

Autodesk Factory Design Suite Ultimate 2014
Autodesk Simulation Mechanical
Autodesk Simulation CFD
Windows 7

View 2 Replies View Related

AutoCAD Inventor :: Changing Part Parameters From Assembly / ILogic

Jun 12, 2013

Is there a standard command or command sequence that allows for the changing of a parameter, say length, of a component from within an assembly. I'm looking to compile a code that allows for a template to be created, then that template will do changes based on text box input and then save out the modified parts with new part numbers.

View 2 Replies View Related

AutoCAD Inventor :: Get New Part Number From Excel With ILogic?

Jan 28, 2013

I have made a configurator, that defines my part. Now i would like to add some intelligence for the Save process...

When i activate my rule it should.:

1. Go to a Excel spreadsheet and find next Empty cell in a specific collum

2. Place Title from inventor in that empty cell

3. Return the value from the cell next to this cell

3. Use this value as the new filename for my part.

Example: here i would like to get the parts tile put into B3 and A3 (103) returned to Inventor as filename to my part

--------------------

A        B       C

1  101  Title1

2  102  Title2

3  103

If possible, i would like to be able to adjust this alittle as i go forward in my work,

View 9 Replies View Related

AutoCAD Inventor :: Part Number Automatically Be Entered With ILogic?

Sep 21, 2011

I would like to have the part number automatically be entered with ilogic.

Normally I know how to do this but this time I'm trying to have a couple constant letters with numbers to be filled in.

Example 

MGR72

MGR is constant and the 72 will change with the width

What I thought would work but doesn't is   

iProperties.Value('Project", "Part Number")="MGR" Width

View 2 Replies View Related

AutoCAD Inventor :: ILogic Sequential Part Number Generator

Nov 15, 2011

I'd like to create a part number generator using iLogic.  The rule would run as follows:
 
If the iProperty "Part Number" was not blank or the same as the file name (as Inventor default), then a question box would pop up asking if you would like to overwrite the part number.  If one were to select yes, then the following would happen.
 
iLogic would open an xls that is on the network.  The xls would have two columns.  Column A would be the part number, B would be the filename associated with that part number. 
 
Column A (the part number) is a sequential count in the form of 6 or seven digits.  The format would be something like =TEXT(ROW(A1),"JFRC-000000")
 
Everytime the part number generator rule is triggered, it would create a new part number on the next blank row, copy this part number to the Part Number iProperty and assign the file in which the iLogic rule was executed to column B in the xls, save and close.
 
If, when the rule is triggered, the Part Number property is blank or the same as the file name, the user would not be asked if they would like to overwrite the part number. This rule would be triggered manually from a form.

View 2 Replies View Related

AutoCAD Inventor :: ILogic Rule To Retrieve Part Number From Excel

Aug 15, 2012

iLogic rule that will retrieve a part number(s) from an excel sheet. I work for a company that built vacuum trucks and I'm trying to make an . I am template where the user can select different lengths of shells to achieve the desire overall length. I have been able to achieve this using iLogic rules and forms and making the shell length parameter multi value.

But now I need to show predetermined SAP part numbers for the shells in BOM or part list. I all ready have an excel sheet with shell sizes with corresponding part numbers on file. I also thought about incorporating our custom CC parts/shells that already have the SAP part numbers set up as a custom iProperty but might be to complicated for a newbie iLogic user.

View 9 Replies View Related

AutoCAD Inventor :: Make Part Number To Be A Custom Property ILogic?

Oct 31, 2013

I have a part number that i want to defined in custom properties.

Then would it be possible to call it out in Ilogic? that way in any drawing doesn't matter where the part number will always be the same for that part when i balloon and the same in the BOM.

View 4 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 Inventor :: Using Floor (rounding A Number Down) Within A Rule

Jul 13, 2012

Any information about using the floor command within iLogic. i have written the rule ok and it does not come up with an error. However the rule doesn't actually activate, as the component pattern it is set to gives it 7.6 ul. Inventor then automatically rounds this up, the floor rule should counteract this but does not.

View 2 Replies View Related

AutoCAD Inventor :: Function Evaluation - Rounding To Nearest Whole Number

Mar 14, 2012

One of the users on mCADForums discovered this bug.

"I have a value of 3516.41mm and I want to round it to the nearest whole number.

I have tried to use the round command and it seems to round up to the nearest 10 so 3516.41mm would round up to 3520mm. So how do I get would I go about rounding to the nearest whole number?"

I suspect this is due to Inventor's internal units being cm.  However as we specific "a" to be in mm and "b" to be in mm this should not be happening. 

View 1 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 :: 2013 - Assembly Will Not Accept Updated Part File Name

Nov 22, 2012

I am currently working on a school group project that requires me to submit all inventor files as "LASTNAME_FIRSTNAME_PART,ASSY,DRAWING,etc..NAME". My original parts were all done in mm instead of cm, so for our project, I opened all new files and derived the same parts at a different scale to fix this scale issue between the members. For the new derived parts I temporarily allowed the file name to remain as part1, part2, part3.... and continued with the assembly. Now that my assembly is complete and I would like to change my part file names to the required format, my assembly will not show the parts and (?) symbol is shown by all parts with updated file names. I also changed the original file names and now the new derived parts, when opened, have the same (?) which I assume is related to the fact that the derived parts are dependent on the original file. Is there a way to update this information? We are using INVENTOR 2013.

View 2 Replies View Related

AutoCAD Inventor :: IProperty Fields In Form Updated On Part Selection

Oct 2, 2012

We have recently migrated our production work to Autodesk Inventor. We have a condition or rather a requirement to constantly keep a check on the iProperties of a part while in an Assembly file.

So I thought the best way to do so is to have a form which float's in one of the corners of the screen and updates the fields based on the item selected. Is this possible?

We mostly have parts one level below the assembly, occasionally we have them as a sub-assembly.

View 7 Replies View Related

AutoCAD Inventor :: Quantity Of Each Part That Are Merged By Part Number?

Feb 19, 2012

Is it possible, if you have a merged BOM.row to get the total quantity of each part?

inventor professional 2011 / 2012 / 2013

View 4 Replies View Related

AutoCAD Inventor :: Mirrored Part Gets New Part Number In Assembly

Dec 3, 2013

Why when I mirror a part in an assembly the mirrored part gets a new part number? I want to mirror only the position of the part which is always the same part. Is it possible to do that in Inventor?

View 7 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 :: ILogic Reference Parameters

Oct 9, 2013

I'm having some difficulties with iLogic and reference parameters.

I have made a tube with a weird shape and I want to measure the longest length. So I have to cut the tube in a certain angle in relation with the center to measure the length.

The problem is that this angle is really hard to calculate.

So I tried making a rule where I can make my angle shift x degree and then measure the longest length. If the measurement is larger the previous measurement the angle will shift x degree again until the measurement is smaller than the previous.

So I made my starting angle 0 degree, I know this is for a fact not the longest length. And then I tried this rule. (before making a While rule).

And I noticed that on screen the measurement changes. But the reference - parameter stays the same. So it gives me the measurement on the starting angle & after rotating it again gives me the starting angle.

How can I get the parameter to update itself in between?

Dim measurement_length As DoubleDim measurement_length2 As DoubleMessageBox.Show("Start angle ", "My iLogic Dialog", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1)angle_measurement_spec = 0RuleParametersOutput()InventorVb.DocumentUpdate()measurement_length = [code].....

View 1 Replies View Related

AutoCAD Inventor :: Saving Parameters To Xml (iLogic)

Feb 20, 2013

I would like to save parameters marked as Key to an XML-file (from an Inventor addin, VB.NET):
 
Dim addIn As ApplicationAddIn = m_inventorApp.ApplicationAddIns.ItemById("{3bdd8d79-2179-4b11-8a5a-257b1c0263ac}") 'iLogic addin addIn.Activate() Dim iLogicAddin As Object = addIn.Automation iLogicAddin.ParametersXmlSave(invDoc, "c: emp ext.xml", iLogicAddin.XmlSaveOption.KeysOnly)
 This doesn't run: "Public member 'XmlSaveOption' on type 'iLogicAutomation' not found."

The documentation says:

Autodesk.iLogic.Interfaces.IiLogicAutomation.ParametersXmlSave(Inventor.Document,System.String,Autodesk.iLogic.Interfaces.XmlSaveOption)

What is the correct syntax to get the XmlSaveOption?

View 1 Replies View Related

Revit :: Rounding Up Length Parameters?

Oct 16, 2012

I am making a Schedules for metal flashings that i have added to my project. I have not had any problems using shared parameters to get the length of my line based families and everything is working fine.

But now comes the tricky part. I need to somehow add a parameter that would roundup my real lengths to my production lengths. f.eks i have couple flashings that are 2569mm And what i would like the schedule to show is that I have couple of 3000mm flashings.

View 3 Replies View Related

AutoCAD Inventor :: Parameters Not Calculated - Can't Rebuild With UI Or ILogic

Mar 8, 2012

In the attached file there is a User Parameter, "Antal_ledekasser". Inventor has calculated its value to 2.

If you do the math by hand then you see the value should be 5.

Rebuild doesn't force recalculation.

There is an iLogic rule in the part, but this also fails to force recalculation:
iLogicVb.UpdateWhenDone=True
InventorVb.DocumentUpdate()
ThisDoc.Document.Rebuild2
ThisDoc.Document.Update2
 
Manual work around is to change the formula, then the value is recalculated.

iLogic work around is to change a parameter-value - and run the rule TWICE.

Question: How do I force a real rebuild, that actually wil recalculate parameter-values the first time I run the iLogic rule?

 Background: The attached file is a little subset of the skeleton in a large assembly that is controlled by iLogic. The rules are placed in the topassembly, and writes vaules to the skeleton-file.

After writing values to skeleton-parameters I try to force them through with this iLogic
RuleParametersOutput()
InventorVb.DocumentUpdate()
iLogicVb.RunRule("Skeleton", "Update")

Later in the process I use calculated values to decide which components should be active. But my logic fails because my decisions are made on faulty values.

I did manage to get the updating work in 2011. But after migrating to 2012, it seems impossible to have it update correct. The user has to run rules several times, and doing manually updates to get a correct model.

View 2 Replies View Related

AutoCAD Inventor :: ILogic / Export Parameters To Excel?

May 21, 2013

I want to export reference parameters to an excel table using i-Logic

I found the function GoExcel.CellValues("filename.xls", "Sheet1", "A2", "A10") = MultiValue.List("d0")

It looks like the syntax calls for the file location and name if the xls file is not open and if open is not supposed to be required.

I have entered it both ways and with and with out the target file open and with the function GoExcel.Open("pathFilename.xls","sheet1") and continue to get the error:

we couldn't find C:AbellAbell VaultWorkSpaceDEVELOPMENTAC100-0100MRLTEST Table.xls. Is it possible it was moved, renamed or deleted?

Also, I was expecting that to fill in the sheet cell's would be MultiValue.List("d0","d1","d2")

but the system give me an error that says

Error on Line 3 : Overload resolution failed because no accessible 'List' accepts this number of arguments.

See below
 
GoExcel.Open("C:AbellAbell VaultWorkSpaceDEVELOPMENTAC100-0100MRLTEST Table.xls", "AC-100-0101003-TEST")GoExcel.CellValues("C:AbellAbell VaultWorkSpaceDEVELOPMENTAC100-0100MRLTEST Table.xls", "AC-100-0101003-TEST", "A2", "A10") = MultiValue.List("d194_A")GoExcel.Save 

View 8 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 Delete All Parameters In A File With Ilogic

Aug 22, 2012

Working code ...... attaching file

Auto = iLogicVb.Automation
Dim iLogicAuto As Object
iLogicAuto = Auto
Dim oDoc As Document
oDoc = ThisApplication.ActiveDocument

[Code]...

'but now something more i wanna do is...... delete parameters

        If Not (param Is Nothing) Then
        
            For Each param In params
            i = MessageBox.Show("Checking for Parameter in File")
            i = MessageBox.Show("No.of Parameters exists are ="& param.count)
 
[Code]....

View 5 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 :: Multiple Identical ILogic Sub-assemblies With Different Parameters

Jul 17, 2013

iLogic code question concerning how Place iLogic Component and retain the ability to push parameters from the subassemblies to the parts after being renamed.

I have ASSEMBLY.iam containing:

SUBASSEMBLY-01:1.iam
SUBASSEMBLY-02:1.iam
and sometimes SUBASSEMBLY-02:2.iam

each SUBASSEMBLY.iam contains PART1.ipt and PART2.ipt which have variable LENGTH and WIDTH. LENGTH and WIDTH are entered manually at the SUBASSEMBLY.iam and are infinitely variable.

To transfer the parameters I'm using iLogic code in the SUBASSEMBLY:

 Parameter("PART1.ipt", "LENGTH")=LENGTHParameter("PART1.ipt", "WIDTH")=WIDTHParameter("PART2.ipt", "LENGTH")=LENGTHParameter("PART2.ipt", "WIDTH")=WIDTH
 
Issue 1: When I place the SUBASSEMBLY as an iLogic Component, the parts are renamed to PART1-01.ipt which renders my Parameter transfer useless. What am I missing on writing this code so it can find the new part name?

 Issue 2: I like the automatic renaming that happens with Place iLogic Component. Is there a better way to handle this automatically through Place Component -> Save & Replace?

Inventor 2013

View 1 Replies View Related

AutoCAD Inventor :: ILogic - STL Translator Specific Parameters Info

Sep 11, 2013

I am looking for information on the option parameters, any documentation?

I found some code to query what parameters there are (Rule: GetTranslatorOptions), just not sure what the enumerations are for some.

Specifically: ExportUnits, Resolution

Using Rule:ExportSTL

I have changed the Export Units from 1 to 4 and do not see any change to the STL ASCII output.. not sure what this parameter does... Expected it to be an enumeration of the drop-down box that you see during "manual" exporting.  

View 1 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 :: ILogic Work With Parameters On Suppressed Assembly

Dec 26, 2013

Is there a way to work with parameters on a suppressed assembly using iLogic.Everything works fine, but when I suppressed a part ilogic rule give me an error: Parameter: The component named "xxxxx:1" was not found.

View 1 Replies View Related







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