AutoCAD .NET :: Make User Parameters Visible
Dec 20, 2010
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).
View 3 Replies
ADVERTISEMENT
Aug 3, 2011
How can you access user-defined parameters/function defined in the Parameters Manager dialog?
View 1 Replies
View Related
Apr 23, 2012
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.
View 2 Replies
View Related
Jul 18, 2005
Is there a way to create user parameter as TEXT Paramters does not accept the text paramaters . we always have tor create parameters as numbers.
View 9 Replies
View Related
Feb 25, 2013
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.
Autodesk Product Design Suite 2013
Win 7 Professional 32bit
Intel(R) Xeon(R) W3565 @ 3.2GHz QC
4.0 GB Ram
1GB Nvidia Quadro 2000
View 1 Replies
View Related
Aug 22, 2011
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?
View 4 Replies
View Related
Apr 10, 2013
I work with Inventor 2011.
It is possible to sort Parameters (user parameters) by code (simulating a click on column header) ?
View 3 Replies
View Related
Jan 26, 2012
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.
View 1 Replies
View Related
Feb 25, 2013
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.
View 2 Replies
View Related
Jul 11, 2013
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?
View 3 Replies
View Related
Jul 29, 2013
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.
View 2 Replies
View Related
Jul 19, 2013
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.
View 2 Replies
View Related
Jul 11, 2012
I have a part with very irregular shape created by projecting geometry of other parts.
I wondered if there is any way of calculating area of this extrusion instead of dimensioning the sketch and creating equasions in user parameters?
View 9 Replies
View Related
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.
View 2 Replies
View Related
May 1, 2013
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.
View 2 Replies
View Related
Dec 8, 2011
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.
View 1 Replies
View Related
Aug 30, 2013
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 attach the code.
View 3 Replies
View Related
May 21, 2012
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:
Format=Fractional
Precision=1/16
Unit string=False
This is what I have so far:
oMyParameter=ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters
oParameter=oMyParameter.AddByExpression("Width", "TOP_RAIL_WIDTH", UnitsTypeEnum.kInchLengthUnits)
oParameter.ExposedAsProperty=True
oParameter.Units="in"
[Code]...
The TOP_RAIL parameters are from a linked file.
View 9 Replies
View Related
Oct 3, 2011
I am looking for an Example of accessing 2011 AutoCad FX Table.
I would like to programmatically read and write dimensional and user parameters.
View 9 Replies
View Related
Nov 21, 2012
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 acomplish this with I-logic?
View 5 Replies
View Related
Dec 17, 2012
Currently using 2012 and I had the same problem in 2010.
When I turn visibility off and on in an assembly, all previously constructed user planes, axis and points become visible.
Is there a fix available to download?
View 7 Replies
View Related
Aug 31, 2011
I want to change 'mutil value select" to "custom value input" in ilogic user parameters. something like this:
if condition A then
multivalue.setlist("length", 1,2,3,4,5)
else
(users can enter any value they want, how can i remove the list first and set it to custom value input?)
View 2 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
Dec 31, 2011
I recently had to reformat a hard drive and reinstall everything.
I have a bunch of custom made symbols that I use often and for some reason, when using the Symbols Manager docker, they are no longer showing up in the Local Symbols>User Symbols folder in that docker as they used to.
The old hard drive had XP Pro on it but this new one has Windows 7 Pro on it. I am aware of the path changes made in Windows 7 and swear I have the custom symbols located in the correct directory.
I am using X4 version 14.0.0.567
I have them placed in the following directory:
C:UsersAdministratorAppDataRoamingCorelCorelDRAW Graphics Suite X4User Symbols
When I attempt to create a new Symbol, it saves the new symbol file in the directory above and when I go to that directory, I can see all of my custom Symbols. They just are not showing up in Draw X4 for some reason even though they are there.
View 1 Replies
View Related
Dec 11, 2012
I load my .cuix file into Autocad 2013 using VB.Net:
Dim mg As ObjectTry mg = Application.MenuGroups.Item(cuiName)Catch ex As System.Exception mg = Application.MenuGroups.Load(cuiFile)End Try
File loading sucsessfuly, but my menu is invisible.
I tried do this, but got an error..
Dim i As Integer For i = 0 To mg.Menus.count - 1 mg.Menus.Item(i).Visible = True Next
How to make menu visible?
View 1 Replies
View Related
Nov 2, 2011
Attached is a test drawing
1. Why does my part not show up behind a surface?
2. What is the minimum dimension to make my part appear?
On the drawing I was working on, the part completly behind a surface was showing up until I rotated the view, then it dissapeared, this behaviour is not present in the test idw, the part doesnt appear at all behind the surface.
View 1 Replies
View Related
Nov 17, 2009
any way to view invisible block attribute? I created a block and the attributes really don't need to be seen in autocad just there for dataextraction and keeping it all in one location i want to go back through and make sure i have information filled in in all the right invisible attributes without having to open each block and check the attributes, but i don't want them permanently visible (i know i can freeze them or put them on a non plot layer but it clutters up the space when there is 20+ attributes to a block)
View 9 Replies
View Related
Jun 30, 2011
I have two object intersect each other ,when i select one of the object the edges that in the intersect part is hidden! how can i make them visible?
I have this problem in autocad 2012, In autocad 2011 there was no problem.
View 9 Replies
View Related
Aug 30, 2012
how can i make new(user defined) line type.
View 3 Replies
View Related
May 8, 2012
I have created a workstation to be used by my cad department, but not able to get it to work. How do I make a multi-user workstation?
View 7 Replies
View Related
May 22, 2011
How to make view cube visible on autocad 2010
View 3 Replies
View Related