Set reference point in objects and measure distance

1) How can I set the reference point in objects?
  for example:  
        a) exactly in the center of a pad or a via
        b) exactly in any corner of the board outline
2) How can I measure the distance of two points with the maximum accuracy?
  for example:
        a) measure the distance between two pads or via
        b) measure the lenght of a line

dear Semaphore, thanx for your response.
I already use the ways that you refer me, but like this I can't measure with accuracy, or setting the zero reference is not guarantee that I set it exactly in the center of via or pad.
With grid seted in smallest option is difficult to target the center of a pad, and also is difficult to target the point in the edje of a line with accuracy. With ruler I also have the same problem, I cant be sure that the ruler is pointing exactly to the center of a via or pad.
That I need is a kind of a snap option to attach the mouse-cursor exactly in the center of an object, that can help me to target exactly in the center and have an accurate measurement or accurate set the zero reference without mistake.
Any other suggestion for accurate measurements?

Similar Messages

  • Set reference point for multiple objects in the middle of the document

    Hello Community,
    I want to mirror a layout.
    So I:
    1. Select all the objekts
    2. Set the reference point to the middle
    3. Mirror the objects
    BUT
    The reference point is the middle of all the OBJECTS. That leads to several objects crossing the border of my document because the layout isn't spread out evenly.
    I want to middle of the DOCUMENT to be the reference point. How can I do that?
    Thanks
    Christian

    Have you fiugured this out on your own?
    I just played around a bit and found a method, but it's not exactly intuitive. Select the object(s), then switch to the Rotate tool. The center of rotation will be defined as one of the transformation handles, but you can drag it to anywhere you like, so move it to the point that you want as the center of your mirror. Hold down the Alt/Opt key, and click the reflect button to make a mirrored copy. Without the modifier key the original objects will mirror their position around the repositioned reference.

  • Script to set reference point

    I need a script to set transform reference point at desired position without clicking in these tiny squares in the selectors, both in control panel or transform palette.
    I will bind these scripts to numpad keys with AutoHotKey and will be happy at last.
    Help me, please, I have little experience in scripting and see entry for grabbing this task.

    Look up Transformation in the references

  • How to set timer intervals for object + and a motion for entering stage

    Hi, I am making a simple game but I have a couple problems/queries.
    1) My game is a touch an object and you get a point game, currently the objects appear randomly over the screen, however I am trying to get it to slide into the screen similar to the Fruit Ninja game, but not limited to entering from one side, does anyone know how to set this?
    2) As I mentioned above my objects appear randomly, I have set a timer when I change the timer from 800 to another number, it just makes all the objects on the screen last for 800 milliseconds all at the same time then disappear and appear somewhere else on the screen for another 800 milliseconds and it repeats, what I am trying to do is make them come at different intervals, for example:
    Object 1 - constantly appears, so when the 800 millisecond is over, it comes back on a different part of the stage
    Object 2 - I want it to appear every 5 seconds, so when the 800 millisecond is over it will come back on the stage in 5 seconds, but not instantly like Object 1
    But I have no idea how to do this :/ anyone have the code needed for me to do this?
    Sorry for the long questions, I only asked because I really am stuck, I have been trying to do this for over 2 weeks now.
    Thanks very much.
    My Code
    [Code]
    //importing tween classes
    import fl.transitions.easing.*;
    import fl.transitions.Tween;
    import flash.utils.Timer;
    //hiding the cursor
    Mouse.hide();
    var count:Number = 60;
    var myTimer:Timer = new Timer(1000,count);
    myTimer.addEventListener(TimerEvent.TIMER, countdown);
    myTimer.start();
    function countdown(event:TimerEvent):void {
    myText_txt.text = String((count)-myTimer.currentCount);
    if(myText_txt.text == "0"){
    gotoAndStop(5)
    //creating a new Star instance;
    var star:Star = new Star();
    var box:Box = new Box();
    var bomb:Bomb = new Bomb();
    //creating the timer
    var timer:Timer = new Timer(800);
    var timerbox:Timer = new Timer(850);
    var timerbomb:Timer = new Timer(1000);
    //we create variables for random X and Y positions
    var randomX:Number;
    var randomY:Number;
    //variable for the alpha tween effect
    var tween:Tween;
    //we check if a star instance is already added to the stage
    var starAdded:Boolean = false;
    var boxAdded:Boolean = false;
    var bombAdded:Boolean = false;
    //we count the points
    var points:int = 0;
    //adding event handler to the timer;
    timer.addEventListener(TimerEvent.TIMER, timerHandler);
    //starting the timer;
    timer.start();
    function timerHandler(e:TimerEvent):void
              //first we need to remove the star from the stage if already added
              if (starAdded)
                        removeChild(star);
              if (boxAdded)
                        removeChild(box);
              if (bombAdded)
                        removeChild(bomb);
              //positioning the star on a random position
              randomX = Math.random() * 800;
              randomY = Math.random() * 1280;
              star.x = randomX;
              star.y = randomY;
              star.rotation = Math.random() * 360;
              box.x = Math.random() * stage.stageWidth;
              box.y = Math.random() * stage.stageHeight;
              box.rotation = Math.random() * 360;
              bomb.x = Math.random() * stage.stageWidth;
              bomb.y = Math.random() * stage.stageHeight;
              bomb.rotation = Math.random() * 360;
              //adding the star to the stage
              addChild(star);
              addChild(box);
              addChild(bomb);
              //changing our boolean value to true
              starAdded = true;
              boxAdded = true;
              bombAdded = true;
              //adding a mouse click handler to the star
              star.addEventListener(MouseEvent.CLICK, clickHandler);
              box.addEventListener(MouseEvent.CLICK, clickHandlerr);
              bomb.addEventListener(MouseEvent.CLICK, clickHandlerrr);
    function clickHandlerr(e:Event):void
              //when we click/shoot a star we increment the points
              points +=  5;
              //showing the result in the text field
              points_txt.text = points.toString();
                        if (boxAdded)
                        removeChild(box);
              boxAdded = false;
    function clickHandler(e:Event):void
              //when we click/shoot a star we increment the points
              points++;
              //showing the result in the text field
              points_txt.text = points.toString();
              if (starAdded)
                        removeChild(star);
              starAdded = false;
    function clickHandlerrr(e:Event):void
              gotoAndPlay(5);
    [/Code]

    The only thing that affects TopLink is the increment by, as increasing this is what allows TopLink to reduce the number of times it needs to go to the database to get additional numbers. Ie, an increment value of 1 means TopLink needs to go the database after each insert; an increment value of 50 allows it to insert 50 times before having to get a value from the sequence. The cache on the sequence object in the database affect the database access times. While it may improve the access times when the sequence number is obtained from the database, but I believe the network access to obtain the sequence is the greater concern and slow down for most applications. It all depends on the application usage and design though - an increment (and application cache) of 50 numbers seems to be the best default.
    I cannot say what effect the cache vs nocache settings will have on your application, as it will depend on the database load. Only performance testing and tuning will truly be able to tell you whats best for your application.
    Best Regards,
    Chris

  • Set reference point for coordinates

    How to set the reference point for a rectangle in coordiate system using javascript? I want to set this value before setting the geometricBounds property
    Thanks.

    Hi,
    Try this:
    app.activeWindow.transformReferencePoint = AnchorPoint.BOTTOM_RIGHT_ANCHOR;
    Options:
    AnchorPoint.BOTTOM_CENTER_ANCHOR
    AnchorPoint.BOTTOM_LEFT_ANCHOR
    AnchorPoint.BOTTOM_RIGHT_ANCHOR
    AnchorPoint.CENTER_ANCHOR
    AnchorPoint.LEFT_CENTER_ANCHOR
    AnchorPoint.RIGHT_CENTER_ANCHOR
    AnchorPoint.TOP_CENTER_ANCHOR
    AnchorPoint.TOP_LEFT_ANCHOR
    AnchorPoint.TOP_RIGHT_ANCHOR
    Hope that helps.
    Marijan (tomaxxi)
    http://tomaxxi.com

  • User set cliping points for Highlight and Shadow

    OK I know Lightroom 3 is currently available as a Beta version and is not complete and there may be more features to come.
    But
    Wouldn't it be nice in the develop module to set the point at which you get clipping warnings for highlight and shadow.
    I ask this as a lot of my work goes straight out for repro, and it would be usefull to be able to set the highlight  to say 90-95% and the shadow to about 15-20%.
    OK I know I can run  a tool over the image and see what the percentage is, but it would be a lot esier if I could set my own limits and just watch for the red and blue "blobs"
    Just a sugestion
    John c

    I too find the FTP server implementation to be sorely lacking in OS X Server. There is no option to share out only the designated FTP root folder without showing the other share points. It seems impossible to lock down subdirectories to specific users with letting them see the contents of the root directory. Maddening!
    I'm looking at other FTP server options. Rumpus comes highly recommended, but I also just found CrushFTP which also looks intriguing, especially its option to integrate with LDAP - something that Rumpus does not do. CrushFTP is also significantly less expensive.
    -Doug

  • Reference Objects and Pooling

    I am trying to create a Pool class that does not require the caller to explictly return the objects. I thought I might be able to use Phantomreference or WeakReference to detect when the user no longer had reference to the object and thus reclaim it and put it back in the pool. The issues with these are this:
    1) WeakReference is cleared (clear()) before it is added to the ReferenceQueue not to mention the object is finalised before as well.
    2) PhantomReference is not cleared but it is finalized. Not that it matters because you can never access the referant.
    So what I did is subclass PhantomReference and created an Interface called Proxy. The subclass would take a proxy referant containing the actual reclaimable object and it would store the relaimable object as a hard referant and the proxy to that as the Phantom referant. Thus when the client was no longer using the proxy the erference would be added to the reference queue and I could get the actual reclaimable object as opposed to the proxy via a call to get().
    The problem with this approach has been that not all classes lend well to being proxied. The idea situation would be that the Proxy would extend the actual class thus CASTING would work as normal.
    public StringBufferProxy extends StringBuffer implements Proxy {
    private StringBuffer proxy;
    public StringBufferProxy(StringBuffer proxy)
    this.proxy = proxy;
    public Object getProxied()
    return proxy;
    public void anyMethod()
    proxy.anyMethod();
    The obvious problem with the above is that StringBuffer is final and thus can't be extended. Similar problems with Thread as it relates to its final methods. So in the end after going around in circles for awhile I realized this concept would only really be practicle for Interface based classes.
    Has anyone else worked this problem and solved it?
    }

    all cases the referant has allready been finalized. In...
    So what I tried to do was create a proxy class that
    wraps the actual pooled item....
    This has numerous problems.You may like my method. Someone needs to tell me if this is a ``bad thing'' but I've used it quite successfully. I wrote a cache class a little while ago (very similar to your Pool needs). It's a cloning cache. Let me simplify a VERY complex cache:
    class Clone implements Cloneable {
        private Object o;
        Clone(Object o) {
            super();
            this.o = o;
        public Object getObject() { return o; }
        public Clone getClone() throws ... {
            return (Clone)super.clone();
    } // CloneThis sets up the clone, now:
    class CloneReference extends WeakReference implements Comparable { // or extend any Reference that makes sense to you
        private Clone clone = null;
        CloneReference(Clone referent, ReferenceQueue q) throws ... {
            super(referent,q);
            try {  // don't really have to try, but...
                clone = (Clone)referent.getClone();
            } catch(Exception dowhatever) { ... }
        public Object getObject() {
            Object ret = null;
            if(clone!=null) ret = clone.getObject();
            return ret;
        // now implement Comparable
    } // CloneReferenceNow in your Pool maintain your ReferenceQueue, when you add a new Object into it, purgue this queue. In my cache I have a CacheEvent/CacheListener that is event fired during the purging of this queue. More later. When adding a new object into your Pool, add a reference to a new CloneReference object:
    private ReferenceQueue q;  // init elsewhere
    public void add(Object o) throws ... {
        CloneReference cr = new CloneReference(
              new Clone(obj)
            , q
        // now add this cr, not the o
    }When purging the queue, poll() your ReferenceQueue and then obtain the CloneReference. Get your object back out (this will not be null or yet finalized) using CloneReference.getObject(), then fire off your interpretation of my CacheEvent to your version of my CacheListener.
    Note that the ReferenceQueue maintains a reference to the original Clone, but the Reference itself has a clone of that Clone which we will NOT be GCd or nullified still maintaining a reference to the original object.
    If you need further help I can probably provide a truncated source of a simple Cache.

  • Actions which include Set Reference Pt via Transform Panel failing consistently during playback

    The title pretty much says it all. I have two different Windows XP machines, both got upgraded to CS 6 (the x.0.0 release, the Release Notes for the x.0.1 don't directly address this, but if this topic pulls up blank, I may go that route... it requires running an approval gauntlet via IT, otherwise I'd already have done it).
    Repeatable problem is this:
    0. Create and select an object. Even a basic rectangle will do.
    1. Creat a new Action.
    2. Begin recording.
    3. In the Transform Panel, specify a new Reference Point that isn't the lower right (if your machines are like mine, you will get a "double hit" of the same Action step, no matter how gently you click on the new Reference Point). I say "not the lower right" for a reason in a second.
    4. Feel free to make a couple other numeric transforms in the Transform Panel. I tried adjusting Width and Height.
    5. Stop recording.
    6. Undo back to the original state (though I suppose it isn't necessary to deomnstrate the point)
    7. Run the Action.
    First thing, the Set Reference Point seems to be utterly ignored, *or* sometimes it sets to the lower right and stays stuck there. I made one Action that was just a series of moving the Reference Point around a rectangle clockwise. The Action failed after the first Set and then stayed locked on the lower right for no discernible reason.
    In an attempt to revisit some old Actions that were working without fail under 5.5, I loaded those. For those imported Actions, every time playback hit a step calling for a "Transform Panel," it would return an error dialog "The object "Transform Panel" is not currently available."
    What in the blue blazes is going on here? Needless to say, this is taking a wrecking ball to our dozen mission-critical Action Sets, which all rely upon setting transforms to fit particular spaces automatically, precisely and consistently, and which, I might add, worked fine under 5.5.
    On the positive side, the bug where movement of objects by their X,Y coordinates via the Transform Panel during Playback seems to be fixed. So, I guess there's that.
    Help?
    P.S. Addendum: if anyone on CS6 (16.0.0 and/or 16.0.1) can at least run through the test case above and either confirm or deny that I am crazy to be witnessing this, that would be helpful, too.

    I FIXED IT!!!
    How? I made a simple Action that just recorded my changing the reference point around an object clockwise, saved the Action, then cracked it open in a text editor (Wordpad, in my case).
    Most of the items aren't terribly useful (for instance, Adobe, why are dialog texts in machine code rather than human-readable strings? That's be darn handy), BUT at the end of each step of the Action (called Events), I noticed that there was a variable being set to "8" every time. Yes, there are 9 possible reference points, but you need to think like a programmer/computer here. Yep, the first point isn't "1," it's "0." So, counting left-to-right, top-to-bottom gives you...
    0 = Top Left
    1 = Top Middle
    7 = Bottom Middle
    8 = Bottom Right
    So it isn't the playback that's at fault, it's THE ACTION RECORDER getting it wrong. I changed that last "8" variable to a "1" and brought it back into Illustrator and ta-da! My reference point gets accurately set at the Top Middle and proceeds from there! YAY! HAPPY DANCE!
    PS Adobe, YOU'RE WELCOME.

  • Reference Points in Network are NOT correct

    Hi Experts,
    While performing BOM transfer I have occured one error.
    I have maintained reference point in activity and maintained reference point in CS72 .
    whiile running CN33 t code it is telling that "Reference Points in Network are NOT correct

    Yes .
    I maintained reference in config.Still this error is occuring
    Regards,
    Mohan.

  • How do I keep the Reference Point setting at top, left

    The nine-by-nine grid in the top left corner (where the vertical and horizontal rulers meet) won't stay selected as the top left setting depending on what I select in my document. Sometimes it's the top left, sometimes it's the bottom right and sometimes it's the top middle. How can I set it so that every box I select in a document will give me the top left reference point (X-Y coordinate)?
    I'm proofing a document to make sure it's set-up correctly and all the page-heading colored boxes are  starting at the same X-Y coordinate, have the same width and the next box down on the page starts at the proper location. None of these boxes were created on a master page so I have to check each one. (And even if they were, they've all been released from the master to change their colors and place images.) In other words, on one page there is a colored box across the top that is 10p6 high, so the next box down (vertically) needs to start at the X-Y coordinate of 0, 10p6. But when I click on it the reference point is not always at the top left. So I click on the box, then click on the top left reference point, check the X-Y location and height of the box, then click on the next box down the page and click on the top left reference point and compare the X-Y location to the previous box's height.
    I have selected the top left reference point with no documents open to set that as my default preference but I didn't create this document.
    InDesign CS5 7.0.4
    Mac OS X 10.6.8

    @Peter / @FergyMac – in case of rotated objects the reference point will change from object to object.
    Not rotated object selected:
    Rotated object selected:
    Uwe

  • Object and reference accessing for primitives, objects and collections

    Hi,
    I have questions re objects, primitives and collection accessing and references
    I made a simple class
    public class SampleClass {
         private String attribute = "default";
         public SampleClass()
         public SampleClass(SampleClass psampleClass)
              this.setAttribute(psampleClass.getAttribute());
              if (this.getAttribute() == psampleClass.getAttribute())
                   System.out.println("INSIDE CONSTRUCTOR : same object");
              if (this.getAttribute().equals(psampleClass.getAttribute()))
                   System.out.println("INSIDE CONSTRUCTOR : equal values");
         public void setAttribute(String pattribute)
              this.attribute = pattribute;
              if (this.attribute == pattribute)
                   System.out.println("INSIDE SETTER : same object");
              if (this.attribute.equals(pattribute))
                   System.out.println("INSIDE SETTER : equal values");
         public String getAttribute()
              return this.attribute;
         public static void main(String[] args) {
    ...and another...
    public class SampleClassUser {
         public static void main(String[] args) {
              SampleClass sc1 = new SampleClass();
              String test = "test";
              sc1.setAttribute(new String(test));
              if (sc1.getAttribute() == test)
                   System.out.println("SampleClassUser MAIN : same object");
              if (sc1.getAttribute().equals(test))
                   System.out.println("SampleClassUser MAIN : equal values");
              SampleClass sc2 = new SampleClass(sc1);
              sc1.setAttribute("test");
              if (sc2.getAttribute() == sc1.getAttribute())
                   System.out.println("sc1 and sc2 : same object");
              if (sc2.getAttribute().equals(sc1.getAttribute()))
                   System.out.println("sc1 and sc2 : equal values");
    }the second class uses the first class. running the second class outputs the following...
    INSIDE SETTER : same object
    INSIDE SETTER : equal values
    SampleClassUser MAIN : equal values
    INSIDE SETTER : same object
    INSIDE SETTER : equal values
    INSIDE CONSTRUCTOR : same object
    INSIDE CONSTRUCTOR : equal values
    INSIDE SETTER : same object
    INSIDE SETTER : equal values
    sc1 and sc2 : equal values
    ...i'm just curios why the last 3 lines are the way they are.
    INSIDE SETTER : same object
    INSIDE SETTER : equal values
    sc1 and sc2 : equal values
    how come while inside the setter method, the objects are the same object, and after leaving the setter method are not the same objects?
    Can anyone point a good book that shows in detail how objects, primitives and collections are referenced, especially when passed to methods. Online reference is preferred since the availability of books can be a problem for me.
    Thanks very much

    You are confusing references with objects.
    This compares two object references:
    if( obj1 == obj2 ) { // ...Whereas this compares two objects:
    if( obj1.equals(obj2) ) { // ...A reference is a special value which indicates where in memory two objects happen to be. If you create two strings with the same value they won't be in the same place in memory:
    String s1 = new String("MATCHING");
    String s2 = new String("MATCHING");
    System.out.println( s1 == s2 ); // false.But they do match:
    System.out.println( s1.equals(s2) ); // trueIf you're using a primitive then you're comparing the value that you're interested in. E.g.
    int x = 42;
    int y = 42;
    System.out.println(x == y); // trueBut if you're comparing references you're usually more interested in the objects that they represent that the references themselves.
    Does that clarify matters?
    Dave.

  • Set Default Reference Point to something other than center?

    I am making an action to place an smart object into my images to make a watermark...i would like for the image to place in the bottom right corner of the image but since the reference point is set to center it obviously places the image into the dead center of the piece.
    Is there a way to set the default reference point to the bottom right reference point by default so my placed image will automatically go to the bottom right of the image and so my action can run through completely without me having to create a dialog box each time to move it where i need it?
    I am using CS2 on both Mac (x10.5.1) and Windows 2000.
    Thank you,
    Leslie

    Look at this video tutorial:
    http://av.adobe.com/russellbrown/BrandingSM.mov

  • References to objects and variables and their values.

    When does declaring a primitive type, variable or object as another objectm primitive type, or variable assign the variable THAT VALUE, and when does it just make it another reference to that object. And when it DOES just refer to that object, how do I set it to the value instead of just a reference?
    I can elaborate if necessary. I hope I was clear enough

    KeganO wrote:
    Yes, that's very clear. So all I want to know now is, if I had in my code something like
    Point a = new Point(1, 1);
    then say 50 lines later, I want to create a new point object, with the same VALUE as a but does not refer to the same object. How would I do that?That depends on the class. Look at Point's docs. If it implements Cloneable, you can call clone(). If it has a constructor that takes a reference to a point as an argument (copy constructor), you can use that. Otherwise you'll have to extract the two values and call new Point(oldPointX, oldPointY).
    Some classes you might not be able to do it at all.
    There's no guaranteed way to do it provided by the language though. It all depends on whether the class is implemented to provide it.
    >
    Also, what are the code tags?When you put code into a forum message, in order to preserve formatting, you put it between [code] and [/code].
    [code]
    for (int i = 0; i < 10; i++) {
    if (something) {
    doStuff(i);
    [/code]
    becomes
    for (int i = 0; i < 10; i++) {
      if (something) {
        doStuff(i);
    }

  • New-CMTaskSequenceMedia Help : Object Reference Not Set to Instance of Object

    Having trouble creating a script to automate creation of bootable task sequence media. The following returns "Object Reference not set to an instance of an object" and I can't seem to figure it out:
    Import-Module (Join-Path $(Split-Path $env:SMS_ADMIN_UI_PATH) ConfigurationManager.psd1)
    cd CM1:
    $hash =@{}
    $MPServers = @("Server003.fqdn.com","Server004.fqdn.com","Server005.fqdn.com")
    $StartDate = (Get-Date -Format "MM/dd/yyyy.HH:mm:ss").ToString()
    $EndDate = "08/07/2025.12:12:12"
    <#This section to be finished later:
    #$hash.Add("SMSTSPreferredAdvertID","CM10017A")
    #$hash.Add("OSDComputerName","BLDTMP08R2")
    #$hash.Add("SMSTSPreferredAdvertID","CM100169")
    #$hash.Add("OSDComputerName","BLDTMP2012")
    #>
    $hash.Add("SMSTSPreferredAdvertID","CM10016A")
    $hash.Add("OSDComputerName","BLDTMP12R2")
    $hash.Add("NBUType","NONBU")
    $hash.Add("citrixyn","CITRIXOFF")
    $hash.Add("ovoyn","OVOOFF")
    $hash.Add("IsAutomation","YES")
    New-CMTaskSequenceMedia -BootableMediaOption -MediaPath "c:\temp\ISOName.iso" -BootImageId "CM10008F" -MediaInputType "CDDVD" -DistributionPointServerName "Server023.fqdn.com" -ManagementPointServerName "Server003.fqdn.com","Server004.fqdn.com","Server005.fqdn.com" -MediaMode "Dynamic" -ProtectPassword $false -AllowUnattendedDeployment $true -CreateMediaSelfCertificate $True -EnableUnknownSupport $True -StartDate $StartDate -ExpirationDate $EndDate -Variable $Hash

    We are running R2 CU2.
    When I ran the command with -Verbose I recieved:
    PS CM1:\> C:\Users\INAFN\Documents\codeBin\IsoGenerator.ps1
    VERBOSE: Performing operation "New" on Target "TaskSequenceMedia: New".
    VERBOSE: Executing WQL query: SELECT * FROM SMS_BootImagePackage pkg WHERE pkg.ActionInProgress!=3 And pkg.PackageID ='CM10008F'
    VERBOSE: Query returned 1 results.
    VERBOSE: Executing WQL query: Select dp.* from SMS_DistributionPoint As ref Join SMS_DistributionPointInfo As dp On ref.ServerNALPath=dp.NALPath and ref.SiteCode=dp.SiteCode Where ref.PackageID='CM10
    008F' And dp.ServerName ='Servername.Domain.Com'
    VERBOSE: Query returned 1 results.
    VERBOSE: Executing WQL query: SELECT dp.ServerNALPath, dp.State, oci.SourceSize FROM SMS_PackageStatusDistPointsSummarizer AS dp JOIN SMS_BootImagePackage AS pkg ON pkg.PackageID=dp.PackageID JOIN SM
    S_ObjectContentInfo as oci on oci.PackageID=pkg.PackageID WHERE dp.PackageID='CM10008F' AND pkg.ActionInProgress=0
    VERBOSE: Query returned 30 results.
    VERBOSE: Executing WQL query: SELECT scf.* FROM SMS_SCI_SysResUse AS scf JOIN SMS_SITE AS sit ON sit.SiteCode = scf.SiteCode WHERE scf.RoleName='SMS Management Point' AND site.Type != 1
    VERBOSE: Query returned 5 results.
    New-CMTaskSequenceMedia : Object reference not set to an instance of an object.
    At C:\Users\INAFN\Documents\codeBin\IsoGenerator.ps1:25 char:1
    + New-CMTaskSequenceMedia -BootableMediaOption -MediaPath c:\temp\ISOName.iso -BootIm ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [New-CMTaskSequenceMedia], NullReferenceException
    + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.ConfigurationManagement.Cmdlets.Osd.Commands.NewTaskSequenceMediaCommand
    Since it seemed to fail while pulling the MPs I switched to using just one MP as you had above, this time I get a different error:
    PS CM1:\> C:\Users\INAFN\Documents\codeBin\IsoGenerator.ps1
    VERBOSE: Performing operation "New" on Target "TaskSequenceMedia: New".
    VERBOSE: Executing WQL query: SELECT * FROM SMS_BootImagePackage pkg WHERE pkg.ActionInProgress!=3 And pkg.PackageID ='CM10008F'
    VERBOSE: Query returned 1 results.
    VERBOSE: Executing WQL query: Select dp.* from SMS_DistributionPoint As ref Join SMS_DistributionPointInfo As dp On ref.ServerNALPath=dp.NALPath and ref.SiteCode=dp.SiteCode Where ref.PackageID='CM10
    008F' And dp.ServerName ='Servername.Domain.Com'
    VERBOSE: Query returned 1 results.
    VERBOSE: Executing WQL query: SELECT dp.ServerNALPath, dp.State, oci.SourceSize FROM SMS_PackageStatusDistPointsSummarizer AS dp JOIN SMS_BootImagePackage AS pkg ON pkg.PackageID=dp.PackageID JOIN SM
    S_ObjectContentInfo as oci on oci.PackageID=pkg.PackageID WHERE dp.PackageID='CM10008F' AND pkg.ActionInProgress=0
    VERBOSE: Query returned 30 results.
    VERBOSE: Executing WQL query: SELECT scf.* FROM SMS_SCI_SysResUse AS scf JOIN SMS_SITE AS sit ON sit.SiteCode = scf.SiteCode WHERE scf.RoleName='SMS Management Point' AND site.Type != 1
    VERBOSE: Query returned 5 results.
    VERBOSE:
    VERBOSE:
    New-CMTaskSequenceMedia : ConfigMgr Error Object:
    instance of SMS_ExtendedStatus
    Description = "The package name must be at least 1 and less than 50 characters in length.";
    ErrorCode = 1078462208;
    File = "e:\\qfe\\nts\\sms\\siteserver\\sdk_provider\\smsprov\\ssptspackage.cpp";
    Line = 931;
    ObjectInfo = "";
    Operation = "PutInstance";
    ParameterInfo = "";
    ProviderName = "ExtnProv";
    StatusCode = 2147749889;
    At C:\Users\INAFN\Documents\codeBin\IsoGenerator.ps1:25 char:1
    + New-CMTaskSequenceMedia -BootableMediaOption -MediaPath c:\temp\ISOName.iso -BootIm ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (Microsoft.Confi...nceMediaCommand:NewTaskSequenceMediaCommand) [New-CMTaskSequenceMedia], WqlQueryException
    + FullyQualifiedErrorId : UnhandledExeception,Microsoft.ConfigurationManagement.Cmdlets.Osd.Commands.NewTaskSequenceMediaCommand
    PS CM1:\>

  • Reference to C# objects in TestStand - how to save and retreive them

    I am new to LabView and TestStand.
    I want to use 2 .NET objects in those applications
    In Labiew, I successfully created the objects, manipulate the functions through VIs and closed the references.
    While I could use the VIs for TestStand, I would rather use the DLL directly.
    I am able to create both objects in a sequence, but I have problems with the following:
      - I don't know how to save the reference to the object after the constructor is run.
        - is the object stored in Globlal variables? I tried 'RunState.Engine' but it does not work
      - I don't know how to get the reference back in the other steps where I want to reuse the object to invoke a method on.
      - Once I can do the above, I need to get it to work in the 'batch' or 'parallel' modes.
         I am using successfully the 'RunState.TestSockets.MyIndex' to select my testing resources,
         but I am still confuse as where the array of objects would be.
         Note that I already set the number of DUT <> 1 and I can create successfully my 2 objects in X instances.
    Thanks,
    Daniel Coupal

    dcoupal,
    Getting the reference to the object involves specifying that as a return value in one of your parameters when you specify the module for that action. Inside of the parameters table you can also save that return value as a local object reference and then use it later on in the sequence.
    Regarding your second question, I'm not sure what the array of objects is that you're referring to but this KB might be of some assistance.
    Message Edited by Jon M on 11-01-2006 12:44 PM
    Test Engineer - CTA

Maybe you are looking for

  • TextEdit on a Small Screen?

    Hi, I have been trying to use dictation. I can't use it in LibreOffice, due to old bugs and a new regression, but I can use it in TextEdit, and copy and paste. Unfortunately, TextEdit shows the text at about half size. If I try to zoom in, then TextE

  • Error when assigning SID while uploading text in the info-object of the DSO

    Hi I have a scenario where I need to extract a char 60 field from R/3 in the DSO. I have created the info-object which is char 60 which has the master data text activated. In the DSO transformation I have mapped it to the R/3 field. While activating

  • Starting Managed Server using Node Manager Command Line

    Hi, I've configured the Node Manager and it is connected to the Admin Server without problem. Now I wanted to start the Managed Server through the console but it is failing and my guess is the command line used syntax is not correct. My question is,

  • Mounting a disk opens a finder window

    Hello I have a problem where when a specific hard drive mounts on the desktop, it opens the finder window for a specific folder. I have verified that this is the case by ejecting the disk, and remounting it using Disk Utility. I've tried rebuilding t

  • How can I format my Nokia 311?

    How to format nokia asha 311? and how to delete a virus inside it? Moderator's note: We amended the title of this post as we moved it to the most appropriate board.