AutoCAD Inventor :: ILogic - Model / Reference Parameter
Apr 12, 2013
I wish I perform the following code with iLogic. Is it possible to change a model parameter to a reference parameter?
If My_Expression Then' My dimension "d0" is a Driven Dimension' or' My dimension "d0" is a Reference ParameterElse' My dimension "d0" is NOT a Driven Dimension' or' My dimension "d0" is a Model ParameterEnd If
View 9 Replies
ADVERTISEMENT
Oct 2, 2012
I need to convert a model parameter to a reference parameter thru the API.
I saw this item discussed in the group before, but I cant find the thread.
View 4 Replies
View Related
Mar 8, 2013
I was wondering if there was a command that will get the file name of the model referenced in a drawing?
The reason I want to do this is because I have various programs to automate drawings, but I have to manually edit the code if i want to switch between using the code on assembly drawings and part drawings.
If i can get the model reference, I can then use a bit of extra programming to extract the extension. (i.e. .ipt or .iam)
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
View 5 Replies
View Related
Oct 4, 2011
how to replace model reference using iLogic in inventor 2012. Basically I have a drawing file whose model reference needs to change with part number(iProperties) .
I've been struggling to perform replace model reference as there is no direct command given for it.
View 1 Replies
View Related
Jan 7, 2014
Is there a way to identify what sketch or Solid a reference parameter (d0, d1, d2 etc) is in / on.
View 3 Replies
View Related
Sep 27, 2012
I created view representations in my assembly, for example a column with k-polates and base plates, the column is a FG part, so now i create drawings and place views on that drawing, what i am askign for is I want to place the name of the view representation in my view label as a paramater so in the event i change my view names in my model they update in my drawing, this is important because i can create a cross referance to my 3D DWXF file views.
View 4 Replies
View Related
Jul 31, 2012
I need to assign the dimension in my screenshot to a parameter so I can use it to drive another assembly. However, I can't find any way to capture it in a usable manner.
In the screenshot I have an associative part inserted that contains only a sketch with the projected line and point that I wish to measure between, but the geometry in the sketch does not update when the model geometry changes. This seems to be normal behavior?
View 3 Replies
View Related
Nov 22, 2012
I want to reference parameters in an iRule in such a way that the value of parameter A determines the value of parameter b.
In this case i want to reference the dimensional height of a UC beam into a parameter <UC_HEIGHT> and then allow this to determine the value of uc designation size in a parameter <UC_DESIGNATION>
This would be useful because instead of typing the uc designation of a beam into the part description or matl. list i can just reference a parameter.
Is this possible? Iv tried an iRule along the lines of
if parameter (uc height) = xxx.x then parameter (uc designation) = 'custom test'
but get error messages
View 3 Replies
View Related
Sep 20, 2011
how to round a parameter using ilogic.
For example. I have Roperev=Roperev_1. Roperev_1 is determined by an excel equation. I need Roperev to produce a nominal number because this parameter dries a coil revolution and I need the revolution to be a whole number.
I can not just round the excel result because the excel result needs to be multiplied by 2.53 to get the resultant for Roperev_1
View 9 Replies
View Related
Mar 26, 2013
When I import a part from content center, a tube in this case, I get a length parameter called <PL>.
I am using this parameter in the parts lists, so it shows "=Outer diameter x thickness x <PL>"
However I don't want trailing zeros, leading zeros or units string to be shown.
I know I can open the parameters window, right click the parameter, then click custom property format and then uncheck these boxes and its fine.
But I want to know if there is a smarter way to do this, like creating a rule to execute on all the parts?
I have around 500 pipes with the parameter <PL> that needs to be changed.
View 6 Replies
View Related
Mar 26, 2013
I have built a vb interface using a tutorial from AU. Now I would like to do the same without the interface.
Inventor uses ilogic to pass parameters to the dll - the dll does the number crunching & returns values to Inventor - no interface required.
The tutorial uses an OK button to fire values back & forth - how can I do this without a button? I would like this to fire in the background without a form appearing.
View 4 Replies
View Related
Jul 22, 2013
I know how to get a parameter into my list of custom iProperties.What I want to do is take the iProperty lbmass and add it to the list of user parameters. Is there any way to do this without using iLogic?
View 8 Replies
View Related
Dec 31, 2012
I have several part models that are very simple and are basically long cylinders. I want to create an external ilogic rule that i can run in each part file that can identify the largest sketch parameter dimension. So basically it will find the Length of the cylinder due to it being a larger dimension and then rename the parameter.
I could just name the cylinder length sketch parameter the same in each part file, but I wanted to attempt to make it more universal for all users. So if a new user forgets to properly label his part parameters, the ilogic program can identify what parameter it should be looking for and rename it properly.
View 1 Replies
View Related
Sep 27, 2012
In 2009 Inventor iLogic, we have a button to delete all parameters and rules. But now, in 2013 Inventor iLogic, I only find a button to delete all rules. Where is the button to delete all parameters?
View 9 Replies
View Related
Sep 4, 2012
Get the i-logic parameter tab on ribbon. I am not able to locate that in my 2013 version.
have a look on attached image.
View 5 Replies
View Related
May 1, 2012
Is there a way to create a multi-value parameter with ilogic?
Inventor Pro 2013 (PDS Ultimate)
Vault Pro 2013
Windows 7 64
Xeon 2.4 Ghz 12GB
View 9 Replies
View Related
Jun 26, 2012
How to set multi parameter, iproperty using ilogic (or smth else)?
I hav eparameters: d1=50, d2=100, d3=5. I need to set a new multi parameter/iproperty that the final value is:
Angle 50x100x5 (suppousedly code should contain smth like: "Angle", "d1", "x", "d2", "x", "d3") but I do not know exactly...
View 2 Replies
View Related
Dec 28, 2013
Is it possible to update an existing User Parameter. While I can only delete-create a new. In this case the connection is lost with BOMQuantity.
View 5 Replies
View Related
Feb 21, 2013
way to rename a new dimension parameter in sketch with a dialog box directly not having to go to Functions or diemnsion properties.
View 2 Replies
View Related
Aug 4, 2013
The rule iterates through an assembly looking for parameters. If it finds them it 'pushes' the value down from the top level Assembly into the sub-components.
It works well, but each component updates dynamically as the parameter value is changed. This looks a bit jerky and weird.Is there any way to write the script so the the updates all happen at once at the end?
' set a reference to the assembly component definintion.' This assumes an assembly document is open.Dim oAsmCompDef As AssemblyComponentDefinitionoAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition'Iterate through all of the occurrencesDim oOccurrence As ComponentOccurrenceFor Each oOccurrence In oAsmCompDef.Occurrences'check for and skip virtual components'(in case a virtual.
[code]...
View 7 Replies
View Related
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
Jun 25, 2013
Is it possible with iLogic code to set a parameter in a bunch of parts equal to another paramter?
I want some iLogic code that will go into my pipe parts and make the PL param = D2.
View 1 Replies
View Related
Dec 20, 2012
I was working with ilogic, Adding a new rule and all of a sudden I got an error and when I double click on a parameter to add it to the code, the format changed.
It used to look like this when I added a parameter: Parameter("vertical seperation:1", "partitionthickness")
but now when I double click on a parameter I get this: vertical seperation.ipt.partitionthickness
Also when I right click on a parameter and select display current state, It does the same thing, for some reason the code does not display like it used to.
I got an error when this first happened and I tried reproduce the error again but it did not appear again. This affected all my parts and even in different projects.
I re installed inventor because I thought there might be a file link broken but it did not fix it.
View 4 Replies
View Related
Oct 1, 2013
The commented code does not work. I want to be able to open a part and change its size parameters before i open the assembly. this code will run as an external rule in a new empty file.
If i can do it without opening the part, that is even better. Test can I open a part, change a param, then close part.
Dim fname As String
fname ="C:Workspacemy_progchanF_BB_L.ipt"
Dim pDoc as PartDocument = ThisApplication.Documents.Open(fname,False)
pDoc = ThisApplication.Documents.Open(fname)
These are just attempts to find a syntax that works. I need the method to change the parameter.
'param = pDoc.PartComponentDefinition.Parameter.Param("TKNS")
'pdoc.parameter.Param("TKNS") = 8
pdoc.Save
pdoc.Close
View 4 Replies
View Related
Nov 3, 2011
I am struggling to find the right ilogic to extract the state of a multi-value text parameter and use it to populate a single i property.
View 1 Replies
View Related
Aug 1, 2013
I am trying to have iLogic change the custom property format for my user parameters. I am able to work with linear measurements, but I would like to also work with angular measurements. I want my angular units to be "Degrees" the format to be "Deg-Min-Sec" and the precision to be DD MM.
Below is my code to change the units to deg, but I can't change the format or precision:
Dim oPartDoc As PartDocument
oPartDoc = ThisApplication.ActiveDocument
Dim oParameter As Parameter
Dim oFormat As CustomPropertyFormat
[Code]....
View 1 Replies
View Related
Oct 24, 2013
I have a multi body part that I componented into an assembly. I am trying to get the assembly parameter in this case, "Height" to drive the parameters in the part model. I think I am using the right code but I get an error when I run the rule.
View 5 Replies
View Related
Mar 19, 2012
Im quite new to customizing inventor and have been playing around with I-logic. I can get I-logic to enter values into existing ipt paramaters when run from a rule within the idw. I can also get I-logic to create a custom Paramater within the ipt using some copied API code, however I dont know my way around API at all yet. So...
I was wondering if it was possible to create a custom part parameter from an ilogic rule run in an idw with that ipt featured?
View 4 Replies
View Related
Oct 29, 2012
Macro for writing the sheetmetal Extents width and length to the custom properties. I need to get these values into the part parameters so that they can be used in the BOM.
I can get this to work if I manually create the "SM_Length" user parameter, but how do I make the iLogic CREATE the parameters if they do not already exist? I think it would be something added below the "Catch..." just cant seem to figure out what it needs to be.
'look for custom iproperty and try to set it
Try
iProperties.Value("Custom", sExtLength)=Round(SheetMetal.FlatExtentsLength, iRoundValue)
Parameter("SM_Length")=Round(SheetMetal.FlatExtentsLength,4)
Catch
' assume error means not found and create it
customPropertySet.Add(Round(SheetMetal.FlatExtentsLength,iRoundValue), sExtLength)
EndTry
View 9 Replies
View Related
Jul 29, 2011
I want to use iLogic to create User Parameters with Multi-Value lists filled with info from an excel spreadsheet. What is the code to create a new User Parameter?
i7-2720QM Dell Precision M6600, Win 7 Pro 64-bit, 8GB RAM
Autodesk Product Design Suite Ultimate 2013
Autodesk Vault Professional 2013
View 4 Replies
View Related
Aug 6, 2013
Is there a way in iLogic to iterate through all curves on a drawing. We manually apply radii labels to each drawing view but would like to automate the process with iLogic. How could I reference and cycle through all the radii on my drawing view?
View 2 Replies
View Related