How to find no work plans and the lines of a doc. ?

Hello

could someone tell me how to count the number of work plans and existing lines in the document?

the CS4 API can do?

I couldn't find all the suites do.

Please help I'm stuck.

Thank you

DeepAlone.

The number of work plans is easy: AICropAreaSuite::GetCount() in AICropArea.h. The number of lines? It's more complicated, since there is no ownership of it. You figure, however, using the methods of AICropArea to join the rectangles (see struct above) of each work plan (or "box frame" as they are called in the nomenclature of the CS4 API). There is no guarantee that they are in lines, of course, since they can be moved. You can take a stab but looking at the top & bottom and see if a bunch of them line up; which would give you meaning to all the lines are there is they are in lines.

Tags: Illustrator

Similar Questions

  • work plans and the origin

    Hi, I am looking to attract some objects on fixed positions on work plans by first defining the origin of the document to the top - left of the artboard. However, this seems to work for some of the work plans, but not for all.

    Example code:

    #target illustrator
    
    // create artboards
    var CurrentDoc = app.documents.add ( DocumentColorSpace.CMYK, 595, 841, 12, DocumentArtboardLayout.GridByRow, 50, 6); 
    var artboardRef = CurrentDoc.artboards;
    
    // loopt through all artboards
    for ( var i = 0; i < artboardRef.length; i++ ) 
      {
       // set page and ruler origin
       var RulerLeft = artboardRef[i].artboardRect[0];
       var RulerTop  = artboardRef[i].artboardRect[1] ;
       CurrentDoc.rulerOrigin = [RulerLeft,RulerTop];
       CurrentDoc.pageOrigin  = [RulerLeft,RulerTop];
      
       //add text to artboard
       var cTextRef = CurrentDoc.textFrames.add();
       cTextRef.textRange.characterAttributes.textFont=app.textFonts.getByName("Verdana"); 
       cTextRef.textRange.characterAttributes.size = 27;
       cTextRef.contents = "ArtBoard: "+ (i+1);
       cTextRef.left = +55;
       cTextRef.top = -64;
       redraw();
      } 
    

    8 of the 12 work plans get the text at the right position (but not in the right order when I look at the range of work plans). Text for 4 work plans is placed completely outside all work plans.

    Any help is appreciated,

    Michel

    A mathematical operation is Ok, no need to set the origin.

    #target illustrator
    
    // create artboards
    var CurrentDoc = app.documents.add ( DocumentColorSpace.CMYK, 595, 841, 12, DocumentArtboardLayout.GridByRow, 50, 6);
    var artboardRef = CurrentDoc.artboards;
    
    // loopt through all artboards
    for ( var i = 0; i < artboardRef.length; i++ )
      {
       // set page and ruler origin
       var RulerLeft = artboardRef[i].artboardRect[0];
       var RulerTop  = artboardRef[i].artboardRect[1] ;
       //CurrentDoc.rulerOrigin = [RulerLeft,RulerTop];
       //CurrentDoc.pageOrigin  = [RulerLeft,RulerTop];
    
       //add text to artboard
       var cTextRef = CurrentDoc.textFrames.add();
       cTextRef.textRange.characterAttributes.textFont=app.textFonts.getByName("Verdana");
       cTextRef.textRange.characterAttributes.size = 27;
       cTextRef.contents = "ArtBoard: "+ (i+1);
       cTextRef.left = RulerLeft +55;
       cTextRef.top = RulerTop -64;
       redraw();
      }
    
  • How to find my WEP key and the name of my network?

    I need to reset my wireless printer to scan.  It asks for my WEP key and I thought it was one that is not correct.  How to find the right WEP key and my correct network name? I have a laptop HP Pavilion dm4 with HP scanner/printe wireless

    You must log - on to your AP or wireless router and look for the 'Wireless' or similar tab for your WEP key and the network name (SSID). Or you may be able to locate the information by going to control Panel\All Control Panel Items\Network and Center sharing on your laptop.

    Frank

  • Updated to the new Photoshop CC 2015: work plan and the background are both white I can't see any outline. Will not change when I try to get a different background color.

    This seems almost elementary but I tried everything literally, the only thing I can think is that this is a bug.

    When I'm working on work plans, they are white and the background is white, so I don't quite see the outline. I tried to change the background color to dark gray or any other color, but nothing works. I restarted my computer, the software, everything. Nothing works. It only happens to me, everyone in my company isn't the problem. We checked out the contrast on my computer and it's all good. I had two different designers tinker around with it and they say it must be a bug because they have tried everything they can and I also.

    Now I simply add a grey box dark to my work plans so I can see the sketch, but it's really annoying, I have to do, especially since I work with Photoshop 4 hours per day.

    You must set your GPU options in preferences to something other than "Bacic."

  • How get rid you of the "work Plan" and just opened a "Document?

    I am trying to open a new blank document, but the resulting page has the little word 'Work Plan' in the upper left corner on the page. I don't know what a work plan is not something perhaps in Illustrator. I wanted not a "work plan" and even spelling wants to force me to put "target".

    If someone could tell me how and why I'm getting this and help me a little to open a Photoshop Document clear, white, new, I would be so grateful. If you want to tell me briefly what is a 'work plan' and knowing I don't want one and probably never employeront such a thing...

    TIA,

    Ken

    File/new

    When you get the screen of characteristics of the document (paper size, etc.), search for "Type of Document" and select what you want.

  • Reorganize work plans and move the work hidden with both work plan?

    Is it possible to use the option to "Reorganize the work plans" in the dropdown to work plans and also the movement not only the plan of work itself, but also the hidden work (layers, objects, etc.) on this work plan?

    I tried marking check the option 'move illustration with work plan' , but that still does not move the hidden work. The default behavior seems to be that only the active or visible work is moved with the artboard, but the work of hiddden is left behind somewhere on the workspace where the work plan used to be before it was moved.

    I find it a little heavy, because I often hide work that I test and have to do all visible again to move them just with the artboard would break the dinstinction between all many very similar layers, objects, etc. that I could work with at any given time.

    If anyone has some advice please chime...

    Hahaha... your memory is better that an elephant Kurt, but remember that I already have this script of cardiac arrest?

    http://forums.Adobe.com/message/5666490#5666490

  • Hello, my bare of tools a missing person is left and not of I don't know how to find I is still in the tool to crop my picture thanks.

    Hello, my bare of tools a missing person is left and not of I don't know how to find I is still in the tool to crop my image.

    Go to the window menu and choose Tools.

  • Presentation of the work plans and grid in 2015 CC

    Hello

    I really like the new system of work plans and I tried to adjust my existing models and systems network (for web design and app) with them in mind.

    So I created a new document, put plans in place of my work with different dimensions... and then I tried to use grid layout Panel to create benchmarks for each of my work plans.

    I can put up the original xy for each work plan. But when I use grid layout Panel, it seems that it only uses the "global origin", based on the first artboard created...

    What I see or understand, the grid layout Panel is not more useful when you're working with different work plans.

    SO I'm currently positioning my guides - a - think better methods...

    Anyone encounter the same difficulties? Just maybe workaround?

    In addition, Photoshop crashes a lot with the zoom when I slip with my mouse to zoom/zoom. I do not have this problem so I suspect that comes with the 2015 version.

    Can I disable the photoshop special zoom/zoom use one like Illustrator? (I've not seen anything in the settings. Animated zoom is already disable)

    UPDATE: Photoshop crashes every 2 minutes. I tried to reset the preferences, but it does not help. I no longer use the zoom with mouse slides, but that does not change: whatever I I had an accident after some modifications to the document.

    Really disappointed. My day is lost, and if I can't get Phtoshop to work, I also lose a project if not more...

    Thank you in advance!

    There was a bug just fixed a few days ago that had to do with large documents dimensionally with high zoom factors. If it is not specific to the work plans, a document of work plan may get in trouble more easily. Specifically, if the calculations of coordinates for the drawing overlay (for example selections) went over 32 000, we could get into trouble. For example, a document of 5000 pixels wide 800% zoom could have some contact information to 40,000. So, if your document fits this profile, it * might * be causing accidents you saw; It is difficult to be sure.

    The fix is tested in-house right now. (And no - I can't tell you when you may receive the fix - just that it's in the pipeline)

    We are certainly thinking about improvements with Guides and work plans.

    So, Yes, we read these threads, even if we don't answer every time. Thanks for the information!

  • Work plans and layers

    Hello

    I created a work plan for a business card and then created a second to the front of the card.

    How to make it so that when I click on the respective work plan it has its own set of layers?

    Now even when I click on this new work plan and type text that everything seems to go with the layers I created on my first work plan?

    Is there no way to their separation?

    Thank you

    Paul.

    Layers are a document element, not a work one plan. That said, you can select all the layers in a new composite layer for the first artboard using the command in the layer Panel dialog box. Then create another layer for the second. Name the front and back layers.

  • Layer mask groups converted from work plans to the size of the artboard in older versions of Photoshop

    I wanted to start this post as an idea, but I couldn't choose communities (it wouldn't let me), so here it is posted...

    ----

    Just came across this with a customer...

    I use for a mobile design project work plans, and I just got a screenshot with some texts asking why among work plans were really great. Way bigger than a phone. (I'm under NDA and cannot post the screenshot, but imagine there are a lot of iPhone size work plans and two of them seem to be at a right angle)

    I opened the file and on my end, everything is the right size. Remembering the weeks ago to tell the customer that they need to update their version of Photoshop for all this work correctly, I have take a look at the screenshot and see that they are on CC2014 - none of the work plans.

    What I'm asking here, is that, since we have data, plans of work are objects of a defined size and 'alive', why not just use these data to hide layer groups at the opening of the PSD / PSB (PSB in my case) in older versions of Photoshop?

    It could save you a TON of hassle and confusion.

    Hi Zack,

    High level to your query response is: no, there is no conduct business case for a general solution to what you are suggesting. So I don't see what is happening.

    I say that as someone who likes to give back and forth and backward compatibility.

    There are two parts of the problem that you raise. They are related and somewhat intertwined.

    1. Having the version previous (2014) do something reasonable with the data from the version the most recent (2015). Either the old version should be taught on the most recent data so it can make a decision about what to do, or the newer version must put additional data in the file format for consumption by the older version.
    2. Back and forth between versions. As you say, a much more difficult problem. In fact, we do a good job of that today. But we must be sure that whatever we do for (1) not to damage and back the wrong way.

    Let's be very clear: 2014 will not be touched, except for critical bugs, absolutely. And even before 2015 is released, it would have not been corrected to make it behave better with work plans. There is no way that I could see what is happening. So all we have done for better backward compatibility had to be entirely done within 2015.

    For the round trip, the general problem is something like this: we want to 2014 to read an object that has properties of 2015, he does not understand. While we might learn ch to keep these properties as opaque property, must also have rules for when these properties are not valid and thrown on the floor. Probably, if the object is changed. But not always. And sometimes when another object parent is changed. And so on. Right now, we destroy them unknown content from their reading in the old version. Make us and record what we understand. As a user, you receive an alert telling you that we are do this. It's the safest thing to do.

    There are special cases where a developer can see an opportunity to preserve a level of backward compatibility and back and forth. We try to do if we believe that it is safe. But this scenario happens only occasionally.

    In the case of work plans, made us really think about this: If we added a mask to the group for backward compatibility, it should do something with this mask reading around 2015. And what would happen if the user edited this mask in 2014 and opened upward in 2015 - and who edited mask do not align with the structures of the artboard? Things started to get dark quickly. We started to see traps. The workflow together to sheath special round trip had to be tested and verified. The cost was rising and this expense must be filtered through a cost/value trade-off. And then what happens when we add a new property to the structure of work plan? At these efforts for nothing?

    So we compromised with what you have today. Work plans become groups in 2014. The Group and the layer structure remains intact. Doesn't secretly add us and remove masks for the round trip. You can safely change the groups to your heart's content. When return you this document in 2015, you redo the work plans of the groups. Was not clear and safe way to do more than that given the time that we had.

    Take a step back and think about your problem, it doesn't seem to be a value to a script that converts group work plans + layer masks for your workflow to have your documents that is consumed by the customers of 2014. This would be carried out in 2015 because she would need understand the work plans. And maybe vice versa from 2014 to 2015, assuming that the documents were not published in a hostile way. We're not likely to write such a script as a generic tool, but someone competent with script might be able to do this.

    More that I intend to write, but hopefully, it gives you additional insight in the compromises that we have faced.

  • How can I transfer CS5.1 (and the bridge and Lightroom4) an old iMac to a new?

    How can I transfer CS5.1 (and the bridge and Lightroom4) an old iMac to a new?

    You must not transfer you should install so that applications are properly set up with the machine.

    There are two options for downloading Lightroom 4:

    Mac: http://www.adobe.com/support/downloads/detail.jsp?ftpID=5566

    For what follows, remember to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    Lightroom 4: http://prodesigntools.com/adobe-lightroom-4-is-out.html#ddl

    CS5: http://prodesigntools.com/all-adobe-cs5-direct-download-links.html

  • How to find these different namespaces in the schema?

    Hello

    I heard that this schema contains different namespaces. How to find these different namespaces in the schema?

    I checked with this, but it is throwing "table or view does not exist.

    Select the namespace of v$ librarycache.


    Thank you
    Praveen

    Are you referring to this? From the reference manual of the SQL language under the schema object names and qualifiers

    7. part of a namespace, no two objects can have the same name.
    The following schema objects share a namespace:
    Tables
    Display
    Sequences
    Private synonyms
    Autonomous procedures
    Autonomous stored functions
    Packages
    Materialized views
    User-defined types

    Each of the following schema objects has its own namespace:
    Index
    Constraints
    Clusters
    Database triggers
    Private database links
    Dimensions

    Because tables and views are in the same namespace, a table and a view in the same schema cannot have the same name. However, the tables and indexes are in different namespaces. Therefore, a table and an index in the same schema may have the same name.

    Each schema in the database has its own namespaces for objects that it contains. This means, for example, two tables in different schemas are in different namespaces and can have the same name.

    Each of the following schema objects also have its own namespace:
    User roles
    Public synonyms
    Links to public database
    Storage spaces
    Profiles of school boards
    The files (PFILEs) settings and server settings (SPFILEs) files

    Because objects in these namespaces do not appear in the drawings, these namespaces cover the entire base.

    That's why you can do:

    SQL> create table t (id number, descr varchar2(10));
    
    Table created.
    
    SQL> alter table t add constraint t check (mod(id,2) = 0);
    
    Table altered.
    
    SQL> create index t on t(id);
    
    Index created.
    
    SQL> create trigger t
      2  before update on t
      3  begin
      4     dbms_output.put_line('T Trigger');
      5  end;
      6  /
    
    Trigger created.
    

    but not:

    SQL> create view t as select * from t;
    create view t as select * from t
                *
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    

    or

    SQL> create procedure t
      2  begin
      3     null;
      4  end;
      5  /
    create procedure t
    *
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    

    John

  • Is it possible to resize all work plans at the time the way that you used to be able to do in the configuration of document?

    I have a document with 20 work plans. When I resize a that only changes that are. I'm in CS5. Is it possible to resize all work plans at the time the way that you used to be able to do in the configuration of document? Thank you very much!

    Wade_Zimmerman wrote:

    It's a good script but t vrry does not resize some plans of work and not wouldn't

    @ Wade

    You can recode and a confirm in the loop to determine if you want to resize the work plan current in the iteration of the loop, if no installation then jump her, if yes then prompt for sizes and move forward. Then you can resize regardless of those that you wish as such, some and not others. You can even distinguish with each confirm and ask what work targeted plan by displaying its name. I tested this approach and it seems to work ok, but not super stylish, of course, because if you have tons of work plans, it would be a large number of guests/entry. You could lesson prompts by combining the width/height in a single guest. But then again, even at this time sound just as effective to resize each manually via the window of work plans, probably the same amount of work/time user input processing and the targeting of individual work plans. You could perhaps also create script window for multiple entry for plans of work desired, may be based on the selected and build your dialogue window accordingly, I suppose that, at this time, it would provide a more effective approach for this kind of thing that you seem to be describing.

    But that all said that we would be well beyond the original request that CarlosCanto already so generously filled. He might have some comments on your comments.

  • How to find inserted last record in the table.

    Version: Oracle 10g

    I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
    How to find inserted last record in the table 'manufacturing '.

    As I got to know that the Rowid is not a result perfect result. Please provide your inputs.

    user13416294 wrote:
    Version: Oracle 10g

    This is not a version. It's a product name. A version is 10.1.0.2 or 10.2.0.4, etc.

    I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
    How to find inserted last record in the table 'manufacturing '.

    Not possible as your data model do not answer for him. As simple as that.

    If there is a need to determine an order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or several attributes are necessary to represent this information. Your data model in this case is therefore unable to meet your requirements.

    If the requirements are valid, set the data model. In other words - your question has nothing to do with Oracle and nothing to do with the other pseudo columns in Oracle, the rowscn or the rowid. It is a question of pure data modeling. Nothing more.

  • My wife and I bought hundreds of iTunes movies and music over the years. I have a terminal illness and won't last long. The account is in my name. How can I ensure that films and the songs that she and I have paid for are accessible for her after I spend

    My wife and I bought hundreds of iTunes movies and music over the years. I have a terminal illness and won't last long. The account is in my name. How can I ensure that films and the songs that she and I have paid for are accessible for her after I die?

    She needs to have your Apple ID and password. Your iCloud ID and the password if you have your own iOS device, so it can have access to these facilities. Even if she wanted to sell, it would need this information to remove the lock of activation before the sale.

Maybe you are looking for