AutoCAD .NET :: Change The Value Of User Variables In 2010?
Jan 30, 2013
Parametric Drawing about .net API。
I define a user Variables in autocad2010(such as variableaa=10),I want to use the variable to drive the dimension of a line。
Now I want to change the value of variableaa through .net API,can you tell me how to change the value of variableaa through .net API? can you tell me the code?
I want to change the value of user1 through .net API(user1 is a User Variables),my purpose is to change the length of the line.could you tell me the code?
When I create a new dwg, I use a macro to set all the system variables in the drawing - ltscale, hatch scale, etc. I also use the setq function and define a few new "variables" in the drawing. For instance I use setq to define a variable I call "sf" and set it equal to 72. Everything works great and I do my work and close the drawing. Next time I open the drawing, all my custom variables no longer exist. I have to use redefine them all over again. Is there a way to get these custom variables that I create with setq to stick with the drawing permanently - so I do not have to redefine them every time I close/open the drawing?
Is there a way to set up a custom Point Label Style that will change the text color if the information entered meets particular criteria? I will be entering sample measurements taken on two (2) different dates, but if the sample data is greater than 1.0, I want it to show up a different color.
I had an engineer use another engineer's desktop computer for a week. When the orginal Engineer came back to work and started trying to use AutoCAD 2010 it now wants to write to the second engineers Windows profile.
My preferred method of utilizing commands such as move, copy group etc. is to select the entities to be moved, copied or grouped then select the appropriate tool and proceed. Recently my computer has decided it wants me to select the appropriate tool prior to selecting the entities to be manipulated. I can not figure out how to get this program to return to the method I am most accustomed to??
How to switch from the Ribbon interface to the Classic interface in inventor 2012? It is not in the same place as in inventor 2011. This ribbon interface just don't do it for me.
I am not an AutoCad user but I've got an assignment that would go better if I understood a little bit about how interior designers choose colors in AutoCad.I know there are the three tabbed choices - ACI, "True Colors" and Books.My top questions are:
1) does the user choose an RGB "working space" like one would do in Photoshop or Illustrator (in other words, decide if they want to work in sRGB or perhaps Adobe RGB or ProPhoto RGB). Or is there just one possible RGB - in which case, I guess it must be sRGB.
2) is the data for making up the ACI know, so that one can translate ACI colors to their RGB equivalents?
3) I now that with the HSL model you are picking %s of hue, saturation, and lightness....but what is setting the parameters for what is possible here? Is the HSL just a picker that is overlayed on RGB?
It relates to machines which often have different users. I can get ACADM2011 to run for that user by editing the registry and importing keys from a good profile then modifying to user the new users credentials. This is Ok for a fudge fix but not suitable as a final solutions as I have to roll out 2011 to another 90 machines.
All users have full admin rights through a group policy so that is not part of the issue.
What I have noticed is that on machine which will work as expected the secondary installer runs in two steps. The first being the AutoCAD Mechanical 2011 install and then the language pack install. On machines which will fail and have the Profile issue only the language pack install runs. Where does ACAD look to check which causes this first install part to be skipped?
I have a user that when he draws the first line he does not see it until the second line or other action is taken. Photoshop is similar to this when drawing lines. Is there a setting to change that in the command line?
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.
When I attempt to change my user variable "xyz", a linear restraint, by 4 or more, I get an error message, "A dependent expression cannot be evaluated. The parameter is used in an expression which results in an invalid value for a dimensional constraint." But I can change the value by increments of two many times and exceed the limit of 4, and not get the error message. What is happening and how do I correct this issue?
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.
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 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.
My working company currently practicing multiple user per pc. The autocad can run smoothly during the 1st time windows user account setup. But later on, after few days it start crash. The app will load and run but just for doing simple thing such draw lines, polilines n such. When i want to access the task panel, it crashed. Same if wan to load application, lisp etc. It only work fine under the user account which it is installed in. My user account have the administrative privilege and i'm running Windows XP platform (x32).
I have a users who cannot change parameter values for iLogic unless user is a local admin on the workstation. This machine has just been upgrade to Inventor 2013.
I recently change the volume of a part thinking that it would change the actually size of it. It didn't effect the size at all and now I don't know what the actual volume of the part is anymore. How do I find out the part's actual volume?
The help file for user-supllied text added to dimensions says, "To add user text above and below the dimension line, use the separator symbol X. Text that precedes this symbol is aligned with and above the dimension line. Text that follows the X symbol is aligned with and below the dimension line."
How do I get the same effect from the dimension Properties Palette later? Would I have to re-create a dimension to do this in another session? I need text below the dimension on a new line, and have not been able to do it using the Suffix field in the Properties. Adding text there only appends it on the same line. (Or, am I missing a trick here?).
We had to migrate from one domain to annother on our network. This meant that each user had to create a new profile.
Before we migrated I tried to back up the user data from the old user but once I am up an running agian all the AutoCad settings are no longer included. I understand you can export those while you are logged in and can see the macros etc. can you simply move the files that store that information (I can still access all the files from that user I just can't login as that user anymore)
I downloaded a model off a website, it is, (excuse my electrical background ignorance) a jumper for terminal blocks.Our electricians use these and cut them down to size as needed.
Is there a way to use iLogic and a form or message box, to prompt upon opening the part as to how many jumpers are needed for the current assembly> It comes stock with 10, but they sometimes only use 2, 3 4 etc. etc..
I didn't model the part, but I can if it will make the rule easier to write.My idea I suppose was to have the part modeled with 2 jumpers and then use ilogic to create more if necessary.
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.
After getting Vault installed on our server and successfully setting up users and connections, I used the Library Transfer Guide to move our Content Center (including custom) to the Vault. I then changed the Inventor Application Options -> Content Center -> Access Options to Autodesk Vault Server.
This seems to have worked, as I can Place from Content Center when in an assembly, and it is pulling standard content as well as our custom files properly from the vault. However, in the instructions that I used for the installlation, it was suggested to stick with a standard folder structure within the Vault, namely two Library Folders named 'Content Center Files' and 'Libraries' and also a regular folder named 'Designs'.
I created those folders prior to transferring the library, as I thought they would be populated with the standard/custom content. This was not the case and I am curious when these folders come into play? *they are empty*
Also, today I will be attempting to 'Check In' a project to the Vault that I recently completed; does this usually maintain structural relationships between files?
Would you recommend using a single project structure in vault for two people? It seems, since we won't be working on the same project at the same time, having a single project would not be relavant to our situation..
i have tons of column tags but wants to change the distance between column size and the circle and make the font smaller. I can do this individually but can't do one by one..... is there any way i can adjust all by one command or one magic touch?