Illustrator SDK :: Create List Item And SetNotifyProc To A Method?

Mar 25, 2013

I am trying to create list item and SetNotifyProc to a method. In this method, I am trying to get selected list item entry and display the text somewhere else. But AI is crashing when retrieving the entry. What is the proper way to retrieve selected entry?
 
Here is my code
 
void ListItemNotifyProc(ADMItemRef inItem, ADMNotifierRef inNotifier)
{
    IADMList list = sADMItem->GetList(inItem);    //   <-- is this correct?
    IADMEntry entry=list.GetActiveEntry();     //   <-- is this correct?
    ADMUnicode *outStr=new ADMUnicode();
    sADMEntry6->GetTextW(entry, outStr, 5);
}

View 2 Replies


ADVERTISEMENT

Illustrator Scripting :: Simple / Direct Method To Identify Index Of Selected Item In List Box

Jul 16, 2013

I can't seem to figure out a simple/direct method to identify the index of the selected item in a list box.

I feel like I'm missing something, but I can't seem to figure which (if any) property returns an index number if you use it with the .onChange callback for a ListBox.

The following code accomplishes what I need but isn't particularly efficient or elegant and can get muddled if you introduce multiple lists to check.

Any way to duplicate this same behavior with better code
 
var res = "palette {text: 'Example List', properties:{resizeable:true}
pnl: Panel{orientation: 'row',preferredSize: [400,600],
list1: ListBox{preferredSize: [400,550], properties:{multiselect:true,numberOfColumns:2, showHeaders:true,columnTitles: ['List 1', 'Subitem 0']}},
}}"

[Code]...

View 4 Replies View Related

3ds Max :: Shader List (Volume) Duplicates Last Item In List

Nov 4, 2011

I use a setup with Shader List (Volume) with two mists. One regular and one to blur out the horizon. After working on the scene for some time I notice that the shader list now contains eight copies of the last shader. I think I would remember if I did that. So, whats up with the shader list?

View 1 Replies View Related

Illustrator SDK :: How To Create A Shortcut Key For Menu Item

Nov 16, 2012

I have added a Menu Item in File Menu in Adobe Illustrator CS6.
 
Its working greate.
 
But I want to create a Short-Cut Key for it (CTRL+J).
 
I am using  AI CS6 SDK for it.
 
How will it be possible.

View 9 Replies View Related

AutoCAD Civil 3D :: Creating Pay Item List

May 13, 2013

I am having trouble understanding "Exercise 7: Creating a pay item list". How to find video of how this is created, or information to better understand the .csv and .xml utilized by QTO better. I am new to editing any .xml codes.

View 2 Replies View Related

Illustrator SDK :: How To Create List Entries Using ADM

Jul 3, 2013

I want to create list box using ADM.

View 5 Replies View Related

Illustrator :: Create A Bulleted List In CS6?

Mar 28, 2013

I want the bullet to remain with the text like it would in a MS Word bulleted list.

View 2 Replies View Related

Photoshop :: Strange Item In Desktop Dropdown List...

Dec 28, 2008

Since installing CS4, there is a new item in the dropdown list when I
right-click on my desktop

The new item is "Adobe Drive CS4". It has two items showing under it. They
are "Connect to", and "New Project". The "New Project" is greyed out, even
when Photoshop CS4 is running.

View 3 Replies View Related

AutoCAD 2010 :: Using Lisp To Add A String To Each Item In List?

Nov 14, 2013

I have a list ("temp.dwg" "temp2.dwg") and would like to add the string "insert text here" into each item in the list resulting in ("insert text heretemp.dwg" "insert textheretemp2.dwg").  how would i go about doing that using LISP?

View 2 Replies View Related

AutoCAD Inventor :: Item Numbers Blank In Parts List?

Feb 19, 2013

For some reason the item numbers in my parts list are blank. All the other information populates. 

I've gone to the assmebly and varified that the BOM tabs are active and there are numbers in there. 

