Illustrator Scripting :: How To Put All Answers In Two Arrays

Jul 30, 2013

I'm working on a script with an UI element. I want all values of the 2. cloumn (Rasterkeilfarbe) returned in one array and all values of the 3. column (Klischeenr.) returned in another arry.
 
var farben = ["black", "red", "blue", "green", "bla", "blupp"]
var myName = myInput (farben);
// rest of the script

[Code]....

View 5 Replies


ADVERTISEMENT

Illustrator Scripting :: How To Automate Importing Variable And Datasets Into Graphs Via Scripting

Dec 18, 2012

I'm try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn't seem to work.  Here is my Script, mostly copied from the example script provided with Illustrator (CS5).  And, this works manually, using the file names in the script, via Load Variable Library
 
    Set appRef = CreateObject(strIllistratorVersion)
   
       'Open the file and import the datasets
        Set docRef = appRef.Open(strTemplate & "200-500.ai")
        'docRef.Datasets.RemoveAll
        docRef.Variables("Yearbook").Delete
 
Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with 'No Datasets in this document'
       
docRef.ImportVariables (strXMLFolder & "Lumber_200-500.xml")
'appRef.DoJavaScript "alert('Template:" & strTemplate & strRange & ".ai  |  XML file:" & strXMLFolder & ""  & objFile.Name & "^')"
        If (appRef.Documents.Count > 0) Then
            Set docRef = appRef.Documents(1)

 [Code]....
 
If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.
 
It's simply not loading.  What do I need to do to get it to load?

View 8 Replies View Related

Edge Animate CC :: Adding Wrong Answers To A Quiz

Mar 17, 2014

I have this code demo for a quiz that I downloaded from a old question answered by redesign. I was wondering how I would add a flase anaswer option. Is it just a case of adding another button?
 
