AutoCAD .NET :: Getting User Input Error After Showing A Paletteset
Aug 12, 2011
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 mean
Transaction acTrans = null;
Document acDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
Database acCurDb = acDoc.Database;
acDocLock = acDoc.LockDocument();
using (acDocLock)
[code].........
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.
View 4 Replies
ADVERTISEMENT
Mar 15, 2013
I am UNABLE to follow a tutorial on how to make a repeatable pattern using 'texture transfer' on some fire I want to make into a pattern!!! every time I select the area I want to use and the 'input map' and paste as new image and I tell Resynthesizer to use that image it ALWAYS errors out as "The Input Map Should Be The Same Size As The Input Texture Image" according to the tutorial another person gave me on this forum he said NOTHING about being the same size!!! in fact, his selection was SMALLER than the actual image that he was using Resynthesizer on!!!
View 4 Replies
View Related
Sep 14, 2012
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"? }
Win7 x64 - 16gb ram
i7 3610qm
FirePro M4000
Inventor 2013
ETO 6.1
View 4 Replies
View Related
Jan 3, 2012
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.
View 1 Replies
View Related
Jul 2, 2013
I have a question. I'm using VB.Net 2010 with Autocad2012.
How to make code for promt input user.
Get input points from user and draw circle using VB.Net 2010 with Autocad2012.
View 1 Replies
View Related
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.
View 9 Replies
View Related
Sep 5, 2012
I just need the userinput to be incorporated in the insert command but don't know how to segregate the block name from the block path..
;;;PROMPT USER FOR BLOCK NAME HERE
(setq userinBLKNAME (getstring "
Please type in the block name shown in the allrevblocks - ex: IFCC4:"))
;;;INSERT BLOCK BASED ON BLOCK NAME PROVIDED HERE
(command "-insert" "B:\CAD\REVBLOCKS\IFC\"USERINBLKNAME PAUSE "1" "" "")
View 3 Replies
View Related
Aug 23, 2012
Is there any way to allow user input in an expression for a profile label?
View 5 Replies
View Related
May 7, 2012
I've been trying to append a user input by adding this text "ABC" to the front of it. How can I do that?
(setq NUMX (getstring "
Please specify NUMBER:")); INPUT NUMBER 123 HERE
(SETQ NUMXX (append '(ABC) NUMX))
So that NUMXX now equals ABC123.
View 2 Replies
View Related
Dec 10, 2012
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.
How to wait for user input?
View 9 Replies
View Related
Dec 14, 2013
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?
View 7 Replies
View Related
Jul 30, 2012
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?
View 9 Replies
View Related
Sep 23, 2013
I am trying to locate a .wdp file with minimal user input. this is what I have so far
;All file saved in this folder
(setq filedir "I://PROJECTS//")
;User will put the following in, but there might be a small description after 915-01. That is why I have a wildcard
(setq filename (strcat "915-01*"))
; string together everything
(setq nextlevel (strcat filedir "JOB " filename "*" "//ACAD"))
;; the final path should look something like this:
I://Projects// JOB 915-01(something here... could be anything or nothing)//ACAD//915-01(something else could be here as well).wdp
;set file extension
(setq fileext ".wdp")
; search files
(setq wdp_file (vl-directory-files nextlevel (strcat filename "*" fileext)))
I am confused on where and when I can use wildcards for searching directories.
View 1 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
Jan 30, 2013
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?
View 1 Replies
View Related
Sep 16, 2013
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?
View 9 Replies
View Related
Apr 7, 2006
I am starting a website from a template.
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.
View 4 Replies
View Related
Jun 23, 2007
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?
View 4 Replies
View Related
Feb 14, 2004
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,
View 6 Replies
View Related
Jun 8, 2011
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.
View 9 Replies
View Related
Oct 3, 2013
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]...
View 1 Replies
View Related
Apr 2, 2013
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.
View 1 Replies
View Related
Sep 18, 2013
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?
View 1 Replies
View Related
Jul 5, 2011
We are using 64bit Windows 7 & Inventor 2012. We got the drawing tools to show up correctly on one machine, but can't get them to show up as an add-in on a second machine. We've uninstalled & re-installed the tools. registarted the tools many times. Nothing seems to be working.
View 9 Replies
View Related
Jan 19, 2014
My Inputs tab dont show up when I create a polygon, so i can't edit subdivs? Happens when i try to add subdivs to a newly made polygon primitive.
View 1 Replies
View Related
Aug 23, 2011
I am getting a Error with this
Autodesk.AutoCAD.ApplicationServices.Application.SetSystemVariable("DIMSCALE", 12.0);
I am getting a "eInvalidInput" error.
View 3 Replies
View Related
Jun 11, 2013
"Unknown value "AC1027" encountered in drawing version.Invalid or incomplete DXF input -- drawing discarded. Press Enter to continue." (then the file disappears)
MY workflow:I am opening up DXF files created by me with RASPLOT 2.5 and RASPLOT 3.0 (an Army Corp of Engineers Hyrdraulic model extraction program) I bring the DXFs into AutoCAD for better cleanup of the 2D graph it creates of flood profiles.
OBSERVATIONS:Others in my office have opened the same engineering models in RASPLOT and been able to bring DXFs into AutoCAD 2011/2012 in with no problem. It had worked for me in the past, but I can't recall what happened to all of a sudden make it not work, EVER. My co-workers can work with the RASPLOT DXFs in Windows XP and Windows 7.
ATTEMPTED SOLUTIONS:-I upgraded my RASPLOT version first from 2.5 to 3.0, then upgraded my AutoCAD2011 to 2012. No change.
-If I create the DXF on my computer, then open it remotely from another computer's AutoCAD, I still get the same error message. (My only solution has been to create my DXF by remotely logging into another computer with RASPLOT then it will open in my computer's AutoCAD.)
- I tried changing the .dxf file path to .dwg but that doesn't work.
View 2 Replies
View Related
Aug 10, 2009
I received the drawings with comments from consultant.The cad drawings are infected with stamps.I was ordered to use such drawing to update the routing of the services.When I use DXFOUT to change it to the DXF version 2000.I can't open it the dxf drawing.the error like below when i tried to open the dxf:
Undefined shape 4
Invalid or incomplete DXF input -- drawing discarded.
Press ENTER to continue.
what can i do now?
View 9 Replies
View Related
Jun 18, 2013
In my acaddoc.lsp I have it load an autoload.lsp file that contains many lisp routines (attached). I am getting the "extra right paren on input" error. It appears to error after the third line in the autoload file "san18"....I removed everything after the third line and no error, I put them back and it errors and only loads first three?
I am using Civil 3D 2014 and I have added all neccesary paths to the trusted locations.
View 4 Replies
View Related
Jul 5, 2013
I'm getting this error in the middle of launching Civil 3D2014 x64 hotfix1 from the uncustomized Civil 3D 2014 Imperial icon (see command history):
Loading AEC Base...
Loading AECC Base...
Loading AECC ETransmit...
Loading AEC Base Extended...
Loading AEC Core...
Loading AEC Application...
Loading AEC Project Base...
Loading AEC Base GUI...
Loading AEC Project UI...
Loading AEC Utilities...
Loading AEC Layer Manager...
[code]....
Civil 3D appears to run o.k., no error messages upon opening a drawing...
View 3 Replies
View Related
Jul 17, 2013
I cant find Autodesk.AutoCAD.Windows.PaletteSet as My Program,
im import AutoCAD 2013 x64 Directorys
accoremgd.dll
acdbmgd.dll
as my source.
Program is using c# 4.0
// this is my class source.
using ACAD = Autodesk.AutoCAD.ApplicationServices.Core;
using Autodesk.AutoCAD.Runtime;
View 2 Replies
View Related