If I inser the parts list as 'legacy' it works fine. 

I can't use the renumber function, it just makes all theh item number boxes go yellow in the parts list box, 

Inventor 2013. 

View 9 Replies View Related

AutoCAD Inventor :: Parts List Numbering Skip Item 8

Jul 9, 2012

When I created a parts list this morning the list started with item 2 and skipped item 8 as shown below.

why would it do that? I know I can renumber the list, but then when I expand the subassembly to show the subassembly parts, they stay numbered 10.1, 10.2 ect. even though the subassembly has become item 8 with the renumbering. If I expand the subassembly before renumbering, I loose the indented numbering format and simply get numbers 1 to 18. True I could manually renumber all the components, but what would be the reason the parts don't come into the parts list numbered sequentially to start with?

View 4 Replies View Related

AutoCAD Inventor :: Parts List Line Item Visibility?

Sep 13, 2012

Is there an application or document setting that will make the default state of a row in a linked excel file used in a parts list default to "off" (not visble)?

More specifically, make this apply to added rows.

We have finish schedules in excel that everyone links a parts list to whenerver they need to display a finish schedule on the idw. However, when we add rows (new finishes) to the the excel finish schedule, they get displayed on the idw parts list next time the idw updates wether they are needed or not. Our practice is to only show finishes that are used on the drawing - so frequently a large portion of the whole finish schedule needs to be set to "off" or invisible.

View 3 Replies View Related

AutoCAD Inventor :: IDW Part List Item Numbering For IAssemblies

Jan 30, 2013

I have created an iAssembly which contains 4 assembly variations. I now want to create an assembly drawing for these variations.

In this case all my assembly variations will have the same assembly part number as essentially they are all the same assembly except for a few "change over parts".

