AutoCAD .NET :: Imperial Input From User In Foot Inch
Aug 30, 2011
I have a form with some textbox on it, which should be filled in with imperial dimension. Like foot and inch. Users right now complain about it is not user friendly ,to put data in form, and honestly they are right. I didn't a good job .
Some people like to put vetting in inch and then by the time textbox lost it focus it should automatically convert data to feet-inch format. Some other user like to put decimal I have to be able to should them in 1/8 inch.
some user like to use space as separator between foot and inch and some other like to use dash.
Bottom line I stocked. Is there any function for this in autocad ?
when I look at my code I just struggled with pure string. I thought maybe there is something in autocad which give developer this option. Like the way we input dimension in command prompt.
I am creating a block with attributes for a standard job. I have (4) total attributes in this block (for example: panel type, qty, length in imperial, length in mertic)
I would like my length in metric attribute to automatically populate based on the input from length in imperial.
I develop addins for Inventor primarily, so the AutoCAD api is very new to me. I'm working in AutoCAD 2010 and visual studio 2012.
I've looked at many posts for getting block attributes, but they either seem to assume I already have the Blockreference, or they give a prompt to the user. I'm hoping to avoid both of those.
I know the info I need is inside of a blockTable by the name of "DET".
Database acCurDb = openDoc.Database;using (Transaction acTrans = CurDb.TransactionManager.StartTransaction()) { //How can I access the blockreference in here which corresponds to the blockTable "DET"? }
Any way to trap when the user hits the escape key without a user input function. The idea is to loop infinitely and perform some analysis until the user hits the escape key.
I suppose I could do the same thing with a form but I would not.
I have got a problem about getting user input. In a function i am first getting a selection from the user by editor.getselection(...)
then i show a palette set with my user control in the same function. everything is fine so far.
but after showing paletteset i try to get a string from the user by editor.getstring(...) in the same function but statement continues as i never request it. when i check the PromptResult status it is equal to cancel.
i tried to lock the document but it doesnt work either. when i comment out "showpalette(true)" it works correctly. i realized that if my document window s state is not WindowState.Maximized then my code works just fine but if it is WindowState.Maximized it does not work.
I made a toolbar button with the macros @, and tried also @ pause.
I need this in order to shorten the procedure for relative coordinate input, but, after pressing the button the last point is entered and i cannot continue entering values like in the manual input at the command like, like: @5,5
Even if i use the "@ pause " sequence it doesn't work.
I want to write a very simple AutoLISP program to scale selected objects by a factor of (1/25.4). How to I get the program to pause and allow the user to select the base point? I know that "~" will bring up a selection window, but what is the character that will allow point selection (in this context)? While we're at it, what is the operator that would trigger a pause and allow user command line input?
Is there a way to have an alert box pop up at a certain point in the code which gives the user a chance to cancel the LISP program and not proceed any further?
Currently have an iLogic rule in my drawing template that base on user input brings up the Drawing View dialog box (as though you click on base view). I want to know if there is some coding I can do to control or handle what happens if the user clicks the cancel command inside this dialog box. Possibly show a message box. Or even run another rule after the cancel button has been clicked?
I have a list function that asks for the user to pick points when it is run. It looks something like this (foo arg1 arg2) When invoked it asks the user to pick points and press enter when done It.
Instead of getting the points from the user i want to pass it a list of pre-defined points. The code cannot be changed so I must use it as is.Is this possible, if so how can it be done?
The template has two user input box (User and Password). I did all the design modifications to the template, but when I want to save it for web, both user input are only images, and the user can't write anything on it.
I have created a pressure network using 8-inch diameter pipes. How would I change the 8-inch pipes to 6-inch pipes without having to recreate the network.
I'm trying to build an action that makes thumbnails out of images and adds a few effects, but I want it to let me select what area of the image it takes the thumbnail from and making that thumbnail size instead of shrinking the whole thing to 100x100 and losing all the detail. Any suggestions?
I want to create an action that will take individual pictures and put them on a template, and then ask for user input as to the name, year, etc. How do I get a user input box? If i can't get a user input box,
Create a Form that can be sent to a customer as an email attachment. The customer must be able to Save and Open the Form with software that is available on most Windows computers. The customer should then be able to enter the requested information in the Form, Save the Form and then attach it to an email and return it to the sender.
I could achieve the above using MS Word. But it is a real pain to layout a complex Form using Word. I would much prefer to do this using DP6 as it is considerably easier to lay the Form out.
But... I simply cannot see a DP6 Export file-format that I could use to achieve this result.
I have this working without the prompt, if I under manually the margin via var margin = 10; it works. it also seems to return correctly when I print what the input from the user is, but it doesn't seem to want to work and freezes.
it says "point value expected"
//Helper functions function print(i) { if(i == "object"){ print("you are trying to printObject, use printObj(); function"); } else { $.write(i+" [code]...
I'm inquiring whether or not it is possible for Revit ceilings to be customized by the input of a user regarding the shapes and sizes without using a .pat file. Almost like a parametric object with predefined limitations. For example: a rectangular ceiling tile 'x' can be from 6 inches to 10 feet and side 'y' can be from 6 inches to 6 feet. So someone can select the ceiling type and actually input what size 'x' and 'y' they'd like while staying within those limitations.
Is there any way to save colors to the Paint.net Palette, For instance, I have a list of colors made from user input and I want to put the in the palette...any code for that? Is that a valid Urinary Pixel Operation?
Someone would like a small 1 inch by 1 inch logo for invoices at 600 DPI. However I understand that illustrator doesnt work in DPI or PPI since it's vector. Would I have to transfer the small image over to photoshop. I did try and save a 1 inch by 1 inch logo at 600 PPI, however when I saved the image it was no longer 1 inch by 1 inch. It had increased significantly in size regardless of what file format I saved the image as.
If I try to draw a square box in any size, illustator does not make it square.
For example, if I select the Rectangle Tool, click in the art space and set the rectangle to one inch by one inch, I get a box that is 1.0003 by 1.0003
Here is a screen shot of what I am getting.
This is also happening to any rectangle and circle.
Even if I hold down shift to keep the preportions lock, it still happens.
I have check and nothing is snapping or set to snap.
This is a major issue for me as I use illustator for creating dielines and those dielines need to be very accurate.
To convert from imperial to metric multiply the length, in inches, by 25.4 (the number of millimeters per inch).
Example: 3 inches converted to millimeters is 3*25.4 or 76.2mm.
To convert from metric to imperial multiply the length, in millimeters, by 0.03937 (the number of inches in a millimeter). For greater accuracy use 0.03937008.
Example: 100 millimeters converted to inches is 100*0.03937 or 3.937 inches.
My need is to create up to 50 points from the same origin in a three dimensional Cartesian coordinate system but I’d also like to have a labels for each point that show up in the feature tree.
Are there Inventor 2013 plugin (i.e., add-on, 3rd party, AP) to convert a list 3D Cartesian coordinate system locations (i.e., points) to Inventor to work points(x, y, z)?
I found that I cannot create 3D points in the assembly. Is this correct? I did find that an Inventor part may be used to create a 3D sketch that creates points in 3D space. In the past few days, I found two ways to create 3D points within a iPRT; the batch way uses an Excel file but it then does not allow me to name the points in the feature tree. The second way is to create them one at a time but that take way too much time.