-
Posts
4,207 -
Joined
-
Last visited
-
Days Won
61
Content Type
Profiles
Forums
Events
Posts posted by Cory
-
-
I used to be an expert at AutoCAD but I moved into IT about 20 years ago and I've not used it much since, so my information might be dated.
I put a link in my post. AutoLISP it the automation language in AutoCAD. It was structured to be syntactically like LISP not it's not LISP. AutoLISP exists only in AutoCAD and is akin to VBA for MS Office products. Back in my day and since the beginning of AutoCAD, AutoLISP was the most powerful automation tool in AutoCAD. I think it could do anything. I only wrote a few and had other employees write more complex programs, but it's a wonderful tool and does not use the GUI. It is however syntactically difficult for someone who has never programmed before. However if I had automation to do in AutoCAD and I had a choice to learn MEP or AutoLISP, I'd do AutoLISP.
But if you want to stick with MEP for other reasons, I'm sure it can do what you want. Like RBerg said, ASCII file process is your friend. I think you would start with you would have MEP type the AutoCAD Insert command. I Don't remember being able to specify attributes on insert thought, so I think you would have MEP enter the AutoCAD ATTEdit command with the "last" option for selection. But it's been awhile.
I do have AutoCAD still and MEP. I'm sure I can help you find a way.
-
-
Would deleting the hidden thumbs.db file work?
And if you don't want them, why don't you disable the feature in File Explorer? I think it Folder Options > "Always show icons, never thumbnails" does the trick. But it's been a long time since I messed with it.
-
Direct the console output to a variable and evaluate that variable with an "If" condition. If it's not blank, then show the text box.
-
Just quick off the top of my head, disable and re-enable as needed?
-
I do use error logging. You shoudl be able to see from the logs which macro you have added the Log Errors command to that are reporting problems with your script. To be clear this sounds like a command you added to your macro doing what it's supposed to do. Check out the help section "Log Errors" for this command.
You could also export your macro to text and search for all occurrences of the command. I posted a macro here for that some time ago BTW.
-
In my experience it will only prompt you when your in a command edit dialog. Saving or other operations will not trigger a prompt. Mostly I've seen this when I copy parts of code from another macro, which is another reason why it's a good idea to create many small macros to act as functions or subroutines. Never write the same code twice.
But AFAIK, what you are experiencing is normal and there's no option that will cause the scripting editor to prompt you to declare variables when saving.
-
http://bot.whatismyipaddress.com/
I use this with the "HTTP Get" command in MEP.
-
If you want to get all the text of a PDF, there's ways to do that without highlighting and copying. Do you only want a portion of the text?
Otherwise it's a simple macro. CTRL+C, switch to notepad, CTRL+V.
-
I would evaluate every character. Every character that's not a-z or A-Z in decimal value I store in a new variable else if the preceding character was a space, save it also.
-
Well nothing against ISS as it's hard to describe, but importing a text file might sound like CSV data or something. I'll suggest they change the wording. I think "Import Macro Text File" might be better.
- 1
-
I think it's just Import > Import Text File ...
It's been a decade probably since I've messed with this.
BTW you could also create a macro to modify those lines 🙂
- 1
-
I think you might be able to Export > Output Macro Information, make changes, and import. I would suggest trying one simple macro to see if it works before trying the big one. And back up all your data.
You might also contact ISS support.
Also please report the bug to ISS.
- 1
-
-
Your user would not be able to draw a rectangle on the screen. You could start a macro and get the coordinates. Then pause the macro and prompt them to move to anther location and hit Enter to close the MessageBox and read in the next coordinates.
-
-
I just learned that JavaScript is written in C++.
-
Note that you don't have to use parameters.
BTW Kevin's example on the support page illustrates that only a space shoudl be between the values. I know this is the same in .NET and other languages and programs.
To be clear, if your value was 9 and you used that comma the JScript would receive a parameter "9," (numeral nine and a comma) which can only be used as text. I'm guessing what you did using the Number() function was to create an invalid cast exception. I don't have time to research it now, but what you saw returned "-1.#IND" is an exception code. I found this article for IEEE codes in C++ which look similar. I didn't read it, but it might be a clue for you here.
You should use exception handling in your scripts and macros to avoid exceptions.
- 1
-
You have a comma and space in between the parameters when is should only be a space. This works for me.
- 1
-
I don't know. I would the one using Return would work. I'll try something simple.
Have you checked out the sample on the ISS support page?
-
I am speculating that you can't write to the console and get the value back. You need to use the Return function which terminates the script and writes the value to the console. That's what MEP reads in.
Post an example of a script. Make is super simple and make sure it only contains commands that are needed to demonstrate the problem.
- 1
-
In general, you will be better off learning how to use the keyboard to do things in a web page and use TextType to automate. Each control, including links in a webpage should be a tab-stop. All my later macros before I started writing programs were all based on the number of tabs it takes to get to any control in a web page. I have written hundreds of macros to automate web pages and found the overall effort and lines of code about 10% of that trying to use the mouse. Mouse moves is the road less travelled. And, BTW, that means it's the one you don't want to take 🙂
List boxes you can tab to them then arrow down or start typing to highlight an item.
Do yourself a favor and look up a list of keyboard shortcuts available for your browser and try to use them first.
- 2
-
I'm glad I was able to edify. I hope the rest goes well for you.
-
Excel to Autocad - batch
in Macro Express and Macro Express Pro
Posted
Oh, and export the Excel to a CSV or Tab delimited file. I prefer tabs. Or use MEP to parse the clipboard contents after you copy the range in Excel. In all MS apps, they're tab delimited and easy to spit. I split by lines then split into cells I then add to arrays.