Problem creating / accessing the content a document dictionary

I have problems to create and access a document dictionary.

I create a new document by using the NEW item in the menu of the Illustrator.

Then I execute the following code through my plugin. I does not work. Here I a unable to retrieve any value FRO the dictionary. In fact I'm not even sure that I wrote anything in the dictionary.

Is there something wrong in my code?

Thank you.

{

Dictionary AIDictionaryRef = NULL;

Error AIErr = 0;

error = sAIDocument-> GetDictionary (& dictionary);

AIDictKey KEY = sAIDictionary-> Key ('MY_Key');

Dim mykey = "2";

error = 0;

error = sAIDictionary-> SetStringEntry (dictionary, KEY, mykey.c_str ());

Error AIErr = 0;

error = sAIDocument-> GetDictionary (& dictionary);

const char * Namevalue;

error = sAIDictionary-> GetStringEntry (dictionary, KEY & Namevalue);

sAIDictionary-> output (dictionary);

}

If the first error is 1146045247 ('DOC?') and you get a NULL dictionary, nothing still does not work.

Depending on where you run this code (for example, in response to a click of Panel element), Yes, you need to get first the AppContext.

Tags: Illustrator

Similar Questions

  • Impossible to access the contents of a window (PopUp)

    Hello

    I'm trying to access the contents of a MovieClip I placed inside a PopUpWindow component, but cannot figure out how to do this. I've created the window with something like this:
    var SAedit_win:MovieClip = mx.managers.PopUpManager.createPopUp (_root, window, true, {closeButton:true, title: "Arterias Sistemicas", contentPath: "contentSA"});

    With this code, the window IS correctly created and the "contentSA" MovieClip (which is in the library) is properly indicated. However, I wanted to access the objects inside the "contentSA', but I can't find a way to do it. I have already tried:
    -SAedit_win.content (which is read-only...)
    -SAedit_win.contentsPath (which of course did not)
    -SAedit_win.target
    -SAedit_win.contentSA

    Can someone help me with that please?


    Tanks in advance

    JLonardoni

    Well, I give up. I looked everywhere on the net and found out that I'm not the only one. It is a not uncommon problem, but I think he has no answer, because all the forum posts I found unanswered.

    So, I have developed my own window with everything I wanted... It is not very OO, but it does the job.

  • Our AppleTV alcoholic, if we opt for a movie / TV that was bought, we get the notice that it is "impossible to load the content. You need to restart completely to access the content you've purchased.

    We have the AppleTV (4th Gen, 64 GB). Whenever we 'wake up' the AppleTV from sleep, we are unable to access all our content purchased until we start the system. We have never had this problem until a few weeks ago. All software is up-to-date and automatically update, internet is very good, and nothing has changed since we have implemented the AppleTV. Frustrating to not be able to access the content that we have already purchased without jumping through hoops.

    Hello

    I met this time. All I did was to completely close the application TV Shows and reopened. It worked after that without needing a reboot.

  • To access the contents of hard disks T61 without a laptop.

    Hello

    The motherboard of my T61 had spoiled.

    I would like to know if there is a way to access the content of hard drives without another laptop because I don't know what laptop would be compatible and access to one if there is one.

    I read somewhere that I could use a USB OR SATA hard drive enclosure / adapter IDE... but I'm not sure if it is the right and the only options available.

    Please notify.

    Help much appreciated.

    Tormented.

    Swati

    or the other works perfectly, the only drivers will be a problem if you install it as a main player in many a laptop different, in which case some of the laptops hardware may not work until you update the drivers.

  • I can't access the contents of Facebook on my Macbook Air.

    I can access the Facebook site, but there is no content available. The page is not filled. It's just empty! Yesterday Facebook has been for a while, and since she is I can't access the content on my laptop. It is available on my iPad and iPhone.

    Try this:

    1. Open a new url with about: permissions
    2. search for facebook in the list on the left
    3. Click on "forget this site".
    4. Restart Firefox

    He works?

  • When I try to access the content that require Silverlight, I receive a message to install Silverlight, but it is already installed

    When I try to access the content requiring silverlight I receive a message to install silverlight.

    When I try to install silverlight, I get a message that it is already installed. In my view, it is already installed, but not working properly.

    Thank you.

    Original title: silverlight help?

    Hello

    1. have there been recent changes to the system before the show?

    2. when exactly you get this error message?

    3. what Web browser do you use?

    4. do you get this error when you use Internet Explorer?

    Please provide more information on the issue to help you best.

    I also suggest you to post here:

    Silverlight .NET forums
    http://forums.Silverlight.NET/search

  • How do I access the content viewer for preview of the interactive features before you build a custom Viewer?

    Hi there, bit of a newcomer to this, trying to teach some aspects of digital Editions and find my way through. How do I access the content viewer for preview of the interactive features before you build a custom Viewer?

    Download from the Marketplace for your device (iTunes, Google Play, Windows Store).

    You might find our useful post learning resources: https://forums.adobe.com/thread/994742.

    Neil

  • just joined the cloud having problems to access the pro Prime Minister... help me please

    just joined the cloud having problems to access the pro Prime Minister... help me please

    Hi again Jeff... Thank you for the time you took on this

    question... my daughter figured it out and all is well

    Duarte

  • To access the contents of reference in c# PropertyObject fails

    I'm trying to access the dynamic content of a PropertyObject in c# to search its subproperties. I can access the reference object itself, but not its subproperties (dynamic).

    To be more concrete, it is a handler for the UIMessage ModelState_PostProcessingComplete. This means that the context of the sequence is "ModelSupport.seq / done Call USE / lot.

    I'm trying to use the "Parameters.MainSequenceResult" object reference to find the first stage failed and assess the stepname. This information is used to detect errors repeated in a custom user interface.

    Just to test, I tried the same thing directly in this sequence by using expressions, and it works. It seems that the .net code is not able to track the content of an alias.

    This is the c# code I use:

    SequenceContext seqc;
    Search for research results;
    PropertyObject searchStart;
    [...]
    If (seqc. Parameters.Exists ("MainSequenceResult", 0))
    {
    seqc. Parameters.GetPropertyObject ("MainSequenceResult", PropertyOptions.PropOption_NoOptions);

    Search ("",
    "True," //search chain
    SearchOptions.SearchOptions_MatchCase | SearchOptions.SearchOptions_WholeWordOnly, //search options
    SearchFilterOptions.SearchFilterOptions_All, //search options filter
    SearchElements.SearchElement_BooleanValue, //search item type
    limit null, adapters
    New String() {"StepCausedSequenceFailure"}, //limit to named properties
    limit null in the properties of named type
    (null); subproperty to exclude channels

    image search. IsComplete (true, true);
    If (search. NumMatches > = 1).
    {
    This never happens...
    }
    ...
    }

    The code runs without error, but no search results. The equivalent within a TestStand sequence code is the 4 correct search results.

    If I use MainSequenceResult.TS (which exists at run time) I get a parcel COM "Variable or unknown name"TS"property."

    It also works in c# if I use a property not referenced like this:

    searchStart = seqc. Parameters.GetPropertyObject (string. Format ("ModelData.TestSockets [{0}].") (MainSequenceResults.TS", myIndex), PropertyOptions.PropOption_NoOptions);

    But I want to avoid that, because then I need to know which model is used.

    I hope someone can explain to me the difference or what I'm doing wrong...

    I think I solved it:

    After validation, I found a similar problem which seemed to contain the solution:

    https://forums.NI.com/T5/NI-TestStand/how-to-access-to-PropertyObject-throught-two-referenced-object...

    I changed my code to

    searchStart = seqc. Parameters.GetPropertyObject("MainSequenceResult",0). GetValInterface ("", 0) PropertyObject as;

    and it worked!

    Experts: is this the right solution or there at - it an easier way to dereference the object in c# references?

  • COMException (E_FAIL) to access the contents of the library of WinRT apps

    I get a COM (E_FAIL) exception when I run this code base WinRT c# under my Windows user account:

    TextBlock.Text = KnownFolders.PicturesLibrary.DisplayName; This line works OK

    IReadOnlyList fileList = waiting for KnownFolders.PicturesLibrary.GetFilesAsync (); / / Exception!
    the above line throws COMException: error HRESULT E_FAIL has been returned from a call to a COM component.

    TextBlock.Text += "-" + fileList.Count.ToString ();

    The same exception is caught using DocumentsLibrary, MusicLibrary or VideosLibrary instead of PicturesLibraries.

    If I open default applications (Photos, music), they correctly list all Facebook, and SkyDrive photos but NOT local images and music from images of Windows 8 and music libraries. apps don't crash but indicate that the "Image library" and "Music library" are "empty" (rating 0 photos, 0 songs)! I suspect that they receive the same inner exception.

    If I open Explorer Windows in desktop mode and go to the library, they all list content correctly. ([I already rebuilt the index, just to make sure that the index was not the issue and have reset all libraries on their values, so that all libraries are currently loading files only from C:\Users\[username] C:\Users\Public, i.e. my pictures, my music, etc. and photos of Public, Public music, etc.)

    All images and music are stored on the local disk C:, represented by a standard hard drive (not mounted from any external storage device) and display properly in desktop mode on all programs (such as Windows Media Center, Windows Media Player and Windows Photo Gallery).

    The current computer has been improved for Windows 8 Pro Windows 7, but I can confirm that all library files have the permissions full control for my user and SYSTEM administrators group (legacy) and verification of the SFC returns no violation.

    My computer is on a domain, and my user (related to my Microsoft account on the current computer) is an administrator of the local computer. On a separate computer that is also in the same area, I have no problem with access to the library of WinRT, even from the same area (related to the same Microsoft account) user account, so the problem seems to be local to my Windows user account.

    More information: I also noticed that WinRT Kindle app (at Amazon) is not able to download any book in the Cloud to device when I use my Windows account (it reports "Disk full" error, even that he didn't there no book downloaded locally and the total size of the disk used by the soft is reported by the operating system are very low) for example< 10="" mb).="" uninstalling="" and="" reinstalling="" kindle="" app="" (as="" for="" photos="" and music="" apps)="" doesn't="" help.="" also,="" if="" i="" sign="" out="" from="" kindle and="" register="" with="" a="" different="" amazon="" account="" (using="" the="" same="" windows="" account),="" the="" correct="" books="" in="" the="" cloud="" are="" listed,="" but="" download="" still="" doesn't="" work="" -="" disk="" full="" being="" reported="" (probably="" again="" as="" an="" internal com="" exception="" from="" winrt="" core="" which="" is assumed="" by="" kindle="" app="" to="" be="" caused="" by="" a="" disk="" full="" situation).="" however,="" if="" i="" use="" another="" windows="" user="" and="" the="" same="" amazon="" account="" (on="" the="" same="" machine), kindle="" app="" works="">

    The Apps store (recommended here: http://windows.microsoft.com/en-us/windows-8/what-troubleshoot-problems-app) run with elevated privileges detected and (he said) be it resolved some problems ('Check missing or corrupt files', and "graphics cards may be outdated" are posted with warning signs, but no useful information is displayed in the Details page), and after the computer has been restarted, the situation is the same While performing the Troubleshoot utility once more would find the same problems.

    Does anyone know how to fix the apparently corrupt Windows user account library links and/or other parameters used by WinRT? (I mean, at least what file or registry locations and/or permissions that should a driver trying to find the root causes of this problem?) Once again, the problem seems deeply linked to the local Windows user settings and only for Windows Store apps (for all), like the desktop mode libraries work well in all programs. Thank you!

    Hey Sorin,

    Thanks for posting your query in the Microsoft Community Forums.

    The problem you are having is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.

    Please post your question in the Technet Forum.

    You can follow this link to ask your question:

    http://social.technet.Microsoft.com/forums/en-us/category/w8itpro

    For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • Why my blu - ray player can't access the contents of third party internet?

    I've owned my reader blu - ray Sony BDP-S580 for about a year and a half and have had no problems with it. A few days ago I noticed that it would link is no longer to third parties including Netflix, Youtube, and Amazon Instant Video internet content. I connected wireless and thought I just needed to recycle my router and the modem (I have a modem from Time Warner Cable and a Linksys Wireless G router). I tried several times, but it made no difference. Whenever I try to start, Netflix, Pandora, Youtube, etc it is unable to connect to each time. I noticed that the player can always connect to Gracenote. I can access Web sites using the integrated in the web browser. I can also stream videos to my PC blu - ray player using the Windows Media Player server. It's just the video and music internet services that do not work.

    In recent days I've done everything I can think of to fix it, but nothing worked. I tried the modem and the router of recycling at least 20 times. I tried to use the wired facility rather by connecting the drive blu - ray directly to my router by an ethernet cable. I have the router configured so that it's not requre the use of Wi - fi protected setup, but I even tried to set the blu - ray player using WPA configuration just in case. I changed the IP address on my router. I reset all the settings of the blu - ray player to factory default settings. I also tried to do a power reset the player. I tried to use "personal information Initialize' who have

    erases all personal data (including all content of third of the unit). None of the above worked.

    I also want to mention that none of my other wireless devices have problems connecting to the internet. In addition, the blu - ray player is about a foot away from my router for the intensity of the signal is not a problem. My router is configured to allow up to 50 devices to connect to it and there are currently only 7 devices that use the connection Wireless (including my roommate). My internet connection speed is 54 Mbit/s, so I don't think speed is the question. The blu - ray player said that the RANDOM connection and internet access are correct. The blu - ray player network connection diagnostic tool says that network connections are correct. My firmware is updated and the player is registered with Aurélien Live Essentials.

    Thank you for taking the time to read my post. Any suggestions would be greatly appreciated.

    I'm having the same problem.  Player has worked wonderfully for the moment I got it almost a year.  He began to do last night.  Rebound, the speed of the network, reset the player to the factory and let it sit unplugged for 15 minutes.  It connects to the network and access to claims that it has internet and connection LINK, but the status of connection to the server provisionsing failed.  Streaming from other LAN devices work, the Web browser works, none of the work of third party services.

    Where are you located, and who is your ISP?  I'm in Central Virginia on Shentel.  Nothing has changed from hardware wise. The modem is Motorola Surfboard SB6141.  It's a modem ONLY... no router functionality.

  • How do you get the beta version of windows 7 to solve the problem created when the auto update 0x0000c1f5 ran?

    How do you get the beta version of windows 7 to solve the problem of stop 0x0000c1f5 windows vista home edition created when the automatic update ran?

    Previous discussions about the error: ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Safely delete the contents of the ProgramFiles/Windows/Temp dir? __And I can remove the content of Documents and Settings/User1/Local settings/Temp dir? __Thanks for any advice! __

    Can I safely remove or delete the contents of a 'Temp' directory in Windows?

    -Documents and Settings / User1 / Local settings / Temp

    -Program Files / Windows / Temp

    Yes, you can delete the contents of any temporary directory. You can use disk cleanup or CCleaner . If you use CCleaner, use only the cleaning tools. Let tools registry and other options alone . MS - MVP - Elephant Boy computers - don't panic!

  • Windows XP: My hard drive failed in part and I can't access the folder "my documents"...

    Windows XP SP2 from the CACLS
    Windows XP: My hard drive failed in part and I can't access the 'My documents' folder, windows it says ACCESS_DENIED. I tried grant permissions through CACLS and switches appropriate, but I still get messages ACCESS_DENIED. Can someone help me please I have 60 GB of data on it to be recovered. I backup this but is 3 weeks old. Regards Alan

    Hi Malkeleah
    Thanks for the reply, the reader had not failed, but windows had use of the access denied files because I was on a separate computer with a new master drive. Now recovered data and support to the high new outside. Thanks again for your help. Alan

  • Email connection problems: cannot access the requested url due to the system on that server error

    How can I get my email on when I get the above message

    Cannot access the url reqested due tosystem error on this server

    Apparently, there is a problem on the mail server. Contact technical support for your email provider. MS - MVP - Elephant Boy computers - don't panic!

Maybe you are looking for