Design Rules question

Hello,
It'd be possible to access the sources of Design Rules to be possible we customize them ?
It will become faster our undestanding about the scripts and leverage our customize needs.
Regards
Nelson Rosa

Hi Nelson,
Seems that there is some misunderstanding.
Support for scripting languages use is part of Java and since DM is created in Java it's just there.
There is lot of info here http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/ and here http://download.oracle.com/javase/6/docs/technotes/guides/scripting/programmer_guide/index.html
Only scripting engine included in Java is Mozilla Rhino and it provides support for JavaScript. Other ones are from third party vendors and if you want to use one, you have to download appropriate *.jar libs and put it in Java_install_path/jre/lib/ext directory.
I couldn't find the right link, bit these are most of the engines http://www.squidoo.com/scripting-java.
Actually a person can create own scripting engine.
So to answer you - from DM perspective there is one relatively simple Java class and that's it. Rest of it is scripting engine responsibility.
Hope this is helpful.
Regards

Similar Messages

  • Ultiboard design rules problem net to close

    Hi all
    Im new here. I have problem with my footprint. I added to my design curcuit but I have DRC error "Net to close", but all the measurments are ok . I used manufacturer details to design footprint.
    Can you please help me how to resolve this problem..
    I attached my file to make you easier to understand
    Attachments:
    linusb1.ewprj ‏120 KB

    Hi Bestb,
    Just a quick addition to my first post. There's another alternative to pass the DRC check, that is to change the clearance settings. Go to Edit->Properties->Design Rules->Clearance settings. Decrease the corresponding number to lower the auto error-checking sensitivity. However in the minimum threshold is 0.001mm for the traces so this approach won't make a difference in your case. So please follow my first suggestion or have a look at the new attachment I posted. The version has been changed to 10.0 which you should have no problem opening.
    For you last question, the connector was not routed correctly becasue of the following two reasons: 1). all the components were placed in the right-bottom corner, therefore there was not enough space for the connector to be routed. 2). you have to consider the width of the trace when routing. Go to Autoroute-> Autoroute/Routing options. Checkmark "Auto Adjust Trace Width" and click OK. Then run the autorouting. You should be able to see all the connections are routed. Please see attached the file of such.
    Should you have any further questions, please feel free to ask.
    Have a good day! 
    Derek Z.
    National Instruments
    Attachments:
    lin2-1.ewprj ‏137 KB
    linusb1-2.ewprj ‏120 KB

  • Bottom round pad beneath square not updated according to design rules

    I saw this problem with the last couple of sets of boards I ordered so I decided to track it down.
    It turns out that if you have a throughhole component with a square pad on top and a round pad underneath that the round pad doesn't get updated according to design rules even though that is checked in the pad properties. 
    I was using the DIP8300 and DIP14300 footprints from the master database and I set up PCB design rules to set the annular ring to 100% of drill-radius so I could actually see some pad to solder to.  This works perfectly for all the pins except pin 1 and it even works there on the top layer.  If you go in and manually select that pad and look at the copper bottom layer, you can see that the annular ring hasn't been resized though.  If you change the shape to square or rounded square and change it back to round, it updates from the design rules properly.
    This is in v.11.  Not sure if this problem is still there in 12 ...
    Mike

    Hi Mike,
    I was able to re-produce the issue. Thank you for bringing it to our attention. I will report it to R&D.
    Regards,
    Tayyab R,
    National Instruments.

  • Custom Design Rules Error: importClass is not defined

    Hi everybody
    i have a problem with the Data Modeler 4.1 (Beta) custom design rules.
    in the version 4.0.3 i have some custom design rules with the option: importClass(javax.swing.JOptionPane);
    for the error exception and messageboxes.
    - in the version 4.0.3, this option works just fine
    - in version 4.1, this option raises an error
    If this option is changed in Version 4.1? or where is the error?
    Thanx for any idea, suggestion...
    Martin

    I have found the solution!
    in the version 4.0.3 the Data Modeler used Mozilla Rhino as engine and in the version 4.1 Oracle Nashorn.
    So in version 4.1 you must load compatibility script for use the ImportClass functionality.
    Example:
    // Load compatibility script
    load("nashorn:mozilla_compat.js");
    //Import der Java Class
    importClass(javax.swing.JOptionPane);

  • Custom Design rules on table partitions

    Hi
    I need to create several custom design rule at the table partition level.
    for example one of the rule is that
    for all table partitions
      if a table partition name begins with M
        then it should not be compressed
        and also should not be in tablespace called xyzHow do i go about enforcing this rule using the design rules

    Hi,
    here is simple example, you can improve it easily. In fact you have two rules and it's better to create two rules.
    var ruleMessage;
    var errType;
    var table;
    //define the function
    function checkPartitions(){
    ruleMessage = "";
    model = table.getDesignPart();
    tp = model.getStorageDesign().getStorageObject(table.getObjectID());
    result = true;
    if(tp!=null){
      partitions = tp.getPartitions().toArray();
      for(var i=0;i<partitions.length;i++){
       partition = partitions;
    if(partition.getName().startsWith("M") && "YES".equals(partition.getDataSegmentCompression())){
    result = false;
    ruleMessage = "Partition " + partition.getName()+" for table "+tp.getLongName()+ " cannot be compressed";
    break;
    tablespace = partition.getTableSpace();
    if(tablespace!=null && "xyz".equals(tablespace.getName()) && partition.getName().startsWith("M")){
    result = false;
    ruleMessage = "Partition " + partition.getName()+" for table "+tp.getLongName()+ " cannot be in tablespace xyz";
    break;
    return result;
    //call the function
    checkPartitions();
    you should define it for "Table" object. And your physical model should be open.
    Philip
    Edited by: Philip Stoyanov on Jan 10, 2012 4:53 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Net bridge design rule errors

    Multisim 10.1.197 and Ultiboard 10.1.197
    I could not get a net bridge to work in a Ultiboard layout, so I tried in a simplified circuit:  
    In Multisim, place a connector with several pins, for example HDR1X10.
    Place a DGND and GROUND. Connect the first to pin 1. Connect the second to pin 5.
    Transfer to Ultiboard
    Rotate HDR1X10 so the pins numbers increment left to right  
    Place traces on the top layer so the pads of a net bridge connects one trace to another 
    Place a net bridge, picking GND and 0 (also tried 0 and GND)
    This gives Design Rule Errors:
       Unused pin is connected to NET = GND
       Unused pin is connected to NET = 0  
    Is there a work around?  
     Ray

    I am having the  same problems.  This is a very important feature that needs to work since there is no proper work around.  This is always the case when there are ananlog and digital grounds that need to be kept separate, but also need to be connected somwhere in a very controlled fashion.  I've followed the instructions exactly but what I get is a net bridge with no nets assigned to it's terminals.  You can connect it up but you get the DRC errors as stated earlier.
    This can be manually fixed by going into the  netlist editor and selection each of the nets to be connected and adding on pin from the net bridge to each (NB1, pin _).  This removes the DRC error and everything is happy.
    The only problem is when you forward annotate again you lose the NB pin assignments and you have to edit the netlist again.
    I tried a part in MS with the net bridge as the footprint, but UB will not impor the net bridge when you do that.  To get around that I have a 'netconnect' part with just two dots and a silkscreen box around it.  This can be placed where you want the bridge and will import each time.  This is just a marker wheer you want the bridge to be.  You still have to place the bridge manually and edit the netlist to fix the DRC error.
    This is a bug.  I should be able to assign the netbridge as the footprint of an MS symbol and have it come in with the right netlist connections when I forward annotate.   Alternatively, the netbridge assignments should be made to stick when the netlist is imported again.
    David B

  • Sql datamodeler: Design rules

    Hello,
    In sql datamodeler you can check your design against a number of design rules.
    Is there a way you can influence these design rules?
    - can you say wheter a design rule is applicable or not?
    - can you change the severity?
    - can you change the rule (for instance other naming convention rules)
    Regards Erik

    Not at this stage. We want to allow users to modify them in the future. There are ways you can influence some of these. So on the Model Properties dialog their are Naming Options. If you change these, you can influence the design rules. Also, in the General Options there is a naming Standards section. So you can set naming standards here and these are used in conjunction with the Designer Rules.
    I'm working on a document about all the naming standards and design rules and how they are used. It's not yet available, but I'll put it onto the Data Modeling page when it's ready.
    Sue

  • UI Element Design Rules

    Hi All,
    Can anybody send link or pdf for the UI Element design rules.
    Thanks&Regards
    Suresh Kumar T
    Edited by: Suresh Kumar Thokala on Jan 1, 2008 7:43 AM

    hi,
    I mean that we have group,tranaperent containers,tray,layouts(Matrix,Grid,Flow,Row).What are the limitations & restrictions in use of UI Elements and also any performance problems if I change properties.
    Thanks&Regards,
    Suresh Kumar T

  • Data Modeler design rules warning

    When I apply the design rules to the relationel model Data Modeler warns me about both Primary keys and Foreign keys "with wrong naming standards is not recommended".
    However, I have designed the naming rules in the Tools => General Options => Naming Standard => Templates section for example like this: Primary Key: PK_{table abbr}_{column abbr} or like this {table abbr}_{column abbr}_PK and defined table and column abbreviations. Data modeler warns about either form, and since only recommended naming rules exists I do not understand the warning.

    The warning is shown if you deviate/rename the constraints from what is set in the templates, so having selected abbr from the variable list you should not be seeing the warning. We extended the variables to include the abbreviation and it looks like these have not been included in the validation. I have logged a bug to track that.
    Sue

  • Datamodeller Design rules

    When I validate a rational model I get the error Foreign key name has more than 18 characters.
    How do I addjust this validation rule?
    Regards Flemming

    Hi Flemming,
    there is a bug in model dialog that cause max name length settings for FK and index to be set to 18 when OK/Apply is pressed - it happens even without changing anything.
    As consequence - error message in design rules if there are foreign keys and indexes with name length>18.
    As workaround - design should be saved, then close and reopen will put proper length for FK and indexes.
    Philip

  • Design Rules ignore Plural in Glossary Editor

    I specified :
    Name Plural
    T TABLES Prime
    TASK TASKS Prime
    RUNNING Modifier
    I have a table named
    T_RUNNING_TASKS that failed the design rules check.
    It says TASKS is not in the glossary.
    But T_TASKS is ok....
    How come?

    Hi Joe,
    plurals are used in transformation from logical to relational - entity TASK will be transformed to table TASKS.
    Plural and name validation - table name is valid if it's single word and it's among plurals - well it also could be valid because it's in glossary as word or abbreviation.
    Philip

  • Discrepancy between browser & design view; Hor. Rule Question

    These are actually two issues, but I'm using one page as an example.  I'm encountering this throughout other pages on the site.
    Design view is absolutely killing me.  I get the layout correct, but in brower view (this is both FF and IE) the margin space is not consistent at top and bottom and throws the design out of whack.  Additionally, I love the look of horizontal rules, but there's a LOT of margin space around it.  I'd like to reduce it.  When I look in the code, I'm not seeing any errant p tags or  line breaks.
    Be advised the page I'm sending you is a child page from a template.  I've set up one editable region.  I've edited the padding / margin for the editable div on the template, which works well site-wide.  There's also a little bit of padding in the CSS "body_text" that controls the formatting.  It's cool site-wide as well.
    I don't have this page linked yet, so it's not published.  However, I've attached PDFs of the browser and design views, as well as the code as a word doc.  The actual editable text region has been shaded gray so you don't have to wade through the template stuff.
    Thanks.
    W!

    Often when you fix one code validation error, it takes care of several others.
    Line 153 and 156  - take out the background="filename.html" attribute in your <td> tags
    <td background="anniversaries.html"
    <td background="firstfedonthemove.html"
    Line 179 -  change this
    ... Masters of Education Degree in Instructional Technology.</div>
    to this
    ... Masters of Education Degree in Instructional Technology.</p> </div>
    Republish the page and see if that helps.
    Gotta run now.  Maybe Murray can pick up from here.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |
    Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • Misc Basic PL/SQL Application Design/Programming Questions 101 (101.1)

    ---****** background for all these questions is at bottom of this post:
    Question 1:
    I read a little on the in and out parameters and that IN is "by reference" and OUT and IN-OUT are by value. To me "by reference" means "pointer" as in C programming. So it seems to me that I could call a function with an IN parameter and NOT put it on the right side of an assignment statement. In other words, I'm calling my function
    get_something(IN p_test1 varchar2) return varchar2;
    from SP1 which has a variable named V_TEST1.
    So.... can I do this? (method A):
    get_something(V_TEST1);
    or do I have to do this (method B):
    V_TEST1 := get_something(V_TEST1);
    Also, although this may muddy the thread (we'll see), it seems to me that IN, since its by reference, will always be more efficient. I will have many concurrent users using this program: should this affect my thinking on the above question?
    -- ******* background *******
    So Far:<< I've read and am reading all over the net, read and reading oracle books from oracle (have a full safari account), reading Feurstein's tome, have read the faq's here.
    Situation Bottom Line:<< Have an enormous amount to do in a very little time. Lots riding on this. Any and all pointers will be appreciated. After we get to some undetermined point I can re-do this venture as a pl/sql faq and submit it for posting (y'alls call). Some questions may be hare brained just because I'm freaking out a little bit.
    Situation (Long Version):<< Writing a pl/sql backend to MS Reporting Services front end. Just started doing pl/sql about 2 months ago. Took me forever to find out about ref-cursor as the pipe between oracle and all client applications. I have now created a package. I've been programming for 20 years in many languages, but brand new to pl/sql. However, pl/sql sql has freed me from myriad of limitations in MS RS's. My program is starting to get big (for me -- I do a lot in a little) pks is currently 900 lines with 15 functions so far. Currently SP (pls) is back up to 800 lines. I get stuff working in the sp then turn it into a function and move it to the package.
    What does application do?:<<<< Back End for MS Reporting Services Web front end. It will be a very controlled "ad-hoc" (or the illusion of ad-hoc) web interface. All sql queries are built at run-time and executed via "open ref cusor for -- sql statement -- end;" data returned via OUT ref_cursor. Goal is to have almost 100% of functionality in a package. Calling SP will be minimalist. Reporting Services calls the SP, passes X number of parameters, and gets the ref_cursor back.
    Oracle Version: 10.2 (moving to 11g in the next 3 months).Environment: Huge DW in a massively shared environment. Everything is locked down and requires a formal request. I had to have my authenticated for a couple dbms system packages just to starting simple pl/sql programs.

    Brad Bueche wrote:
    Question 1:
    I read a little on the in and out parameters and that IN is "by reference" and OUT and IN-OUT are by value. To me "by reference" means "pointer" as in C programming. So it seems to me that I could call a function with an IN parameter and NOT put it on the right side of an assignment statement. The IN parameter is not passing by reference. It is passing by value. This means variable/value of the caller used as parameter, is copied to the (pushed) stack of code unit called.
    An OUT parameter means that the value is copied from the called unit's stack to the caller (and the current value of the caller's variable is overwritten).
    To pass by reference, the NOCOPY clause need to be used. Note that is not an explicit compile instruction. The PL/SQL engine could very well decide to pass by value and not reference instead (depending on the data type used).
    Note that the ref cursor data type and the LOB data types are already pointers. In which case these are not passed reference as they are already references.
    The NOCOPY clause only make sense for large varchar2 variables (these can be up to 32KB in PL/SQL) and for collection/array data type variables.
    As for optimising PL/SQL code - there are a number of approaches (and not just passing by reference). Deterministic functions can be defined. PL/SQL code can be written (as pipelined tables) to run in parallel using the default Oracle Parallel Query feature. PL/SQL can be manually parallelised. Context switches to the SQL engine can be minimised using bulk processing. Etc.
    Much of the performance will however come down to 2 basic issues. How well the data structures being processed are designed. How well the code itself is modularised and written.

  • Mail Rules Question

    I have a lot of email on my Gmail account. A semi significant portion of them are status updates, such as Facebook, Pownce, Netflix, and other site updates. In the past when I used POP, it wasn't such a big deal to keep these emails because Gmail offers something like 4GB of space. However, now that I am switching to IMAP, it's taken me forever sync with all 14,000 emails on the Gmail server.
    I don't want to have to do that again, especially not on my iPhone.
    My question is this: Is it theoretically possible to setup a mail rule to have a specific folder delete all its contents after a specified amount of time? Looking in the default mail rule options, there is the ability to delete email as it comes in, but not necessarily after, say, 30 days. I'm looking for something along the lines of, "every 30 days, delete everything in this mail folder."
    Any ideas?

    David Gimeno Gost wrote:
    Mail doesn’t provide that functionality, but you may set up a smart mailbox that displays the messages to be deleted, then manually delete whatever shows up there every once in a while.
    Yeah, that's what I figured.
    Another option is writing an AppleScript and selecting the "Run AppleScript" rule option, but I'm a) not 100% it's even possible, and b) rusty on AppleScript.

  • Forum for graphic design related questions?

    Does anyone know of any good graphic design discussion forums? I'm looking for a place to ask questions about typography, color, layout, etc.
    Thanks in advance.

    Not as much activity on soem of these, btu here are some good ones
    http://typophile.com/
    http://www.underconsideration.com/brandnew/
    http://www.howdesign.com/forum/

Maybe you are looking for