Illustrator Scripting :: Finalizing Code According To Conditional?

Nov 11, 2013

I have this code and would like to finish it according to parole but do not know the command to do it.
 
var docRef = activeDocument;
var selectedItems = app.docRef.selection;
if (selectedItems.lenght < 1) {
alert("No object is selected.")
}

View 3 Replies


ADVERTISEMENT

AutoCAD Civil 3D :: Conditional Point / Link Code In Subassembly Composer

Jan 10, 2013

it is possible to define point/link codes using some conditional expressions. When I try to write in an expression under "Link Codes" I get an error. Is there a way to create conditional codes without the use of "decisions"?

View 1 Replies View Related

Photoshop :: Finalizing Billboard - Saving On EPS And Then Convert To PDF?

Jul 31, 2013

I am working on a project, and heard that the advertising agencies, they save the project. Then convert eps to pdf with acrobat distiller, which it puzzled me is that the file is small, with high quality, I received a file and saw those who use the minimum proportion of 48X16 cm for billboard,

my question is how to configure the output in photoshop eps and how to configure the output in pro pdf distiller, to get a high quality file for printing presses.

View 3 Replies View Related

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

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

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

Illustrator :: CS4 Will Not Open -  Error Code 148:3

Aug 27, 2013

Illustrator CS4 will not open  Error Code 148:3 

View 2 Replies View Related

Illustrator :: Redemption Code Frozen

Feb 21, 2014

What can I do if I am unable to retreive my Serial Number?  I've entered my redemption code, clicked "Redeem", and NOTHING!  It does nothing.  I've triple checked the number.  It's right.  It's just not submitting it. 

View 1 Replies View Related

Illustrator :: How To Copy Hex Code Or RGB Values

May 17, 2012

Is it possible to Copy the Hex Code or RGB Values out of Illustrator to the Clipboard?
 
In Photoshop this is done by selecting the Eyedropper tool and then Right /CTRL clicking to bring up the context menu - is the similar way in Illustrator?  I can't find one

View 4 Replies View Related

Illustrator :: Convert YS Color Code To Either CMYK Or RGB

Apr 19, 2013

