Home > Community > Forums > Custom IC SKILL > set default setting for ruler in IC6/12

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 set default setting for ruler in IC6/12 

Last post Fri, Jul 19 2013 8:11 AM by skillUser. 2 replies.
Started by chrisn 19 Jul 2013 07:48 AM. Topic has 2 replies and 521 views
Page 1 of 1 (3 items)
Sort Posts:
  • Fri, Jul 19 2013 7:48 AM

    • chrisn
    • Not Ranked
    • Joined on Fri, Jul 19 2013
    • Mount Royal, Quebec
    • Posts 3
    • Points 75
    set default setting for ruler in IC6/12 Reply

    Hi,

     

    Anyone know what i can put in my init file to set some default settings for ruler?

    I don't want rulers as a savable object, snap target none and not selectable.

    I have the follwing in my .cdsinit, but it's not working

    leSetObjectSelectable("ruler" nil )
    leCreateRulerForm->rulerTabs->page1->rulerSavable->value= nil
    leCreateRulerForm->rulerTabs->page1->rulerSnapTarget->value="None"

    When i paste the in my ciw, it does the trick

    any ideas? (I'm using IC12)

    Chris

    • Post Points: 35
  • Fri, Jul 19 2013 8:00 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,567
    • Points 15,575
    Re: set default setting for ruler in IC6/12 Reply

     Hi Chris,

    This came up with another customer recently.  The command  leSetObjectSelectable("ruler" nil ) only works once the layer palette has been initialised (i.e. a layout is being displayed), and so it does not work in your .cdsinit.

    I developed the following workaround which should help you:

    
    procedure(CCFnoRulerFilter(obj)
       unless(obj~>objType=="ruler" t)
    )
    leRegUserObjectSelectionFilter("CCFnoRulerFilter")
    

    This would be global for a session, so you might choose to activate this on/off with bindkeys (the filter can be removed by: leUnregUserObjectSelectionFilter() - there is no function to see if a filter is set or what the filter is, as far as I can tell).

    I filed CCR 1107225 for this problem, I suggest that you file a case with Customer Support and reference this CCR, requesting that it is fixed for you also - more requests allow R&D to know it is important for more than one customer, and they can prioritize accordingly.

    I hope this helps you!

    Regards,

    Lawrence.

    • Post Points: 5
  • Fri, Jul 19 2013 8:11 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,567
    • Points 15,575
    Re: set default setting for ruler in IC6/12 Reply

     Hi Chris,

    I missed the other two points,  there is a cdsenv environment variable to control each of the other two options:

    layout saveRulers boolean nil
    layout rulerSnapTarget cyclic "None"
    

    These can also be set through SKILL:

    leSetEnv("saveRulers" nil)
    leSetEnv("rulerSnapTarget" "None")
    

    Hopefully this answers your question completely now. These are documented in the IC616 release (and other releases for the saveRulers option, it was documented earlier than the snap target variable).

    Regards,

    Lawrence.

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by chrisn at 19 Jul 2013 07:48 AM. Topic has 2 replies.