AutoCAD Inventor :: Non-Defined (Dynamic) Arrays In ILogic?
May 23, 2012
Is there a way to declare a non-bound array (dynamic array?) in iLogic?
There are examples of set bounds array:
MyDoubleValues = New Double(){1.2,2.2,3.3}
But doing something like:
Dim MyDoubleValues() As Double ---Or--- MyDoubleValues = New Double()
Results in an error. On the other hand, the following totally works:
Dim MyDoubleValues(1) As Double
Which creates an array with a Ubound of 2
View 1 Replies
ADVERTISEMENT
Jul 14, 2012
I'm working on a small design project and creating a program in Inventor that utilizes a 2D Sketch to calculate the forces in a 2D static Bridge.... Although this is Besides the point.
In order to do what I want, I've found it will be easier to use Arrays. Unfortunately I'm having trouble passing arrays through various functions and setting them to each other.
These errors are constantly popping up
Rule Compile Errors in Bridge Stress, in Sketch Test Code.ipt
Error on Line 60 : Number of indices is less than the number of dimensions of the indexed array.
Error on Line 63 : Number of indices is less than the number of dimensions of the indexed array.
Error on Line 69 : Number of indices is less than the number of dimensions of the indexed array.
Error on Line 174 : Number of indices is less than the number of dimensions of the indexed array.
Error on Line 308 : Number of indices is less than the number of dimensions of the indexed array.
Attached you'll find the code I'm using.
View 1 Replies
View Related
Apr 8, 2011
I've been trying to figure out if chaining parameters will accomplish what i'm trying to do, which is...
Imagine an elevation of a concrete pier or column showing the horizontal stirrup cage around the vertical reinforcement. If like to be able to use one parameter to control the space between elements (cage c/c) and another to control the total length of the array (height of column or # of cages). Then the actual number of elements would be total length/spacing.
Also, arrays alway seem to have fixed spacing, anyway to make the parameter control the spacing of the array?
View 7 Replies
View Related
Oct 28, 2011
I have a rule in the .idw drawing template, that displays a dialog box asking for the size (A, B, C, D...). Once the size is selected, it displays the appropriate border and title block. There is a small & large title block, so an A or B size gets the small, and a C or larger gets the large. This works great.
My question is, how can I have the appropriately sized Revision Table (small or large), automatically ready for use, based on the drawing size? The (2) Revision Tables are defined in the Styles library.
Product Design Suite Ultimate 2014 | Vault Basic 2014 (SP1)
Dell Precision M6600 | Intel i7-2820QM - 16GB
nVIDIA Quadro 4000M | Windows 7/64 Pro
View 1 Replies
View Related
Jan 4, 2008
I am trying to create a block that polar arrays the street lamp, but every time i try i just move the grip for it, is there something i am missing?
View 8 Replies
View Related
Nov 2, 2011
I use Inventor 2010 with the iLogic Extension. My question is probably more VB.NEt-related than Inventor-related.
For my parts I usually have a main *.ipt that can receive input parameters and does some calculating with them. Then there are several 'slave' *.ipt that use the calculated parameters of the main.ipt. I would like to keep that structure. Using iLogic the slave.ipt's do some calculation, too, based on an external *.Vb-File. I load that file into the rules of the slave.ipts by using (for example) AddVbFile "External.Vb".
My question is if it is in any way possible to have it so that the name External.Vb can be dynamic? I tried using a new iLogic String parameter and storing the name of the external VB-File there so that I would have a Parameter Name = "External.Vb" and then use AddVbFile Name. But that sadly didn't work at all. My External.Vb is supposed to be unique for every copy of my assembly and having to write the correct name into the rule by hand is tedious.
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
Aug 6, 2012
I am currently looking into mirroring and arrays and i wondered if it is possible to have some kind of adaptive mirroring activated or used.
The aim is as i change the instance which is arrayed or mirrored i want the objects in the array and the mirrored parts changed too.
If it is´not possible just like that i would want to do a macro or i logic form that updates the array or mirror to have matching parts again.
View 4 Replies
View Related
Jan 11, 2013
I need to prepare a linked chain araound a defined path. (Please have a look at the attached drawing) My idea is to have one element of the chain defined as a dynamic block and to manually "rotate" one side of the chain element. After that inserting the next element (previously aligning the user coordinate system) and "rotating" the right part again to the next position...
After doing the rotation, the block definition will change and the next block will be "disformed". So far no big problem, but the grip of the rotation parameter will stay there and I am not able to "rotate" the right part back into the old position (0 degree).
View 4 Replies
View Related
Jul 24, 2012
I am into tracking solar array's. So designing for high winds is paramount. I wonder if Inventor will have a package for analysis of wind loads. It is a different kind of FEA. Call it a 3-D distributed load.
View 5 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 19, 2013
how can I close an iLogic Form from either an iLogic Rule, or a VBA Rule (VBA is the Preferred method)?
View 5 Replies
View Related
Dec 23, 2013
I need to loop through the user defined properties and create a list. I can create the lost but I can't find a way of looping through the defined properties. I can get property values but only if I know the name.
I need to loop through without knowing the UD name. Is there a way to recursively loop through all of the user defined properties?
View 3 Replies
View Related
Jul 26, 2013
VBA routine that will allow you to select a work plane in the browser and find all sketches that are defined by it. We do extensive skeletal modelling and our master parts consist of many sketches and sketch planes
Note, I am aware of the VBA routine that allows you to select a sketch and highlight the plane or surface that it is made off of.
View 5 Replies
View Related
Jan 2, 2014
i can easily add user defined properties using Apprentice but i cannot delete them. There is a function to delete but i always get a message back saying the Parameter is Incorrect. When i check the parameter, it IS correct. Any method for deleted User Defined Properties using Apprentice?
View 1 Replies
View Related
Aug 6, 2013
Basically I am evaluating to model rebars in Inventor. Rebars come in predefined shapes - for example a "L" bar will have two dimensions (marked as A, E and R). The shape definition is fixed by a standard (like BS:8666) and the values for dimensions A, E and R are provided when it is instantiated as a part in an assembly.
I created an assembly as follows:Created a new part containing just a solid cube.Created a part for the above rebar by sweeping a circle along path which resembelled the above bar.Created an assembly and inserted the cube as 1st part.Inserted the L bar part as 2nd partInserted another L bar as 3rd part.modified the 3rd part's diameter and found it updates the other L bar as well.
My questions:Is there any way for me to create the part for L bar without giving any fixed values for the sweep path and sweep profile diameter and use it in assembly?If the above question doesn't has a solution, then is there any way for me to change one instance of the part to change while other instances of it doesnt get affected (the behaviour said in step 6 of above should not happen).
View 4 Replies
View Related
Aug 17, 2011
I am trying to make an iPart of a fitting where I can change the "Body type" and it will change all the parameters associated with that body type through iLogic. Really I am just playing around in iLogic to see if this is something worth learning. Back to the point, I would like to change a multi-value user text parameter through the iPart table but I cannot find the paramter in the parameters tab.
Since it is a user parameter I thought it would be in the "Other" folder but it isn't. I do however have the other multi-value user number parameter in that folder, which makes me think that maybe I can't use the paramter in the iParts table?
INV 2012 SP1
Windows 7 64 Bit
ATI FirePro V5800
14.0 GB RAM
View 9 Replies
View Related
Oct 11, 2012
I have created various symbols to be placed into drawings when required, rather than having to re-create the same sketch every time the drawing is produced.
When I place the symbol I am given the option to select where to insert it, based on the insertion point. The problem is... once the symbol is placed there is no way (that I can figure out) to constrain to the view or dimension to it.
View 8 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
Jun 28, 2012
After saving a part from libary as 'user-defined' to edit it, it still appears with the symbol for 'standard part' (blue T): Means I cannot move it around to sort the parts in the 'tree' or from a folder to another and so on.
Open the part and it has a normal component part symbol. But still not in the assembly. I sometimes cannot change properties in the parts list. The name is different from the name in the folder (pictures).
Second thing: Using 'copy' to copy a assembly into a new folder, the user-defined part still behaves like a standard part and will not be copied as a normal part. - Not exactly what I need, when I make a part 'user defined'...
View 2 Replies
View Related
Sep 9, 2012
I'd like to drive the position of workpoints by coordinate values defined in Excel. Inventor allows me to initially create them using values from a linked spreadsheet, however the positions do not change when the spreadsheet is updated. Is there another technique that could do this?
View 1 Replies
View Related
Apr 1, 2013
I have a need to send files saved from Inventor.dwg to AutoCAD.dwg to suppliers, however due to the quantity of files "size", I need to purge them in Autocad before I e-mail. The problem I have is that my template Inventor.dwg is 1 mg due to Sketch Symbols, plus added file size for the views etc. When I get to Autocad to purge them, my Sketch Symbols and Title Block is on the "0" Layer. I have to select everything that is on the "0" Layer and change the layer to a different layer to start a LISP routine that does a, Erase All, Purge All, to get my file size down. I have not found a way to change the layer that Sketch Symbols are created on or reside on by default or Title Block either.
Any way to do this Inside the Sketch Symbols, inside the Title Block, using the styles, anything?
I am just now going through a iLogic course and read that Layers can be hidden. Can iLogic be used to change the layer of "SketchSymbols" or "TitleBlocks" and or used to purge all Sketch Symbols during the SaveAs to Autocad.dwg process?
View 3 Replies
View Related
Jul 23, 2013
Civil 3D 2014.I want to attach attribute information and/or metadata to my array. Is this possible?
If it is possible, I would also like to be able to explode my array and have my array items acquire the attribute information for exporting later. Can this be done as well?
View 1 Replies
View Related
Aug 9, 2012
I'm wondering how to create huge arrays in the best way. I have a circle and want it thousands of columns and tens of thousands of rows. Anytime I start to make this AutoCAD gets extremely slow and I was told that turning some into blocks would be best.
View 2 Replies
View Related
Jun 10, 2013
I am currently drawing a lithography mask in Autocad 2013 student version, where I created a lot of arrays. My problem is that I can't seem to align these structures. Some of them need to be aligned along the y-axis and some along the x-axis.
View 5 Replies
View Related
Aug 22, 2012
I have been attempting to pass a string array contained in a variant to the AutoCAD method AcadPlot.SetLayoutsToPlot. I am using late binding without a Interop assembly because we have several versions of AutoCAD in this company and I would like to support all of them from the same code base.The method wants a variant that contains a string array passed byref. The Microsoft documentation on COM interop from VB.NET makes it sound like the compiler will marshal it correctly by default, but it always throws a COMException (Exception from HRESULT: 0x80070057 (E_INVALIDARG)).
The stack trace shows it is trying to anyway:
StackTrace:
at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
But no matter how I code it I cannot get this variant array passed to AutoCAD.I have tried:
Imports System.Runtime.InteropServices
' VB default marshalling
Dim layoutarr = New Object() {"Layout1"}
doc.Plot.SetLayoutsToPlot(layoutarr)
' using a VariantWrapper
Dim layoutarr = New Object() {"Layout1"}
Dim wrapper As New System.Runtime.InteropServices.VariantWrapper(layoutarr)
doc.Plot.SetLayoutsToPlot(wrapper)
[code]...
As intensively as AutoCAD ActiveX uses variant arrays, I know this problem is going to come up again and again for me as I try to migrate code over to .NET.
View 5 Replies
View Related
Aug 8, 2012
I am trying to make a huge array of circles (4000 x 12000 or so). I work in microfabrication and need this to make a mask for lithography of a membrane. What is the best practice to minimize the memory usage? I.e. arrays, blocks, groups? I tried making an array of circles one row and 4000 columns then making that a block. Then repeating that block down for multiple rows, maybe 100, then making that a block. Repeating this until I have thousands of them. Is this the best way? It bogs down and gets incredible slow which I am hoping to avoid. I realize that it is inevitable that it will get slow with these huge numbers.
View 1 Replies
View Related
Apr 14, 2012
In IV 2011 can text be word wrapped in the defined text area.
View 2 Replies
View Related
May 2, 2013
I am working on an assembly that is designed around a box (bounding box) that could change size. I modeled the bounding box and placed it in a new assembly file. All other parts have been created within the assembly by referencing that bounding box with starting work plane and project geometry.
The problem comes in when I change the bounding box dimensions. The work planes for each additional part, which were defined by the faces of the bounding box, do not move when the sides move. Also, my projected geometry is not updating correctly. This is a simple box, with all 90° corners. So, all associated parts (at this point) are just rectangles.
View 4 Replies
View Related
Jul 30, 2013
I'm working on a script with an UI element. I want all values of the 2. cloumn (Rasterkeilfarbe) returned in one array and all values of the 3. column (Klischeenr.) returned in another arry.
var farben = ["black", "red", "blue", "green", "bla", "blupp"]
var myName = myInput (farben);
// rest of the script
[Code]....
View 5 Replies
View Related
Nov 5, 2013
I'm trying to use iLogic Design Copy to copy an assembly and all its associated parts to another directory. The assembly contains content center parts. Inventor warns me that the destination file of one of the CC parts (and 18 others) will be overwritten. When I go ahead and copy anyway, the copying process stops at that specific CC part. The Design Copy Progress dialog box states there is an error copying that CC part. When I close the Design Copy Progress dialog box, Inventor crashes.
The error copying the CC part: I'm allowed to use content center parts in iLogic Design Copied stuff, right? I searched some related topics and I'm under the impression that Inventor keeps the CC parts in its own directory and shouldn't be trying to overwrite them.
View 3 Replies
View Related