I have just really started looking at better ways to create and use dynamic blocks. Is it possible to link one parameter with another and have it adjust that parameter accordingly?
A specific example I would like is that if a block is rotated beyond a certain amount them the text would rotate 180 degrees. So it needs to be like ' IF A=[0,180] THEN B=180, how to implement that though.
I have been playing with look up tables but that doesn't seem to do it. I can't get my head around block property tables yet so maybe that's the key.
I have an elevation drawing of a door that I am going to make parametric so it will update if I change things like top rail width, or stile width.
Along with the door elevation, I also have section drawings of that door. The sections are not parametric, just standard blocks and polylines.
Now, what I'm wanting to know is can I somehow link a value from the parametric block to the value of a dimension on the section drawings so that if I were to stretch the top rail in the section from 4 5/8" to 5", the top rail on the elevation would change with it?
Is it possible to link a parameter value to a function? I want text or attributes to never be "upside down".
If it is rotated with a rotation parameter the text would need to be automatically flipped or rotated if the angle is less than say >3*PI / 4 and < 7*PI/8.
I've got a block with 2 lines of text, the second line being optional. If the second line is omitted, the first line should be moved down, so it's centered.
I can handle the second line being omitted with a visibility parameter. And I can handle the first line being moved down with a move parameter. But how can I link the two?
Ideally, I'd be able to re-use the line 1 attribute and display it in whichever place was correct, but that doesn't seem to be possible.
I am trying to put a URL link to a file in a components instance parameter, to show up in the properties palette, I can put the URL in there, but no link is established. How would I get this to link to the file?
I have user parameters that are no longer needed and are not being used anywhere. They each takes 4-5 seconds to delete, prior to 2012 this would happen instantly.
I got a deadline for my project, but I got a big problem:
"I cannot set the "parameter" for the End Value in Parameter Animate dialog"
For easy understand, let's see a example:
1. I got a part which has two parameters named: "A" and "MaxA" 2. I animate Favorited parameter A. 3. The End Value is MaxA_ (Everything is ok) 4. I finish Studio environment, then I change parameter MaxA_ from 200 mm to 400 mm 5. I turn back to Studio environment, the End Value now is "200 mm" (I want this will be MaxA_, so I can animate the flexible parameter).
show me how to keep the end value will be "MaxA_" after I change parameter?
I'm messing around with tables and data links, practicing. I copied a range of cells in Excel, and did paste special to create a linked table.
Now I can delete the table object, but I cannot delete the link, cannot detach it.
When in Data Manager if I right click on the data link and click delete I get the error message "The data link is being used and cannot be deleted".
I have tried detaching, and the detach does not seem to take.
Now also, the table will not update from the source xls.
Win XP, AcadLT 2011, Office 2010. Using compatible setting for saving spreadsheet, for Office 2007 (not xlsx).
If I create a linked table by starting with the Table icon, choose "from a data link", choose the excel spreadsheet, etc., then I am able to later update the table from the spreadsheet, detach, delete the link, etc. But I can only delete the link if the table is not selected when I open the Data Link Manager.
But the one that was created following the directions from the Autocad video, with the copy, paste special, that link will not detach nor delete.
I am trying to publish to the CC a guide rail. The vendor of the rail gives me the option of entering the desired length of the rail. After that he gives me the option to choose between the length that I entered and a shorter and longer standard length witch can be delivered faster.
I want to do the same thing with my published part, but I cannot make a key parameter to change depending on the entered custom parameter. I want the user to make the next steps when inserting from the CC: 1- select the size of the rail; 2-select the type of the rail; 3- enter the desired length of the rail; 4- choose between the desired length and the 2 recommended lengths (I need these 3 lengths to be shown)
in Inventor 2010 we can save and load iLogic Paremeter with *.xml and just in my opinion we can control parameter using *xml or html. It's right or false?
I need to extrude a simple shape between two planes and then get the length as a parameter. Is there anyway of generating this? All I can find is a parameter for the angle of the extrusion.
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 have generated frame that has 100 members in it. Is there a quicker way of changing G_L unit to a mm so that I don't have to go into all 100 parts to change the custom properties?
Also I do not need unit string to be appear in my BOM.
I set a dimension to a 2dline. The dimension is automatically added to Model Parameters. How can I find , by code, the line which length is driven by the parameter ? Or, starting from the line find the parameter which indicate its length ?
::GetDependents(), nor ::GetDrivenBy(), nor ::GetParent() gives me the answer.
I'm trying to get a parameter value from an Inventor .dwg file, but I keep getting an error saying the file is not found. I use this same code all over the place between different parts but its the first time I'm tried it using a dwg. Can you not access an Inventor .dwg parameters using iLogic .
Sometimes I change the dimensions of a material I use but then I have to open Iproperties and change the description by hand. This can create problems as you can understand especially when I forget to update the Iproperties.
Then I had the thought to automate it. Lets take a steel bar as example. I have thickness and width as parameter, both are exported and available under IProperties/Custom. But they show as 200 mm and 10 mm. I would like to loose the units. I tried also UL but then it reads 200 ul and 10 ul.
What I like to get are just the numbers, no units. I like to use it to create this "steel bar 200x10" where the 200 and the 10 are linked to the Parameter and will change when I change the dimensions av the steel bar.
Is there a way to use the filename to drive the parameters of the file?
Example: I have a cube that is called 4x4x4.ipt its dimensions d0,d1,d2 are 4,4,4 respectively. I want to rename it to 4x4x6.ipt and have the dimensions d0,d1,d2 resize to 4,4,6.
what i have is a section cut that my Mechanical guys use. What i am trying to do is create a dynamic block using the rotate parameter.
Currently i have two rotate parameters. One to rotate the section cut lines around one bit of text. The second parameter is to rotate another bit of text, but this is also selected in the first parameter.
It is almost working... with the exception that when i use the main rotate grip everything rotates around the text i want it to, but the second bit of text rotates 180° the opposite direction.
I've got a custom VBA function that works perfectly when called from a parameter in my part.
However, when in the context of my assembly, there is no error, but the function no longer runs, and the parameter text is red.
Apparently, the function is no longer in context?
I've heard of external rules, but have never implemented one.
Is there a way to declare my function and keep it in context regardless?
Public Function BumpHeight(dblHeight As Double, dblMember As Double) As Double Dim X As Integer X = 2 If dblHeight > dblMember * 2 Then BumpHeight = dblHeight Else BumpHeight = dblMember * X End If BumpHeight = BumpHeight / 2.54 End Function Here is the Parameter:
VBA:BumpHeight(ValanceBackBumpoutHeight;ValanceMemberSize) * 1 in
Update: (problem better defined)
What seems to be happening is that once I insert the part into an assembly, it creates a new blank copy of the parts' modules in VBA and the functions no longer work.
If I go to the VBA editor,
There are now two copies of my part listed in the browser tree, but the new one is blank.
If I paste in my function to the new one, it will work until I return to the parent assembly.
Next time I come back to the part, it will have a new blank set of modules.
This appears to continue indefinitely...
see the attached screenshot.
At this point there are only 2 copies of the DocumentProject. The original still contains my functions, but the new one is blank.
I need these functions to work in order to build my model.
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 got a problem to pass parameter from VB to batch file. My code is below to run the batch file and to pass parameter.
Private Sub Button4_Click(sender As System.Object, e As System.EventArgs) Handles Button4.Click Dim input As String Dim output AsString input = "C:atchFile est.gds" output ="C:atchFile est.dxf" Dim batchFile As String = "C:atchFileLC_gds2dxf.bat" Process.Start(batchFile, input & ""& output) EndSub
With this code the output is like below:
If you look at the screen shot you can find out that input and output variable is passing to one variable LC_gdsin. But I want that output file location will be assigned to LC_dxfout. I tried a lot but could not able to do that.
In my head assembly I have a subassembly that has derived parts from my skeleton. My skeleton (part ending with skt in the picture) is in the subassembly.
In this subassembly I made a view representation: NoSKT..When this is activated the skeleton is hided (see picture).If I now make a pattern of this subassembly in my head assembly with for example a parameter from my embedded excel or a parameter in inventor "quantity = 2" inventor will add 1 element with the same view representation. Still no problem.
The problem is now when I change the parameter. If I change the quantity to for example 3, the view representation of the third element is gone and the skeleton will become visible.I have many parts like this in my head assembly and quite a lot of patterns. Which means a lot of skeletons become visible. Is there a way to stop this from happening?