AutoCAD 2010 :: Custom User Parameters In Block Are Lost?
Sep 11, 2012
I have created a dynamic scale bar block that a user can edit two custom properties of (Horizontal Scale and Vertical Exaggeration) and the values on the scale bar will self-adjust after a regen. The block works fine if inserted into a drawing as per normal the normal insert method.
However, the issue I am running into is this:
If the block is inserted into a template drawing that contains our standard company titleblock (again this part works fine), and that layout is then imported into a new drawing using the "From Template..." right-click option on the Model/Layout tabs, the block loses the custom user parameters. Editing the block definition shows that the parameters are there, they just no longer have names or default values and do not appear in the properties window when the block is selected.
Trying to edit the user parameter names in the block definition of this imported copy of the block, just results in receiving an error that I'm attempting to use characters that are not alphanumeric.
I've tried this same procedure with 2013 and the issues still occur. I've tried user parameter names that don't have an underscore in them (just in case that was causing the issue), but again no luck.
I've attached a simpler block that recreates the same problem: Tester.dwg - this is the block that can be inserted into a drawing. It contains two user parameters "Tester" and "Tester_2". Inserting this block into a drawing shows the block works correctly (user parameters are editable from the properties window).Testing.dwg - this is a drawing that contains the above block inserted onto Layout 1. If Layout 1 is imported into a new drawing (using the "From Template..." right click option of the model/layout tabs), then the block no longer functions as it should. The two user parameters are no longer visible in the properties window.
I am trying to export a user parameter that is a text string to a custom I property. I am able to export other parameters to custom properties that are numarical values. I export check box is missing on the text user parameter.
Is there a way to create a table to display parametric information -- either Dimensional Constraint Parameters or User Parameters? This can be done with Inventor but I haven't yet found a way to do this in AutoCAD. I've also considered Data Extraction but this doesn't seem to recognize parameters.
Had to get a new hard drive. Using Win XP, LT 2010. Most customization is on server, but I had some tool palettes, and I made one ribbon panel with a few tabs. Old hard drive is still accessible on the computer. Three items I want to copy.
1. Tool palettes - Can I just copy the items from support/icons, and support/palettesinto the same location on the new drive? 2. Will copying the profile.aws to the same location work for the profile? and 3. Where do I copy my custom file for the custom tab & panel?
I am trying to make a dynamic block below. I need the "end" of the line to be "moveable". I've tried the point parameter and the stretch action with no luck.
I have a strange problem with one of our library blocks.
For panel schedules and light fixture schedules, we have DWG block files, and we insert them into our drawings and explode them for editing.
The light fixture schedule loses all of its font attributes when we do this. It looks fine when you insert the block, but once you explode the block all the font information is lost. Interestingly, if you insert the block and go into the block editor, the block editor doesn't show the fonts correctly even though the un-exploded block does show the fonts correctly.
An important detail in all of this is that the panel schedules are just drawings (lines, text, hatches, etc.). The light fixture schedule is a table.
I'll attach some pictures showing what I'm talking about and the DWG block file.
Whenever I add a block property table the window that should be opent doesn't open. The strange thing is that I think it actualy is open but i just don't see it on my screen. The same thing gous for the screen that allows you to ad a parameter to a lookup set. by folowing this link you can see what i mean, it gets interesting after 30 seconds.
[URL]
Is there a variable that decides where on your screen you see these screens?
Is it just me or do the actions associated with parameters disappear on occasion from the block editor? Sometimes a regen will make them reappear, other times not. Closing/opening the block editor is one way to make them visible again (worked a few times at least).
i have a dynamic block that my firm has been using. we're updating our dimstyles - and our new leader is a custom (close to open 30 but with heavy accents).
anyway - i'm a little new and vague as how to change the leader within the dynamic block. i fiddled with it several times - but with no success.
I need to copy about 15 user parameters from 1 part to about 300 others. I used the DA to copy the iproperties but the user parameters are also needed.
Moving right along with my Parametric Block programming tools. I have successfully created several linked parameters with formulas and values, and now I want to be able to show a select few of them in the Properties Palette (NOT Parameters Manager) for the inserted block ref. Taken from Stephen's example, here is my code for creating the AssocVariable (User Parameter)
Public Function AddOrModifyVariable(ByVal varName As String, ByVal varExpression As String, ByVal sourceObjectID As ObjectId, ByVal trans As Transaction) As ObjectId Dim db As Database = sourceObjectID.Database Dim varId As ObjectId = ObjectId.Null Using trans2 As Transaction = trans.TransactionManager.StartTransaction() ' Open the AssocNetwork Dim networkId As ObjectId = AssocNetwork.GetInstanceFromObject(sourceObjectID, True, True, "") Dim network As AssocNetwork = DirectCast(trans2.GetObject(networkId, [code]...
I don't know if I need to create a dynamic block property (or if that can be done), or somehow get this AssocVariable to display on its own.I also noticed that the example for creating a parametric Dimension object, does not set the dimension to the right type of Dynamic dimension. (Play with the Constraint From property in the properties palette, be sure to regen in between).
Is it possible to add a user parameter into a general table in a drawing?
Example:
If I create a multi value text parameter called "Design", and give it two values "open" & "closed". Is there a way to add the chosen value into a general table on the drawing.
We are trying to add reference lines to the idw drawing for a sub-assembly. These lines represent centerlines of parts of the main assembly. The main assembly is not the reference file for the drawing. However, the required dimension setting the centerlines is a User Parameter in the sub-assembly. (The centerlines are represented by work planes in the sub-assembly file). Using iLogic, we were able to populate the User Parameter from the sub-assembly into the idw file. We can see it as a User Parameter in the idw file. However, when we go into sketch mode the User Parameter is not an option. In sketch mode, we pull a dimension between the two centerlines (d4). When you look at the parameters d4 does not exist so we cannot set d4 equal to our User Parameter (and we've looked there are no filters on). We need this dimension to be able to adjust as the length of the sub-assembly adjusts for different cases. Each case is unique and done on a job by job basis.
There are several places in our drawings where being able to place reference lines and set their relationship to the part would be very useful.
1. Why are the User Parameters not available for use in sketch mode on a drawing?
2. Why can the dimension IDs (ex. d4) not be seen by looking at the parameters?
3. alternative way of putting reference lines on a drawing?
I have a large collection of parts that are controlled from an exteranl rule. I need to make slight changes to the external rule, but for the changes to be successful I need two extra user parameters to be added to each of the parts. There are hundreds of parts, so going in and adding the two parameters to each would take days.
Is there a simple way of getting the external rule to add the two parameters?
P.s. My VB skills are pretty limited, but my understanding of iLogic is pretty good.
I have a dblock I built that has quit of few User Parameters. I know I can put the order I want them to display but is there a way to break them up by a blank line, or maybe subtitle a group of user parameters?
When I create blocks and give them dynamic elements, I often define user parameters in the block table. I have noticed that on some drawings when I open them and go to the block editor to edit them, the user parameters have no name, value, or expression and my dynamic will not work.
I have tried renaming them and putting the expression back in from the parameters manager, but it gives me an error message saying invalid parameter name.
I made an assembly that adjusted to sized based on some key parameters. These key parameters are controlled by a form in the main assembly. The keys parameters actually adjust the skeleton file, which then drives the frame, then all the parts are adjusted.
after changing these parameters all necessary parts would adjust to size and keep the location constraints. Worked quite well.
The issue now is that, we adopted a new naming convention and this assembly requires all the part files to be renamed. I meticulously saved each part as their new name and then replaced each component in the main assembly. This worked to an extent. The problem that I am facing is that when I saved each part as there new name, the new part retained the linked parameters to the old part. Is there a way to change this link to the newly name skeleton file?
I looked into design assistant for this process as well, but the only changes I think available were to add a prefix or suffix. If worse comes to worse, I can remodel this project but, I am sure there has to be a way to alter this.
attached is a single part with those parameters in the image above.
I have an IPart with about 100 instances in it that is sheet metal. I created a user parameter for the gauge of the sheet metal relating to the thickness and that works fine in the ipart. My dilema is how to get the gauge to show up in my drawing in the general table. Pretty much I woud like the table to list part number, material and then have a column for the gauge of the steel related to the thickness in the Ipart table. I am using Inventor 2011 if that makes a difference.
I have some parts with varies User Parameters that allow cusomization of part features. With numeric user paremeters we can check the export parameter box and then, in the description of the part we can refrence that parameter. For instance the description could be: =Width <Width>, Height <Height>, etc. Where it would desplay as Discription: width 22in, height 12".
We also have text User parameters. Is there a way to add these parameters to the description as well? They do not have the option of checking the export parameter box in the parameters table.
I need import all new params, rules and forms from a new template to older parts. I'm trying to use an external rule to create a new iproperties and import params from xml file but I can't assign these parameters with these iproperties.
I would like to have a rule that will add specific user parameters to a part file. These parameters need to be formatted so the width, depth and thickness will control the description of the part.
IE:
Width=4
Depth=2
Thickness=3/16
DESCRIPTION = TS <Width>X<Depth>X<Thickness>
I would like to format each parameter so that the:
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.
I want to create a library with several parts that vary only in length, I have been using Iparts with a custom length parameter, but all of the custom files are saved with my project files on my hard drive. I want the files to save to a network drive, but do not want to move my project files. Is there a way to accomplish this in inventor 2011?