I need to find a way to convert YS color code to either CMYK or RGB (doesn't matter which).

View 1 Replies View Related

Illustrator :: How To Copy Bitmap Object Instead Of SVG Code

Sep 9, 2013

I used to copy vectors from illustrator to softwares like Axure, with cmd+c and cmd+v. It worked pretty well until CC.

Illustrator CC only copies vectors as SVG objects. So when you're in Axure, it copies the SVG code and not the bitmap object !! I understand the need for such a thing in HTML (even if I doubt that it will be often used), but I didn't find any turnaround to be able to copy this vector inside Axure, which is, in my opinion, the biggest use of the copy feature from illustrator to any other software (like Word for example, which also copies the SVG code and not the bitmap object)....
 
Is there a way to copy the bitmap object instead of the SVG code ?

View 13 Replies View Related

Illustrator :: How To Convert Artwork From CMYK To Pantone Code

Dec 25, 2012

Currently, i receive artwork in CMYK but i need to resubmit to painter using Pantone.? i have installed Illustrator CS6 recently and not familar with the software.

View 4 Replies View Related

Paint.NET :: Conditional Hue And Saturation

Aug 1, 2011

My friend is restoring this car and wants to see how it looks with a black body and red roof and rims but cant seem to change the white to red or the blue to black is this a limitation of the plug in.

View 1 Replies View Related

Lightroom :: How To Use Conditional Branching

Jan 31, 2013

how to embed hyperlinks or other ways to use conditional branching in a Lightroom slideshow?  I have Lightroom 4.3 and do not see anyway to use this method.  PowerPoint allows embedding hyperlinks in slides that take you to another set of slides that can expand on the slide in the main slide show.  I would like to use this for a rather extensive picture slide show.

View 3 Replies View Related

AutoCAD Architecture :: Conditional Space Name

Feb 3, 2011

Up until now, we have been entering room names for scheduling manually.  I would like to be able to create a psd, whereby the room name is the space style name - *UNLESS* - a value has been entered in any of the manual room name properties.  I am sure I can do this with a formula property but I am having trouble wrapping my head around it.

I have 3 manual property definitions in my PSD: (the names corelate to the position in the room tag)

Name_Manual_Top
Name_Manual_Mid
Name_Manual

Additionally I have one which concentates these 3 for the schedules:

Name_Manual_Sched

So I need something that says:

*if* NAME_MANUAL_TOP *or* NAME_MANUAL_MID *or* NAME_MANUAL *=nil*, *then* NAME_MANUAL *and* NAME_MANUAL_SCHEDULE = SPACETYLE *else*      this is where I am having trouble - the else is that I want it to act like it always does - if there is data in one of the manual properties

I have done some lisp programming, but not any VBA (but willing to learn)

View 2 Replies View Related

Paint.NET :: Conditional Hue And Saturation Not Showing Up

Jun 28, 2013

I am running windows 7 64 bit & have found it impossible to install the conditional hue/saturation plug in.... [URL] .....  it doesn't accept it at all - everything else i have to make a rainbow.

View 9 Replies View Related

Paint.NET :: Can't Get Conditional Hue / Saturation To Work

Jan 18, 2014

I'm trying to change the color of a model's sweater from pink to blue.  I select the pink range of the color wheel, and then try to change the hue.  But nothing happens.
 
paint.net 3.5.10  windows 7

View 8 Replies View Related

Illustrator :: CMYK Color Code For Default Gradient Metal Copper And Silver

Jun 2, 2012

I did some battery wraps for a company and they are being printed in China.  The background is the default cmyk gradient "copper" and one is "silver" in AI.  They are asking me to provide the Pantone or CMYK color code for these colors.  Since they are a gradient I am not sure what to tell them. 

View 4 Replies View Related

Photoshop :: How To Add Insert Conditional To Actions Palette

Aug 28, 2013

The Actions Palette has several Insert options (Menu Item, Stop, Path) but not "Insert Conditionals" option.  How do I activate the latter option which I thought came built in?

View 7 Replies View Related

Photoshop :: CS6 - Cannot Find Command That Say Conditional Actions?

Nov 13, 2013

I am trying  to make new actions in Photoshop cs6 and I can not find the command that say conditonal actions

View 1 Replies View Related

AutoCAD Civil 3D :: Use Conditional Subassembly For Grading?

Jan 8, 2013

I have an alignment running counter clockwise at the perimeter of a septic bed.  I’m trying to use a conditional subassembly for the grading.From 0’ to 5’ of fill, grade to existing @ 3:1.Greater than 5” of fill, add a wall (no more than 4’ high) and grade to existing @ 3:1.

View 7 Replies View Related

Revit :: Make Conditional Formulas With A Parameter?

Mar 5, 2012

I was wondering if there was a way to make conditional formulas with a parameter?  So I want a parameter called system.  On the pulldown to enter the field under properties.
 
 I want there to be 3 choices (i.e. 1=Air, 2=Water, 3=Gas). 
 
If the user tries to enter any value other than the 3 values specified (whether by typing or pulldown), a message comes up stating they cant do that.  The names for the systems have been simplifed for this example but the spelling is critical to the external database.  I have tried but  but I keep getting the follwoing is not a valid family parameter: X. X because thats the first conditional value. 

View 4 Replies View Related

AutoCAD Civil 3D :: Corridor With Conditional Subassembly?

Apr 2, 2012

I am working on implementing Chad Studer's techniques from his presentation at Autodesk University for corridors with conditional subassemblies at the driveways.  Basically I created a corridor with two driveways for a test run.  When I select the corridor and look at the object viewer, there are several lines going to who knows where at both driveways.  But a look at the properties of the finished grade surface generated doesn't show anything out of the ordinary.  I had the conditional subassembly look for a polyline on layer "driveway."  It appears that there may be a gap in the corridor at each end of the pollyline.  I've attached the drawing file. 

View 6 Replies View Related

AutoCAD Civil 3D :: Cut File Conditional Subassembly

Nov 9, 2012

how can one create the cut file conditional subassembly or the horizontal conditional subassembly using subassembly composer?

Civil 3D 2013
HP Pavilion dv6 cor i7
16GB RAM
windows 8

View 8 Replies View Related

AutoCAD Civil 3D :: Use Conditional Horizontal Target

May 24, 2013

What i want to do is ; i have a corridor with both right/left sides ending with linktosurface with fixed slope.In some sections my existing surface is not wide enough to get intersection with link to surface with fixed slope. So i want to use this "conditional horizontal target " if my surface is not enough wide for intersection then just intersect or go to the edge of my existing surface. But i learned that  surfaces cannot be used as an offset target with that subassembly.

View 9 Replies View Related

AutoCad :: Conditional Text Formatting Depending On Value

Apr 15, 2013

Users of Excel will know that you can ask that software to automatically change the color of text depending on its value.

I wonder is this possible in AutoCAD ( Issue release 13 )

The task I have to process is that I have a survey full of spot levels. It would be great of there was a lisp or script or some other device that would change the colour of the spot levels depending on the numerical value of the number.

E.g. - all values less than 100.00 - turn blue
all values equal to or greater than 100.00 - turn yellow

View 1 Replies View Related

AutoCAD Inventor :: ILogic If / Else If Conditional Suppression And Reposition

Sep 25, 2012

I use a simple If/ElseIf code to suppress / uns uppress  & reposition holes on a plate to ensure the desired number of fixing hole pairs.

The hole positions will change and suppress/unsuppress depending on the value of the Tie Rod Pitch (vertical) and the O/A length of this plate (and pressure inside the radiator but this is sorted in Excel).

For example PitchMax = 500mm, BP_2ndS= 1600mm (plate length)

If  (3 * TieRodPitch_MAX_2ndS ) < BP_2ndS <  (4 * TieRodPitch_MAX_2ndS)  Then
...

For some reason some times the parameters don’t update in the hole and pattern features after running the rule thus they are in the wrong position or not suppressed/unsuppressed. When I rearrange the If/ElseIf codes it may work. All I change is just replace ElseIfs with If-End Ifs  or the other way around...

Which does not make any sense to me, since I change nothing in the parameters or conditions. Is this code structured poorly?

p.s. this is an engine radiator and the number of tie rod pairs depend on the height of the block, pressure inside, width, etc.

The part fie has the code.

View 2 Replies View Related

AutoCAD Civil 3D :: Conditional Horizontal Target - Odd Results?

Dec 10, 2012

In particular, I am attempting the infamous task of creating driveway openings using a horizontal target with my sub-assemblies.  I referred to the AU 2010 video tutorial that gets passed around here on the boards, and for the most part, it works with ONE tiny exception.

Like in the AU video, I set my conditional target to look for a particular layer, and I first attempted the exercise by placing ONE polyline (i.e. driveway opening) on the layer, and set set conditional "found" and "not found" targets to find this pline.  The target found the pline on the layer on the right side of the road where I drew it, and created the opening as hoped, but it created an opening on the LEFT side of the road as well!

What do I have to do to prevent the conditional horizontal targets from ignoring the exact opposite side of the road?  In my assembly, the left conditions are set to LEFT, and the right conditions are set to RIGHT, but when the corridor gets modeled, BOTH sides of the road will show an opening even if there is only one pline drawn.

View 9 Replies View Related

AutoCAD 2010 :: Conditional Layer Lock And Readonly?

Apr 8, 2012

We are using AutoCad 2012. Our company have more than 32 disciplines. For any projects the drawings are prepared with many disciplines. Civil does the civil drawing portions, water does the water pipeline portion, electrical does the electrical cable layout portions etc. etc. Each departments have their own set of layers in the drawing.

Now the problem is civil can accidentally modify the entities of electrical departments / utility departments. Though we lock the other disciplines layers programmetrically, but user can unlock the other disciplines layers easily if he wish to. Can we make those other disciplines layers read only? So that users can draw / modify in his own discipline layers but can not do that in other disciplines layer. But he can refer those layers / copy entities from those layers if he wish to? Some sort of xref type of thing is required, but we can not use xrefs as we work in a single drawing and our custom drawing management system is integrated with this type of file system accross the offices.

View 6 Replies View Related

AutoCAD Civil 3D :: Comparison Point On Conditional Subassemblies

Jul 9, 2013

I need to create a corridor that has this section. So I'm using this assembly:  

on which I put 3 conditional fill subassemblies on point A, one for fill conditions of more than 2 m that would daylight at 2:1 until it reaches 2 m down and then daylights at 1:3 until it reaches the EG. Then I have another for fill conditions of less than 2 m that only daylights at 2:1 to the EG, and the last one is for all cut conditions.

As expected I have the following problem in some stations that have fill conditions on A of less than 2 m but more than 2 m on B:

Is there any way I can make B the comparison point without having the following problem on cut conditions?

Or that I could create an assembly with the condition that when I have a fill of more than 2 m on point B it daylights, from point B, at 1:3; but when B would be on cut conditions it daylights from A?

View 7 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







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