Setting the property model length for Dashed/DottedStrokeStyle [JS CS4]

I tried to create a custom stroke style. There is a property in the interface called length of model that does not have a counterpart in the InDesign CS4 (6.0) Object Model (DashedStrokeStyle entry):

Style created in InDesign:

My code. First part to try to read the properties of a style and see what InDesign uses (I know it is dotted vs annihilated, but the properties of both types follow the same paradigm). Second part to create a custom style:

var thisDoc = app.activeDocument;
Thispage var = thisDoc.pages [0];

Reading an existing style:
//
var thisPremadeStrokeStyle = thisDoc.dottedStrokeStyles.item ("Crazy Dots");

$.writeln (thisPremadeStrokeStyle);
outputs: solve ("/ document [@name = \"test strokes.indd\"]/")

$.writeln (thisPremadeStrokeStyle.toSource ());
(' [' output: dotted-stroke-style[@name=\"Crazy Dots\"] ')

$.writeln (thisPremadeStrokeStyle.getElements ());
Poster: [object DottedStrokeStyle]

$.writeln (thisPremadeStrokeStyle.getElements (.properties));
outputs: undefined

A new style of edge entry
//
thisDoc.dashedStrokeStyles.add ({name: "Crazy dash"});
var thisNewStrokeStyle = thisDoc.dashedStrokeStyles.item ("Crazy dashes");

thisNewStrokeStyle.patternLength = "0.5i";
Object does not support property or method 'patternLength.
//
thisNewStrokeStyle.length = "0.5i";
Object does not support the property or method 'length '.
//
thisNewStrokeStyledonut = "0.5i";
Object does not support property or method 'range '.
//
// ???
//
thisNewStrokeStyle.dashArray = [0,0.0625, 0.125,0.125, 0.375,0.125];
thisNewStrokeStyle.strokeCornerAdjustment = StrokeCornerAdjustment.DASHES_AND_GAPS;

Style created by the above code:

The document I want to do is entirely programmatically. I'm ready to first create styles in InDesign, export to a file StrokeStyles and import back into a document created programmatically (Although there are problems with this approach), but wanted to see if there was an alternative, first.

It may just be a coincidence that your 0,0625 + 0.125 + 0.125 + 0.375 + 0.125 equals 0,8125?

I think, if you enter these values in the UI, then replace 0,1825 by its double 0.3625 value, you will see your individual table values will double as well.

Tags: InDesign

Similar Questions

  • Can I set the property to any system of my application

    Hello, good afternoon.

    I have an application called has, can I set the property to any system to my app has? so that whenever I want to start or stop my application has from other applications, I need to check this property value sytem and inspiring that I need start or stop my application has.

    Note: if there is no option, suppose I put a 'Start' at my request other applications when trying to stop this application hasthe property system, I need to change this property value of the system up to request A leave of "start" to "stop". "" ""

    Please let me know clearly weather it is possible or not, if possible how can I do this?

    You can use RuntimeStrore and the status of the Application and define the Golbal events and other application B using the Golbal headphones you can stop the Application A.

  • I get "failed to set the refresh attribute COMMIT for the materialized view" when I try to create a MV using a table and another MV

    Experts,

    I'm trying to create a YOUNG refreshable ON COMMIT MV (xyz) using a table (circuit) and quickly updateable on validation MV (abc), but get an error:

    SQL error: ORA-12054: cannot set the attribute ON COMMIT refresh for the materialized view

    12054 00000 - "cannot set the refresh attribute COMMIT for the materialized view.

    * Cause: The materialized view did not meet the requirements for update to

    moment of validation.

    * Action: Specify only valid options.

    1] MV abc
    = MV abc defined as below =.

    CREATE MATERIALIZED view abc_MV

    Immediate CONSTRUCTION

    REFRESH QUICKLY YOU COMMIT using constraints of trust

    WITH ROWID AS SELECT n.*,.

    n.ROWID noderowid

    node n

    where n.nodetype in (1610000069,1610007267);


    -Above works OK and MV connect you on table node is created successfully

    =====================================================

    [ 2] Circuit Board

    ======================================================

    CREATE MATERIALIZED VIEW LOG ON Cramer.Circuit WITH SEQUENCE, ROWID ( ) -all columns of table ofcircut parentheses

    INCLUDING THE NEW VALUES;

    -More top works OK and MV connect you on table circuit is created successfully

    ======================================================



    [3] trying to create MV xyz

    ======================================================

    CREATE MATERIALIZED VIEW LOG ON cramer.abc_MV WITH SEQUENCE, ROWID ( ) -all columns of abc_MV brackets

    INCLUDING THE NEW VALUES;

    -Above works OK and log on ABC MV MV gets created successfully

    -Problematic step below

    Xyz_MV CREATE MATERIALIZED VIEW

    IMMEDIATE CONSTRUCTION

    REFRESH QUICKLY YOU COMMIT using constraints of trust

    AS

    SELECT c., c.rowid circuit_rowid, n.rowid tr_rowid

    the circuit c, abc_mv n

    where circuit2startnode = n.nodeid

    and c.rpplanId = n.rpplanId;
    ==========================================================

    Clues on how to solve this problem and make quickly updatable ON Commit MV xyz

    Thanks in advance.

    Chanchal,

    If you can read my original post carefully you may have noticed that all these restrictions will not apply in my case.

    All,

    In any case I found the solution to my problem.

    There are a few additional restrictions for materialized views multilayer

    Additional Restrictions for master materialized views

    The following types of materialized views may not be masters of editable materialized views:

    • ROWIDmaterialized views
    • Complex materialized views
    • Read-only materialized views

    I've updated the underlying MV abc below and everything worked like a charm

    CREATE MATERIALIZED view abc_MV

    Immediate CONSTRUCTION

    REFRESH QUICKLY YOU COMMIT using constraints of trust

    IN SELECT

    n.*, n.rowid noderowid, nt.rowid nodetyperowid

    the node n, nodetype_m nt

    where n.node2nodetype = nt.nodetypeid

    and nt.nodetypeid in (1610000069,1610007267);

    Note: To ADD a join without which I was getting error below (although had primary key on the table of the node)

    SQL error: ORA-23415: materialized view log for "NODE" does not save the primary key

    23415 00000 - "view the log for materialized \"%s\".\"%s\"does not save the primary key.

    * Cause: A primary key materialized view is refreshed quickly, but the

    The materialized view log does not record the primary key information.

    * Action: Use CREATING MATERIALIZED VIEW LOG... Command to add a PRIMARY KEY to

    start recording of the primary key information in the materialized view

    Newspaper.

  • How to set the property node maximum xscale for several scale XY Chart

    Hello

    I use a graph XY with three X axis and three scales of axis Y to draw the three sets of data. This works well.

    What I do now is to set the Xscale.Maximum property node for one of the x-axis (the other two autoscale). If I click right in the (Create Blockdiagram; Node property; X scale; Maximum) I can not choose what x-axis I want to put the Maximum for.

    So my question: how to select a specific axis allows you to set the XScale.Maximum property node when having several axes?

    Thank you for your help, any suggestions are appreciated!

    Hello

    After some more research and experimentation, I found that using the scale property X Active I can determine/set for which the XScale.Maximum Xscale is used.

    This solved my problem.

    I hope someone else can save themselves a few hours with this thread!

    Thank you

  • WebCenter Sites REST API: How to set the active model?

    How can I set the model for the asset, I create.

    AssetBean sourceAsset = new AssetBean();

    sourceAsset.setName (value);

    sourceAsset.setName (prod_name);

    sourceAsset.setCreatedby (value);

    sourceAsset.setStatus (value);

    sourceAsset.setSubtype (value);

    ...

    but no set model?

    Hello

    The model on an asset is defined as an attribute:

    List attributes = sourceAsset.getAttributes()
    for(Attribute attribute: attributes) {
        if(attribute.getName().equals("template")) {
            attribute.getData().setStringValue("ArticleLayout2");
        }
    }
    

    or if you create a new item of assets:

    List attributes = sourceAsset.getAttributes()
    Attribute templateAttribute = new Attribute();
    templateAttribute.setName("template");
    templateAttribute.setData(new Data());
    templateAttribute.getData().setStringValue("ArticleLayout2");
    attributes.add(a);
    

    Kind regards

    Stephan.

  • Failed to set the new CSS rule for the background image

    Hello

    Maybe I've finally lost my mind... I myself find it impossible to add a background image to the header of my project portion.  I select the "header" in the property Panel section, click on "add a new CSS rule.  Curiously, DW does not in the name of the selector for me, which is probably an indication that something is wrong, but I don't know what.  I went through the steps of filling in the name of the switch by hand, choose the .jpg file and setting is like a background image, but he never takes.

    There has got to be something simple that experienced users of DW can explain.  Go ahead, experts, you out there?

    Thank you...

    When things go south, it is almost always caused by a mistake of small coding somewhere.

    Unbalanced tags are the usual suspects.

    Run validation and fix the errors reported.

    Nancy O.

  • How to set the name of VM for VAPP instantiation

    Hello

    I'm trying to set the name for a virtual machine when its parent is instantiated VAPP from a model.  Note, I know how to change the name of the TIME itself, just not it's child VM.  The requirement to have this game during the instantiation is therefore the name of the computer in vSphere is in place.  Can someone direct me on how to do this?  Thank you.

    Hello

    in the API v0.9, it is impossible to change the name of the virtual computer on instantiation. One way to do that using dial operation, but 0.9 of the vCloud Director of Service, you are also not able to change the VM even if using the composition.

  • How to set the property to the parameter out

    Hi all
    I want to set a property to the parameter out in the application process.
    If the parameter has value, then I need the column with the value on a page.
    If the parameter out is not having a value, then I need to hide the columns on a page.

    I write the below code for this, but I did not get value and also the column appeared in the Page.

    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processRequest (pageContext, webBean);
    Am = (XxcustdtlsmainAMImpl) pageContext.getApplicationModule (webBean) XxcustdtlsmainAMImpl;

    If (PageContext.GetParameter ("PpcustID")! = null)
    {
    String vpID = pageContext.getParameter ("PpcustID");
    System.out.println ("cust in PR trxn id:" + vpID);
    am.passTocustlinetrxn (vpID);
    }
    If (pageContext.getParameter ("PCustomID")! = null)
    {
    If (PageContext.GetParameter ("PbtchID")! = null)
    {
    If (PageContext.GetParameter ("POrdNum")! = null)
    {
    If (PageContext.GetParameter ("PInvceNum")! = null)
    {
    String vcustoID = pageContext.getParameter ("PCustomID");
    String vOrdNums = pageContext.getParameter ("POrdNum");
    String vInvNum = pageContext.getParameter ("PInvceNum");
    System.out.println ("cust in drill PR id:" + vcustoID);
    am.srchCusttrxnlineupdatedtls (vcustoID);
    OAMessageStyledTextBean mInvBean = (OAMessageStyledTextBean) webBean.findChildRecursive ("InvoiceNum");
    OAMessageStyledTextBean mTextBean = (OAMessageStyledTextBean) webBean.findChildRecursive ("OrderNumber");

    if(mTextBean!=null)
    {
    mTextBean.setText (vOrdNums);
    } else
    {
    mTextBean.setRendered (Boolean.FALSE);
    }

    if(mInvBean!=null)
    {
    mInvBean.setText (vInvNum);
    } else {}
    mInvBean.setRendered (Boolean.FALSE);
    }
    }
    }
    }
    }
    }

    Thank you

    Hello

    Pls make the changes in public relations as given:

    If (pageContext.getParameter ("PCustomID")! = null)
    {
    If (PageContext.GetParameter ("PbtchID")! = null)
    {
    If (PageContext.GetParameter ("POrdNum")! = null)
    {
    If (PageContext.GetParameter ("PInvceNum")! = null)
    {
    String vcustoID = pageContext.getParameter ("PCustomID");
    String vOrdNums = pageContext.getParameter ("POrdNum");
    String vInvNum = pageContext.getParameter ("PInvceNum");

    am.srchCusttrxnlineupdatedtls (vcustoID);

    OAViewObject vo = (OAViewObject) am.findViewObject ("XxcustdrilldownVO1");
    Line row = vo.first ();
    System.out.println ("Hello I'm in spell112");
    row.setAttribute ("HideOrdNum", Boolean.TRUE);
    row.setAttribute ("HideInvNum", Boolean.TRUE);

    OAMessageStyledTextBean mInvBean = (OAMessageStyledTextBean) webBean.findChildRecursive ("InvoiceNum");
    OAMessageStyledTextBean mTextBean = (OAMessageStyledTextBean) webBean.findChildRecursive ("OrderNumber");

    if(mTextBean!=null)
    {
    System.out.println ("I'm in passivation");
    mTextBean.setValue (pageContext, vOrdNums);
    }
    if(mInvBean!=null)
    {
    mInvBean.setValue (pageContext, vInvNum);
    }

    Concerning
    Meher Irk

  • How to set the zoom to 125% for the partially sighted users

    On I.E. I can set the zoom to 125% on the computer so that all I see on my screen is enlarged as discount of 25% for low vision requirements. I can't find such a framework on Firefox.

    The Firefox Page Zoom feature makes a domain level by area to save favorite settings level users zoom, there is no default Page Zoom level setting in Firefox, as with some other browsers.

    Try the extension Default FullZoom Level and set a default zoom level:

    https://addons.Mozilla.org/en-us/Firefox/addon/6965

    Or try the NoSquint extension:

    https://addons.Mozilla.org/en-us/Firefox/addon/2592/

  • How to set the property iepe in labview signalexpress

    Hi, I have Labview 8.5 here connected to a USB-9234. We try to use the accelerometer that should be configured as IEPE, I tried like a post on this forum: http://forums.ni.com/ni/board/message?board.id=100&message.id=1976&query.id=143505#M1976

    but I can't find it in the Labview signalexpress or when I watched as the address in this post.

    Here's my search addess: C:\Program NIUninstaller Instruments\LabVIEW 8.5\vi.lib\DAQmx,is than at the time?

    Hi Lester14,

    To configure your as IEPE accelerometer, you'll want to do go in LabVIEW, rather than trying to navigate to it in C:\Program Files (you will need a property node that cannot be easily navigated to - the other post on the forum where this has been mentioned talks about using DAQmxBase that uses screws to set this property rather than a property node).  I think that all the information you need is in This KB.  Let me know if you need help!

  • How to set the Destination of scanning for your Hp Printer in window - 7

    How to set the scanning for your printer Destination is a common question is asked.  I am including a useful video that will guide you in the process.

    I hope this video helps.

  • How to set the zoom settings menu for lecroywaverunner 6050A

    Hello

    I am trying to initialize the zoom settings of a track of the labview on a Lecroy WaveRunner 6050 A fft. I found how to set the parameters of the fft with the manual of the remote control for LeCroy scopes  http://cdn.lecroy.com/files/manuals/wm-rcm-e_rev_d.pdf ) but I have not found how to set the menu zoom settings.

    I also tried with find command using the command of automation of Lecroy. ( http://cdn.lecroy.com/files/manuals/automation_command_ref_manual_wr.pdf ). but I think that there is a problem with the settings of the commands I send to the scope.

    I just need to put the horizontal and vertical centers and scales.

    If anyone can help,

    Thank you.

    Hello

    I use F1 as my FFT here track.

    Commands to change the scales are:

    Vertical Center: VBS ' app. Math.F1.Zoom.VerCenter = XXXX"

    Portrait/div scale: VBS ' app. Math.F1.Zoom.VerScale = XXXX"

    Horizontal at the Center: VBS ' app. Math.F1.Zoom.HorCenter = XXXX"

    Horzontal scale/div: VBS ' app. Math.F1.Zoom.HorScale = XXXX"

    I also want to point you to an application on the scope that will help you.

    If you go to the file menu and select cut, to the office, there is a shortcut to an application called "XStream Browser"

    The browser is an interactive application that will present all automation methods and properties that are available on the scope.  He acually connects to the scope of the request, so you can use it to test various components to see what they do on the scope.  It is very intuitive and I use it exclusively. (this is where I went looking for the commands above for you).

    Here is a link to Chapter 1 of the manual of automation: http://cdn.lecroy.com/files/manuals/04_xstreamautomation_ch1.pdf

    Page 1 - 5 has a quick introduction to the browser and its use.

    I hope that it becomes operational.

    Kind regards

    Leonard Brown

    LeCroy sales engineer

    1-800-5LeCroy

  • set the display to stay for watching movies

    When you look at something screen go himself after awhile

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Go to the Control Panel-> Power Options. On your selected power plan click on "change plan settings". On the parameters of change for the plan for the ' turn off the display: "change the setting of"Battery"and"Plugged in"to'Never'. Do the same for "put the computer to sleep. I hope I could help

  • How do you set the time and date for the fax on HP Office Jet 4622 all-in-one printer?

    I installed the all-in-one printer HP Office Jet 4622 and everything works like.  However on the test page for the date and fax are showing Jan-00-00 00:00 AM.  I don't know how to change the date and time.  Help, please.  Thank you.

    Use the Setup (wrench) button on the front of the printer to look through the settings menu to set the date and time of the printer.

  • HOW TO SET THE TIME AND DATE FOR MALAGA SPAIN 29130

    TIME AND DATE FOR MALAGA SPAIN

    Hi Colin,

    Thanks for posting your query in Microsoft Community.

    • Are you referring to a zip code when you say 29130?

    I would refer to the procedure described in the article below to set the date and time in Windows 7.

    Change the display of dates, times, currencies, and measures

    You can also view: set the clock

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

Maybe you are looking for

  • Satellite Pro: Hotkey Utility responsible of bad video plackback

    When you try to play a video, I get a break in reading all the seconds. I've identified the cause as the process of the shortcut key I have a spike in the CPU usage caused by that time at the break in the video.I checked on another Satellite Pro and

  • race model slightly differently in Veristand and Simulink

    Hello I have a model containing a c s-function code. The model works well in Simulink, where the s function is also compiled to a mexw32. Then a dll is generated for Veristand 2011 using RTW and the veristand.tlc. Veristand, the results are the same

  • Music of pre loaded on Fuze

    Pre-recorded music on the "rocket" can be transferred to my computer and deleted from my rocket and transferrsed back to My Fuze when I want? I would also like to see reading in the future.

  • HP replaces the hard drive: my recovery or their disks?

    The hard drive on my G62-234DX, purchased in August 2010, failed during the warranty period. HP sent me a replacement with recovery disks. I used them. Office Starter 2010 came loaded on the laptop, but it isn't on the supplied recovery disks.  HP sa

  • MS Optical Desktop 3.1 prevents the PC from sleep

    I have Win 7 last month and for about 4 weeks now my MS Optical Desktop 3.1 keyboard and mouse prevent my PC from sleep. I had to disable the option "Allow this device to wake up the PC" in the Device Manager for my PC to sleep once more. I went to t