I intend to have one drawing with multiple sheets. Each sheet will have one variation of the assembly on it with a BOM for that specific variation. The problem I am having though is that the drawing BOM for each variation are linked and as a result each drawing has an inconsistant item numbering (for someone in the workshop who doesnt understand the CAD package and iAssemblies - They ask the question: Why are you skipping item numbers in the BOM's)

Is there any way I can get each BOM to show the item numbers sequentially? I tried editing the drawing BOM item number but the problem is that method propogates the item number changes to all the other BOM's as well.... (It is also tedious AND in my opinion it is generally bad practice to edit the BOM at the drawing level)

View 1 Replies View Related

AutoCAD Inventor :: BOM Renumbering And Part List Sort By Item (iLogic)

May 15, 2013

i = MessageBox.Show("Do you wish to Renumber & Sort BOM?", "My iLogic Dialog", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1) If i = vbyes ThenTrace.WriteLine ("INV - Transfer; User Selection; Do you wish to Renumber & Sort BOM? - YES")'Renumbers & Sort BOMoPartsList1.Renumber oPartsList1.SaveItemOverridesToBOMoPartsList1.Sort("ITEM") Trace.WriteLine ("INV-ExternalRule - Renumber & Sort BOM#")Else if i = vbno Trace.WriteLine ("INV - Transfer; User Selection; Do you wish to change Renumber & Sort BOM? - NO")End if

what i want to do, is renumber the BOM by (001) then go to part list and sort by item.

View 9 Replies View Related

AutoCAD Inventor :: Add Item To Multi-Value-List Of User Parameter (2012 API)

Jan 3, 2014

IV2012 API with VB:

How can i add an item to a Multi-Value-List of an existing User Parameter in Inventor2012 (Accessing API with Visual Basic) ?

My idea is for example:

uParams.Item(i).ExpressionList.AddItem(As String)

The problem is, that such a function "AddItem" doesn't exist.

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Add String To Each Item In List Using Lisp

Nov 14, 2013

I have a list ("temp.dwg" "temp2.dwg") and would like to add the string "insert text here" into each item in the list resulting in ("insert text heretemp.dwg" "insert textheretemp2.dwg").  how would i go about doing that using LISP?

View 2 Replies View Related

AutoCAD Civil 3D :: Create Polyline From Figure Using BaseCurve Method

Nov 18, 2013

[URL]

You said that there is no need to flatten, but each method I have tried does not produce a polyline with curves.

I tried:

survfig.BaseCurve
survfig.BaseCurve.GetProjectedCurve
survig.BaseCurve.GetOrthoprojectedCurve

If if manually flatten the figure using a dummy suface with the AeccFeatureElevsFromSurf command, the polyline derived from survfig.BaseCurve will then have actual arc segments.

Is there another method or a way to flatten the figure programatically first?

View 8 Replies View Related

AutoCAD Inventor :: Templates Not Used Depending On Method Used To Create New Part File?

Feb 19, 2013

I have found that if I use the drop-down to select a new part file, it does not use the default (and only) part template in my templates folder.  I know this as there are several settings that do not match.  If I click on the icon to open the new part dialog, it displays my templates (part, assy & drw) and creates the new file based on those accordingly.

Any setting that needs to be changed to correct this behavior?

View 3 Replies View Related

AutoCAD Civil 3D :: 2013 - Create A Quick Profile Using Points Method?

Jun 1, 2012

create a quick profile using the Points method?

When I am asked for the Profile Origin the cursor is like a standard Windows Arrow pointer and won't let me select a point for the origin.If I use a polyline for the quick profile all works as expected...

IDSP Premium 2014 (mainly Civil 3D 2014 UKIE SP1 & Infraworks with some limited 3ds Max Design)
Win 7 Pro x64, 256Gb SSD, 300Gb 15,000 rpm HDD
16Gb Ram Intel Xeon CPU E5-1607 0 @ 3.00GHz (4 CPUs), ~3.0GHz
NVIDIA Quadro 4000, Dual 27" Monitor, Dell T3600

View 4 Replies View Related

AutoCAD Civil 3D :: Create Reference Text To Sub Item Of An Object

Oct 18, 2012

Using C3d 2013. I am looking for a way to place the deflection angle of the PI of an Alignment in the label of a structure part that references said alignment.  But PIs aren't an option when I select Reference Text type.  Common sense tells me it would be under Alignments, but none of the PI data is an option of the Contents' Text Component Editor.  I couldn't find it under any of the other Reference Text types either.  I can pull the station value from the referenced alignment, is there a way to get it to tell me the deflection angle at the PI it sits on?  Or even the difference in the instantaneous direction just before and just after the part?

I know listing the deflection angle of a PI is possible, as I have seen it in several examples of labeling alignments.  I just want to place it in the label of other objects.who can tell me how to display LT (to represent left) and RT (to represent right) when the deflection is positive or negative respectively.

View 7 Replies View Related

Illustrator :: Correct Method To Add A Pantone Swatch?

Sep 13, 2012

My workplace works with both Digital and Print work and I wanted to know if how we're adding Pantone swatches is correct.
 
I'm using CS6 and I open the Pantone+ Swatchbook and add the Swatch from there. The Swatch is in the LAB Colour mode and I have "Use Lab values..." selected in the Spot Color Options Dialog.
 
My colleague, using CS5, opens her Swatches panel and selects New Swatch > inputs the CMYK Colour values from the Pantone+ printed book > selects Spot Color from the drop-down.
 
We're both working on the same documents, so when I open up her file, her colours look off to me. Specifically, Pantone 497 C - my brown is looking a red compared to her brown which is darker. When I open up my Swatch and change my Colour mode to CMYK, the values are completely different.
 
We'd like to understand which one of us is doing it wrong and which way we should go to streamline the colours to ensure that we're using the correct Pantone?

View 2 Replies View Related

Illustrator :: Relink Images Using Replace() String Method?

Oct 23, 2012

I have a script using the dynamic content plugin from illustrator which takes and XML file and replaces it with a new one. All linked text/symbol/image links have their paths updated or text content updated.
 
The problem I have is I have background images which are not dynamic so I need to relink these based on their file path.
 
We have two shares, an OPI & an FPO, because of the size of backgrounf images we keep the FPO links in whilst artworking.
 
What I'd like to do is relink all images if they contain FPO in their file path, I'm in CS5.1. I had a look and found CS6 has a .relink method but obviosuly this is no use to me in CS5.1

View 4 Replies View Related

Illustrator :: Any Script / Method To Deselect Random Amount Of Objects Among Them?

Jan 17, 2013

What I want is this:

1)While selecting multiple objects,
2)a certain script is run. it has an option to input the range of the number of objects that are going to be deselected.
3)The number within the range I inputted is chosen, and the same number of objects are deselected randomly.
 