i = 0;
sym.$("btn").click(function(){
i++;

[Code].....

View 2 Replies View Related

Illustrator Scripting :: Access Graph Data Through Scripting DOM?

May 6, 2012

Can you access graph data through the scripting DOM?

View 3 Replies View Related

AutoCAD Inventor :: ILogic Rule Is Returning Answers In Wrong Order Of Magnitude

Feb 14, 2013

I'm attempting to do a simple calc in the iLogic code I'm putting together.

The correct answer for the equation is 155 N But the iLogic code is returning 0.000155 N

View 1 Replies View Related

Illustrator Scripting :: Create Mirror Text And Stroke Text In AI Scripting

Mar 16, 2013

the Script of creating mirror text and stroke text in Adobe illustrator scripting.

View 4 Replies View Related

AutoCAD Inventor :: Mirroring And Arrays

Aug 6, 2012

I am currently looking into mirroring and arrays and i wondered if it is possible to have some kind of adaptive mirroring activated or used.

The aim is as i change the instance which is arrayed or mirrored i want the objects in the array and the mirrored parts changed too.

If it is´not possible just like that i would want to do a macro or i logic form that updates the array or mirror to have matching parts again. 

View 4 Replies View Related

AutoCAD Inventor :: Passing And Using Arrays In ILogic

Jul 14, 2012

I'm working on a small design project and creating a program in Inventor that utilizes a 2D Sketch to calculate the forces in a 2D static Bridge.... Although this is Besides the point.

In order to do what I want, I've found it will be easier to use Arrays. Unfortunately I'm having trouble passing arrays through various functions and setting them to each other.

These errors are constantly popping up 

Rule Compile Errors in Bridge Stress, in Sketch Test Code.ipt

Error on Line 60 : Number of indices is less than the number of dimensions of the indexed array.
Error on Line 63 : Number of indices is less than the number of dimensions of the indexed array.
Error on Line 69 : Number of indices is less than the number of dimensions of the indexed array.
Error on Line 174 : Number of indices is less than the number of dimensions of the indexed array.
Error on Line 308 : Number of indices is less than the number of dimensions of the indexed array.

Attached you'll find the code I'm using.

View 1 Replies View Related

AutoCAD 2013 :: Arrays And Attribute Information

Jul 23, 2013

Civil 3D 2014.I want to attach attribute information and/or metadata to my array. Is this possible?

If it is possible, I would also like to be able to explode my array and have my array items acquire the attribute information for exporting later. Can this be done as well?

View 1 Replies View Related

AutoCAD 2013 :: How To Create Large Arrays

Aug 9, 2012

I'm wondering how to create huge arrays in the best way.  I have a circle and want it thousands of columns and tens of thousands of rows.  Anytime I start to make this AutoCAD gets extremely slow and I was told that turning some into blocks would be best.

View 2 Replies View Related

AutoCAD 2013 :: Aligning Objects / Arrays

Jun 10, 2013

I am currently drawing a lithography mask in Autocad 2013 student version, where I created a lot of arrays. My problem is that I can't seem to align these structures. Some of them need to be aligned along the y-axis and some along the x-axis.

View 5 Replies View Related

AutoCad :: Dynamic Bocks With Chained Arrays?

Apr 8, 2011

I've been trying to figure out if chaining parameters will accomplish what i'm trying to do, which is...

Imagine an elevation of a concrete pier or column showing the horizontal stirrup cage around the vertical reinforcement. If like to be able to use one parameter to control the space between elements (cage c/c) and another to control the total length of the array (height of column or # of cages). Then the actual number of elements would be total length/spacing.

Also, arrays alway seem to have fixed spacing, anyway to make the parameter control the spacing of the array?

View 7 Replies View Related

Photoshop :: How To Make Arrays Or Repeat Objects In Circle

Feb 10, 2012

1 - How to make arrays without copying and pasting? Fig-1
2 - how to create objects repeated in circles? Fig-2

View 6 Replies View Related

AutoCAD Inventor :: Non-Defined (Dynamic) Arrays In ILogic?

May 23, 2012

Is there a way to declare a non-bound array (dynamic array?) in iLogic?

There are examples of set bounds array:

MyDoubleValues = New Double(){1.2,2.2,3.3}

But doing something like:

Dim MyDoubleValues() As Double  ---Or---  MyDoubleValues = New Double()

Results in an error. On the other hand, the following totally works:

Dim MyDoubleValues(1) As Double

Which creates an array with a Ubound of 2

View 1 Replies View Related

Xara :: How To Make Watch Face Patterns And Arrays

Dec 7, 2012

I've just begun using Xara. I've used Corel before but can't see how to make pattern or arrays of objects in Xara. I'm needing to make mask templates for Watch faces, graphics mask for tire graphics etc.

View 4 Replies View Related

AutoCAD Inventor :: Wind Loading On Solar Arrays

Jul 24, 2012

I am into tracking solar array's. So designing for high winds is paramount. I wonder if Inventor will have a package for analysis of wind loads. It is a different kind of FEA. Call it a 3-D distributed load.

View 5 Replies View Related

AutoCAD .NET :: Passing Late-bound Variant Arrays

Aug 22, 2012

I have been attempting to pass a string array contained in a variant to the AutoCAD method AcadPlot.SetLayoutsToPlot.  I am using late binding without a Interop assembly because we have several versions of AutoCAD in this company and I would like to support all of them from the same code base.The method wants a variant that contains a string array passed byref.  The Microsoft documentation on COM interop from VB.NET makes it sound like the compiler will marshal it correctly by default, but it always throws a COMException (Exception from HRESULT: 0x80070057 (E_INVALIDARG)).

The stack trace shows it is trying to anyway:

StackTrace:
       at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn)
       at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)

But no matter how I code it I cannot get this variant array passed to AutoCAD.I have tried:

Imports System.Runtime.InteropServices
' VB default marshalling
Dim layoutarr = New Object() {"Layout1"}
doc.Plot.SetLayoutsToPlot(layoutarr)
' using a VariantWrapper
Dim layoutarr = New Object() {"Layout1"}
Dim wrapper As New System.Runtime.InteropServices.VariantWrapper(layoutarr)
doc.Plot.SetLayoutsToPlot(wrapper)
[code]...

As intensively as AutoCAD ActiveX uses variant arrays, I know this problem is going to come up again and again for me as I try to migrate code over to .NET.

View 5 Replies View Related

AutoCAD 2013 :: Memory Management When Creating Huge Arrays

Aug 8, 2012

I am trying to make a huge array of circles (4000 x 12000 or so).  I work in microfabrication and need this to make a mask for lithography of a membrane.  What is the best practice to minimize the memory usage?  I.e. arrays, blocks, groups?  I tried making an array of circles one row and 4000 columns then making that a block.  Then repeating that block down for multiple rows, maybe 100, then making that a block.  Repeating this until I have thousands of them.  Is this the best way?  It bogs down and gets incredible slow which I am hoping to avoid.  I realize that it is inevitable that it will get slow with these huge numbers.

View 1 Replies View Related

Revit :: Unable To Create Arrays Of Ceiling Light Fixtures

Jul 24, 2012

Having trouble creating arrays of ceiling light fixtures in Revit 2013? It gives me this error message;
 
'Can't place inserts outside of hosts. These elements won't be copied'
 
I've adjusted all manner of settings to make sure the copies don't fall outside the limits of the host ceiling but without success. It only occurs with linear arrays on ceilings not radial arrays for ceilings or linear or radial arrays for walls?

View 9 Replies View Related

AutoCAD Dynamic Blocks :: Create A Block That Polar Arrays Street Lamp

Jan 4, 2008

I am trying to create a block that polar arrays the street lamp, but every time i try i just move the grip for it, is there something i am missing?

View 8 Replies View Related

Illustrator Scripting :: How To Export JPG

Jan 15, 2014

Quite new to Ai's scripting stuff.
 
I'm having a complicate time with Ai's save to jpg options vs artboard sizes and units conversions.
 
Say, i have a doc (from my client), which they inherited and enhanced for 10 years may be.
 
It's "supposed" to be in millimeters, but artboardRect gives me those values :

-0.27880000000005
436.191388980878
646.457
-0.20900000000074
 
which sound like weird points or pixels.
 
I need to export a jpg (or gif, or png), that will be X pixels wide. For the purpose of the test i set it at 1200.
 
var maxLargeurPx = 1200;
 
First thing, getting the artboard's width :
 
largeurArtboard = Math.abs(thisArtboardRect[2]-thisArtboardRect[0]);
// 646.7358
 
Then i try to have a multiply factor to use
 
coefExport = /*Math.round*/ (100 * maxLargeurPx / largeurArtboard);
// 185.54717397738
 
and then set my ExportFile jpg to this value (i can't give it a number)
 
     // exportOptions.horizontalScale = coefExport
 
That's when it's getting fun : my images are 1204 px wide with or without clipping.
 
Of course, i "can't" resize the doc for each export, especially expecting to have dozens of those, with different values, dimensions, etc.

View 5 Replies View Related

Illustrator Scripting :: Converting PDF To PNG?

Jul 27, 2012

I wrote the following AppleScript to open a PDF file and export is as PNG. I am using Illustrator CS5.
 
The export command gets an error: Adobe Illustrator got an error: Can't get current document.
when it encounters the export command.
 
set inputFile to (choose file with prompt "Open PDF file to convert to PNG:") as text
set exportFile to inputFile & ".png"
tell application "Adobe Illustrator"
if not frontmost then activate
open inputFile as alias without dialogs
export current document to exportFile as PNG24 ¬
with options {class:PNG24 export options ¬
, resolution:300 ¬
, matte color:{red:0, green:0, blue:0}}
close current document saving no
end tell

View 5 Replies View Related

Illustrator Scripting :: How To Add PDF On Top Of Existing PDF

Jun 20, 2012

Im trying to add a pdf on top of an existing PDF in illustrator using a script. This is supposed to be done by anyone at my firm so that is why I want it in a script. I also have a lot of other functions that works that will do some other stuff with this document.
 
Created this from the scripting guide but it doesnt work. Im pretty sure its the embedDoc var thats empty and i dont understand why. Im not sure if the File "points" to the directory of the script or the original file but Ive tried both ofcoarse.
 
This is the masterpiece
 
var embedDoc = new File("/temp/testfile1.pdf");
if ( app.documents.length > 0 && embedDoc.exists ) {
var doc = app.activeDocument;
var placed = doc.groupItems.createFromFile( embedDoc );
}else {alert("suck")}

View 4 Replies View Related

Illustrator Scripting :: Get Layers By Name VBA?

Apr 7, 2012

Is it possible to reference layers or groups by their names instead of their index using VBA? If so, what is the sytax? I know you can do it in Extendscript, but I'm not finding info for VBA.

View 7 Replies View Related

Illustrator :: Scripting - How To Remove Swatch In CS5

Oct 10, 2012

Swatches Swatches Read-only. The swatches in this document.
 
Deletes a swatch from the current document
Set appRef = CreateObject("Illustrator.Application")
Set documentSwatches = appRef.ActiveDocument.Swatches
Set swatchToDelete = documentSwatches(5)
swatchToDelete.delete
 
How am I supposed to be able to make changes to the swatches collection - it is read only...
 
Not supprisingly I have failed to implement this in C-sharp

View 5 Replies View Related

Illustrator Scripting :: How To Cancel All Alert At Once

Mar 13, 2014

I am trying to close alert at once but the loop continues the alert, how can I stop the alert at once

var doc = app.activeDocument
var layersToTargetNameArray = ["Background", "Artwork", "diecut", "size", "sign off panel"];
for (var i = 0, il = doc.layers.length; i < il; i++) {
var curLayer = doc.layers[i];

[Code] ......

View 6 Replies View Related

Illustrator Scripting :: How To Replace One Swatch With Another

Feb 11, 2014

Is there anyway in JavaScript to replace one swatch with another?
 
I've seen other posts where similar questions have been asked, but the solution seems to involve iterating over all the pageItems, testing and then changing the fillColor.
 
All I want to do is delete/replace a specific color. Say replace Yellow with Green.
 
Is there a way of doing this without recursing through all of the page items?

View 3 Replies View Related

Illustrator Scripting :: How To Convert EPS File To SVG

Sep 11, 2012

I added CS6 COM reference in my VB.NET application and after that I have the following basic object creation in order to convert a eps file to svg. But for some reason when I create this COM object it is launching the Adobe Illustrator application. Why it is doing like this? It’s a simple COM object why it is interacting with Illustrator Editor?

View 9 Replies View Related

Illustrator Scripting :: How To Script A Tabbed UI

May 26, 2012

Is it possible to script a tabbed ui like this, i can't seem to get it to work,
 
My script for now:
 
#target illustrator
tabbed_ui();
//Functions
function tabbed_ui(){

[Code]....

View 2 Replies View Related

Illustrator Scripting :: How To Loop Through The Artboards

Feb 7, 2012

Is it possible to loop thru the artboards (with Illustrator CS5) and only work with the pageItems on the current iterated artboard?
 
For example, if I have 3 artboards, with 2 textFrames on each artboard.  And I add the textFrames sporadically (I add a TextFrame with contents "Text 1" on artboard 1, then a textFrame with contents "Text 2" on artboard 3, then a textFrame with contents "Text 3" on artboard 1, etc).
 
Artboard 1:
Text 1
Text 3
 
Artboard 2:
Text 4
Text 6
 
Artboard 3:
Text 5
Text 2
 
Is there a way to loop thru these artboards and get the textFrames tied to the appropariate artboard?  So, on the first iteration of the loop, I'm looking at artboard 1 and only looking at "Text 1" and "Text 3", then on the the 2nd iteration I'd be working with artboard 2 and it's textFrames "Text 4" and "Text 6", and so on.
 
If I loop thru only the doc.textFrames, the order would be incorrect, with the way I added each textFrame.  Instead of artboard order, they'd be in this order:
 
Text 1
Text 2
Text 3
Text 4
Text 5
Text 6

View 4 Replies View Related

Illustrator Scripting :: Create CDATA In XML?

Dec 17, 2013

What if for some reason a person wants to actually make an XML file and stick some <![CDATA[]]> in it? I looked through some manuals & OMV fairly quickly to discover no methods for that. Was wondering if there was some technique.And, just as pointed out in the indesign forums, a string of "]]>" makes the script hang up and debugging have to be stopped with the final message "Cannot execute".

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved