Illustrator SDK :: Prompt User To Select Art?
Feb 21, 2012
Is there a method available to have the plugin pause and wait for a user to click some object, then continue? Or does all user interaction have to happen before/after the plugin is run?
View 2 Replies
ADVERTISEMENT
Oct 5, 2013
Is there a way to allow user to select multiple files inside the file dialog using scripts? So not just something like "*.ai" or "*.eps" but where the user can actually use their shift key to select a batch of files inside the file dialog and then the script would process each one.
View 3 Replies
View Related
May 14, 2012
I have a macro which
1) checks to see if the active document is a drawing
2) Checks that the drawing is of a part
I want to prompt the user to select a view on the drawing, if this is not the first view on then a warning message is displayed.
Then I want to take this active view and change all of the geometry lines and holes EXCEPT for bend lines to a specific layer.
View 4 Replies
View Related
Aug 31, 2012
I'd like my macro to prompt the user to select a pipe network that I will then export to excel. How is this possible to achieve?
Using Building Design Suite Ultimate 2014
View 1 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
Aug 16, 2012
How could I prompt a "two points" line entity from the user?
Something similar to " Editor.GetPoint() " ??
I was trying to use Editor.GetPoint() method two times. But this option does not show the preview of a line.
I also tried a combination of
doc.SendStringToExecute("line ");
db.ObjectAppended += new ObjectEventHandler(LineAppended);
but this option triggers LineAppended event handler as soon as I create the first point of a line. So it does not work.
View 1 Replies
View Related
Jul 25, 2013
I need my users to pick a point p, enter a distance r and a direction v. A new point should be created r units away in vectorial direction. Therefore, the new point is located on an imaginary circle with radius r and center p.
Currently, the user picks the first point and enters a distance. Then, he has to pick another point (Editor.GetPoint with UseBasePoint = true), I calculate the vector between both points, create a new point (with location = BasePoint.location) and translate it d units in vectorial direction. This works of course, but the problem is, that the user doesn't see directly, where his new point is located, since he may pick a point closer to or farther away then r units.
Naively spoken, I want to restrict the line between BasePoint and new point while prompting the user to a fixed length. Native calls to ObjectARX-methods would be also okay.
View 3 Replies
View Related
Mar 25, 2013
I'm building a script that will open a dialog box allowing the user to select a font family from a drop down list (not a list of all of the fonts), and then compare that value against the fonts that are in use, highlighting everything that doesn't match. I have not yet built the dialog, but I've got everything else working as I want except the list of font families.
The following code loops through the list of fonts (only 20 for testing purposes), compares the family name to the previous on the list (error trapped for the first loop), and pushes the family name (if it doesn't match the previous) into an array which will be used in the dialog box. With the two alerts at the bottom (for troubleshooting), I expect the alerts to show the same family name. For the first three fonts they do, but after that the array value is "undefined."
var iCount = 20;
//var iCount = textFonts.length;
var nameHolder = "";
var nameArray = new Array();
[Code]...
Questions:
1) Any speculation on why this behavior is happening (it isn't truetype versus opentype)?
2) Is there a better way to get the list of font families without duplicates??
2) Is an array the best way to populate a dropdown list in a JS dialog box??? [this will be my first dialog with a dropdown, the others have user-typed values]
EDIT: Additional Info
When it reaches the ninth font in the list, the above script starts writing undefined, but when tested manually, as below, it works fine. Hmmm.
alert (textFonts[9].family);
var nameArray = new Array();
nameArray.push(textFonts[9].family);
alert (nameArray[0]);
EDIT: More info
tried replacing nameArray.push(familyName); with nameArray.splice(i,0,familyName); bad behavior remains
View 4 Replies
View Related
Jun 4, 2012
I'm creating a VB.Net routine which will run the REVCLOUD command. In my application I prompt the user to select a single polyline using:
EntRslt = acDoc.Editor.GetEntity(EntOpts)
Then later I run the REVCLOUD command using:
acDoc.SendStringToExecute("_revcloud Object Poly No ", False, False, True)
Where Poly is the polyline I selected earlier. Of course, the line above doesn't work since "Poly" is interpreted as a string. But I would like to figure out how to pass my VB.Net selected Polyline into the REVCLOUD command.
How I might do this? The REVCLOUD command will not accept the "Previous" selection set so setting the Implied Selectoin does not work. If my Polyline was the Last object in the database I could use the "Last" option, but it isn't.
View 7 Replies
View Related
Dec 29, 2013
Closet point? No
Intersection point? No...
This point is a special point, just corner of the PolyLine.I plan to only allow the user to select the red line, then the program loops through all polylines near the red line, and then find that point
View 7 Replies
View Related
Mar 13, 2009
I need to call the .js file through command prompt. And also through programming language like c++, java. This is for "illustrator cs".
View 5 Replies
View Related
Sep 13, 2011
I need a command that will allow the user to select a layout tab. I thought the following would work, but it just ends the LISP program:
(command "layout" "s" pause)
View 9 Replies
View Related
Oct 25, 2011
I am looking for a way where a user is prompted to select a row of blocks and then that row is completely mirrored about the middle of the selection set - such that if the blocks are originally inserted, from left to right "A" "B" C" then after mirroring, we want them t occupy (roughly) the same space in the drawing area as "C" "B" "A".
Then, immediately after mirroring that selection set in place, each individual block that makes up the selection set is mirrored about its insertion point along the x axis..... basically i need to mirror a selection set of a row of blocks so I change their order of occurrence and then mirror each individual block back again to the way it is meant to look.
Is this possible?
View 9 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
Jul 29, 2013
I have various Button macros with the user input select in them, but in 2014 they dont seem to be working anymore.
they worked in 2013.
It just says invalid selection.
example
^C^CSelect;change;p;lt;phantom;;
View 6 Replies
View Related
Oct 9, 2012
When I click the select tool, a brown selection type of rectangle appears in a particular area of the illustration, even though I have not clicked on the illustration yet. I assume it is some type of warning indication, but don't know what. P.S. It is draggable and scaleable - I can move it off the artboard. An example:
View 5 Replies
View Related
Oct 24, 2013
Is it possible to embedd data in a table so that a user can select from a group of data within one cell?
I use this technique quite often in Excel. One cell in a table can have various values: A, B, C, or D. While another cell can have a different set of values to choose from: BLUE, RED, ORANGE, or PURPLE. The user can pull down an arrow (similar to a dynamic block) and choose from a set list of values.
View 2 Replies
View Related
May 7, 2013
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..
Inventor 2011 / Windows 7 Pro SP1 64bit
Dell Precision T3600
Intel Xeon E5-1607 @ 3.00GHz
AMD FirePro V4900
20 GB Ram
View 7 Replies
View Related
Sep 14, 2012
I am using a mac and CS5.5, I just want to know how to delete user defined swatches.
I searched and there are a couple of answers, I followed along but so far none of them worked.
View 4 Replies
View Related
Oct 11, 2011
Is it possible to call an action made by a user, if yes how I can retrieve it (by its name ?) and is it possible to set some arguments of the action ?
View 3 Replies
View Related
Oct 31, 2013
How do i move the user defined swatches in illustrator cs6 to CC
View 1 Replies
View Related
Jul 18, 2013
I made a bunch of custom brushes and created a new brush library for each group in Illustrator 5.5. A couple of libraries are basically dupes and I no longer need them.
Is there a way to delete the "whole" user defined library pallet.
View 4 Replies
View Related
Apr 9, 2009
"Can Illustrator allow the user to control the size of halftone dots?" Just to be clear, for silk screen, the dots must be course. I have read several posts on the subject and still there is no definitive answer. The PPD file has been loaded. The document is a CMYK. In the print menu the separation menu has only very fine settings available (The lowest is 56 lpi/300dpi) which if selected makes very little to no difference in the dot patterns.
Just to reduce confusion, often a silk screen printer will try to get two colors for the price of one. The simplest example would be to get Black & Gray with one screen. If I set the Gray to 50% and the Black to 100%, still no change. If I use spot colors like PMS Cool Gray and Black, no change. Moving the files into Photoshop may work but fundamentally speaking PhotoShop in my opinion is for constant tone images or Photos, and it seems counter productive to add in a extra step (and software) to the work flow.
I like Illustrator and have invested hundreds of hours learning and promoting it's virtues. When I was asked by a local shop how to do this task, I responded,Can I do this or do I need to tell my associate to keep using CorelDraw! 7...
View 37 Replies
View Related
Sep 5, 2013
I upgraded to Illustrator CC and now I can't access my user defined swatch library. It's there, but not highlighted. How to access these, or import from CS6?
View 1 Replies
View Related
Feb 21, 2013
Our macs have 2 accounts on each (2 shifts) and we have installed the new Pantone + colours (336) in the swatches as usual.
Open illustrator and the libraries are there. When I switch to the other user account the libraries are missing in Illustrator. I navigate to the presets/swatches folder and they are installed. All permissions on Read write-everyone but still the second user account cannot see the swatches.
View 1 Replies
View Related
Oct 22, 2013
It's a shame that Illustrator's scripting ability isn't as robust as InDesign's.
I have a script that goes through every path in a file and records all of the colors used in it. The problem is that it stumbles when faced with certain types of "PluginItem"s. I've been able to fix some of it, such as when it comes across a "Compound Shape" (as opposed to a Compound Path or other normal Illustrator object). In such an instance I can select the path, then call a menu command to expand that selection:
if (currentItem.typename == "PluginItem")
{
currentItem.selected = true;
app.executeMenuCommand("expandStyle");
currentItem = app.selection[0];
app.executeMenuCommand("deselectall");
colorsInUse(currentItem);
}
I had to do some scrounging to figure out how to execute that "Expand Appearance" command that is in the "Object" menu in Illustrator. In fact, the only resource I discovered was a list that is partially in Japanese. By the way, that last item in the list is a recursive call to the same function in which this if statement resides.
So, the above code works for "PluginItems" that can be rectified with a call to the "Object -> Expand Appearance" menu item. What about those that don't, such as an enveloped object? With those, I'd normally just run the command above "Expand Appearance", called simply "Expand…" Well, that menu items pops up a dialog which, when the user clicks "OK" on it, will properly expand the enveloped object so that the script can continue reading the paths that made it up and get fill & stroke colors.
I can call this menu item with a simple "app.executeMenuCommand("Expand3");", but my problem is that dialog which appears. I don't want the user to have to click "OK" on it every time it pops up when the script wants to expand that object, but the traditional "app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;" method doesn't work.
Is there any way to expand enveloped items without having a dialog pop up on the user?
View 9 Replies
View Related
Sep 10, 2012
Any script or trick that enables a user to export autocad blocks as a symbol in illustrator?. this would save a great deal of copy paste time. if one changes a symbol say a set of dining tables in illustrator all its instances would change accordingly!!
View 0 Replies
View Related
Apr 20, 2013
I created user defined AI brushes which I can't find to delete within MAC Lion. They are not in Library>Application Support>Adobe, because Adobe Illustrator folder does not exist there. They are not under Users either. Any clues as to were these custom brushes are buried?
View 1 Replies
View Related
Oct 8, 2012
I find the default interface in CS6 difficult to read as the menu/tool labels seem very small to me. I can manipulate via Windows, but then the fonts in the windows of all my other apps are too big.
Is there a way to change the size of the fonts in labels in the user interface within Illustrator itself? I thought there used to be a way in preferences some where, but that was a long time ago - maybe even pre-CS?
View 1 Replies
View Related
May 29, 2012
I created two swatch libraries with the same name which was a mistake and means that i always choose the wrong one.
In trying to figure out where the swatches are I came across a forum post from adobe that mentioned they were in application support in the library.
Well in my case they are not.
When I go to save a new swatch library it shows the path on my mac as...
private/var/root/library/applicationsupport/adobe/adobeillustratorcs6/ en_GB/swatches
But i cannot find a way to access this folder to delet the swatch libraries...
View 1 Replies
View Related
Nov 5, 2013
I have created a swatch panel with my own colours - named "custom 1" in CS6...how to add a new colour to "custom 1" at a later stage? Surely once you create a custom swatch panel, it can have colours added to it?
View 3 Replies
View Related