Is there any script similar to this?

View 2 Replies View Related

Illustrator Scripting :: CS6 PlacedItems Relink Method - Sometimes Producing Error

Mar 21, 2014

I am creating a script on illustrator CS6 that will loop through all the images and relink these images to there current location, it is used to update all of the links in the file. However sometimes when i run this script i will get the error 376('x ') i have searched for the meaning of this and cannot find it anywhere. It is being written in extendscript, the code i am using is shown below:
 
// execute the main function
main();
// Construct the main function
function main() {
        var retVal = "OK";
[code]....       

View 2 Replies View Related

Illustrator :: Quick Method For Turning 13 Page AI File Into 13 Separate AI Files

Jun 8, 2012

Is there a quick method for turning a 13 page Ai file into 13 separate Ai files? I need to resave or RIP them as normalized PDF files, and I need to start with single-page ai files.

View 7 Replies View Related

Illustrator :: Preferred Method For Repetitive Objects (linked Files Vs Symbols)?

Feb 20, 2013

When memory errors are occuring, which is the preferred method for repetitive objects: placing linked images or placing symbol instances? I'm using Windows XP and Illustrator CS5. I'm considering whether to create symbols for several of the often recurring placed images.

View 5 Replies View Related

Illustrator Scripting :: Is It Possible To Access And Run A Menu Item

Feb 6, 2013

When writting scripts to Photoshop I can use the app.runMenuItem() method to acess commands in the menus. For example: app.runMenuItem (charIDToTypeID("ZoomIn")) will run the Zoom In command.
 
Does Illustrator have any such method (or accepts anything like action description) to enable us to acess it´s menu items? For example acess Expand comnand, or Object > Live Paint > Make..

View 2 Replies View Related

Illustrator Scripting :: Page Item Name Property In UI

Jan 14, 2013

Does name property of a page item appear anywhere in the user interface in Illustratpr CS6? I thought it would be the name you assign to it in the Layers palette, but it does not appear to be.

View 2 Replies View Related

Illustrator SDK :: How To Find That Art Item Has Spot Color

Jul 4, 2012

I have a number of art items on a document, some of them are filled with spot colors and some of them are with process color.Is there any api or method by which I can find out which color type(spot or process) is applied to the selected art item?

View 4 Replies View Related

Illustrator :: Installed Scripts Not Showing Under Menu Item

Sep 30, 2009

I have been going crazy trying to get my custom scripts to appear in the "Scripts" menu item under "File" in Illustrator CS4. I've tried placing them in Presets > Scripts, I've tried creating a folder under "Plug-Ins" called "Scripts" and placing them there, and several other places in an attempt to find anything that will work, but so far nothing has. I've also tried deleting the Illustrator Prefs but that didn't work.

View 11 Replies View Related

Illustrator Scripting :: Move Anchor On Path Item

Jun 21, 2013

All I am trying to do is move an anchor from one location to another using vbscript.  I have searched everywhere and scoured the scripting references but I have not been able to figure this out as of yet.
 
I am able to select anchor points without an issue....moving those points seems to be a problem. 

View 5 Replies View Related







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