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);
}
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
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?
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.
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.
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?
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?
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.
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)
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.
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?
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?
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?
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
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.
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?
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
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.
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]....
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.
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.
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..
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.
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?
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.
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.