AutoCAD Inventor :: ILogic Not Displaying Parameter Code Properly
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.
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
The demensions are not being displayed properly in paperspace on the drawing. ie the part should measure 160 inches. when it demen. the product in paperspace it will only measure 3 inches.
But on a different part of the drawing it measures correct demensions?????
I'm using VBA in Inventor 2010. I want to create a macro that adds 3 fields to a part for LRNGTH, WIDTH and THICKNESS, as well as comments and setting the export to be export out. My program is below and works well. However i would like to end the macro with the parameter dialog box open. What code do i need to do this?
Sub AddBomFields() 'adds LENGTH, WIDTH and THICKNESS user parameters to part Dim oPartDoc As PartDocument
If Inventor is on the screen when the pc locks (win+L) Inventor will not display properly after unocking the pc. Moving the mouse around will change what is highlighted in the feature tree and things like that, but I cannot at all see the actual object I am working on. Changing from one open component to another does not work. I have to restart each time this happens. I have updated both Inventor and my display drivers to a supported version.
I have imported an IGES file in Inventor and I need to dimension and detaill the piece in a 2D drawing. The thread and hole wizard does not recognize the holes in the workpiece as holes. Also I sectional view does not display hatched areas of the workpiece even though I have the display option checked on. Is there any sort of feature recognition within Inventor that I can use to import all geometry so that inventor understands?
I am working with 2011 Pro and have about 1500 hours on the program so far.
I was considering redrawing the workpiece by creating a part within an assembly and overlaying the two pieces on top another and using refernece geometry but this might not be the most ideal method.
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
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.
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?
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.
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?
I am looking for a way to log out of vault from within Inventor using iLogic codes. I have created an iLogic rule that automates export an assembly drawing and all sub component drawings. In my code, I have suppressed all Inventor prompts but I do not have a way to suppress Vault prompts. I can manually log off from vault and run this rule without any problems. However, if I forget to do so, I am stuck responding to update requests from vault and check out requests constantly for each and every file.
I recently created some iLogic based components. I wonder how difficult it is to protect the iLogic code, similar as VBA code which can be password protected.
The reason being:
1. Of course, to hide & protect the creator's modeling logic;
2. To avoid the relation between parameters being messed up by the end user unintensionally.
I did have the opportunity to raise the question during the Portathon event and the answer was that the protection not directly available, though the workaround could be mixing with some Inventor API coding in .NET.
However, this might defeat one of the benefits of iLogic, simple and ease to use, gentlr learning curve, especially for users with VBA experience. .NET might not be so easy for a lot of engineers from mechanical or other disciplines.
1 Disable the "Edit" button for iLogic components, including rules, forms, etc.;
2. Put all code that are to be protected in an external file, and then make that file unreadable (password protected, or other protection) to un-intended user, however, readable to those who have proper access privelege.
A while back I figured out how to put a few characters before and after several lines of code in iLogic to make it compress to one line or expand to its full size inside the code editor. I belive this is a fairly common VBA command, but I can't figure out how to do it again.
Inventor 2014 HP Pavilion dv6t-6b00 Intel Core i7 2670QM AMD Radeon HD 6490M 8gb RAM Windows 7 64 bit 3Dconnexion SpaceExplorer
How to close an application (*.ipt & *.iam) by ilogic code?I tried to use...ThisDoc.Document.close (True) to close it.Indeed, it can close the application, but there is an error occurred as following:
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
how to avoid this error or any other way to close (or exit) the application?
I am trying to use a code window plugin on my website, and would like to create a temple for iLogic code. Is there any way to output iLogic code in a format that would work?
I cannot modify any of the existing templates because iLogic requires information as to whether to make some text brown or blue, and it would need some form of output to do that.
[URL]
The instruction page is here: [URL]
I have been manually highlighting or using images, but both have their problems. (cut & paste will lead to a pile of errors with the manual highlighting). I can create the css file, but need some form of output beyond cut & paste to work with.
If something is worked out, it will be added to the program and be available to everyone free (this is a Wordpress plugin).
[URL]
Self built computer with;
Quad core processor 16 gigs ram Raptor Raid main drives 2 x 1TB Caviar Black storage drives local 2 x 1TB Caviar Black storage drives network backup
Main Software; Product Design Suite Premium Windows 7 Home Premium [URL]
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
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]...
I am trying to link to parameters in sub-components of an assembly, and feed dimensions to them. When I am in my iLogic interface I browse to the the part in the assembly and click the plus sign next to the part I am interested in. I then click the "User Parameters" section under that part and find the parameter I want to change. Now the normal workflow is to double click the parameter and it shows up in your iLogic code like here in this example:
So obviously something got messed up in my machine and iLogic is no longer formating the code properly. It only happens on my machine here, everyone else in our department still works fine. I have also determined that it is happening on all files new and old.
My fear right now is that I may have to re-install Inventor and I do not want to have to do that. I do have a call in with tech support through my local reseller, but who knows how long that will take.
I want to use Ilogic to construct a code part name.
My question is perform a code of about 12 characters. For example the parameter "Lenght" is 600mm but in the expressione result It must be "000000000600" (a string of 12 characters)