How to browse the content 3D model

Team,

I work with an IFC file that has been converted to PDF using Tetra4D and I would like to program it to the model using Javascript. The code example below has been modified a little and always returns the error that it cannot find a mesh name in the model. My question concerns the getAnnots3D function. How do I point the function to the bottom inside the model tree to the appropriate level to reach objects (floors of a building) to run my code on:

initialize() function

{

Console.println ("");

Console.println ("checking to see if the 3D Annotation has been activated again... ») ;

If (waitingFor3DActivated)

{

A3D var = getAnnots3D (0) [0];

If (a3d.activated)

{

waitingFor3DActivated = false;

Console.println ("... 3D annotation is activated. ») ;

app.clearInterval (timeout);

context3D = a3d.context3D;

layers = context3D.createNewLayersManagerObject ();

layers.turnOnMessagesInTheConsole ();

layers.addPartToLayer ("FIRST PLAN of FLOOR", 0);

This is the error I get:

* request to add mesh "PLAN FIRST FLOOR" to the layer 0

* Oops - I can't find a network named "PLAN FIRST FLOOR" to add to the layer 0

I changed the entry point for the node several times on getAnnots3D of 1-6 like so: getAnnots3D (0) [1]... getAnnots3D (0) [6], but I have had no success running through the 3D model to go far enough down to carry out.

Thanks for any idea that you can provide and good luck,

H

The getAnnots3D parameter is the page number, and it returns a table. If you have a page in the document and that a single 3D annotation, then you use getAnnots3D (0) [0]. He has to work in your case, because the script is to answer.

JavaScript in Acrobat don't like the names of nodes with spaces. Re-export model with variable-safe names (camelcase, features underscore, etc) and it will work. There is no concept of crossing a 'tree' in JavaScript - each node is a single SceneObjectList - effectively a table - they are just a reference to the parent node if there is one.

BTW - if you need the layersManager class, do not. 99% of what people want to do with a 3D scene is easier to do in the code base.

Tags: Acrobat

Similar Questions

  • How to replace the contents of the settings/passwords backup server / current browser bookmarks?

    Classic scenario: after the bookmark long manual organization Firefox Sync adds trash of its server to my laptop or tablet.

    Where can I find how to replace the content of the backup of the server by settings/passwords / current browser bookmarks? Stupid me, I put a new synchronization and lost this ability.

    It is not recommended to go back to the old version of Sync

    The old version is removed he'll stop being available soon, it takes getting used to using the new version.

    IIRC, it is actually possible to force synchronization of the old working with Fx29 & Fx30 using an old profile or preferences of piracy, but I don't think I should encourage users to try this, but it would be better than using an older version of Firefox which is really bad. In fact using an old outdated version of Firefox is so bad, that it is customary to recommend using a browser on alternative day of someone else instead.

    Firefox ESR is aimed at corporate users, definitely, at the moment, it will use the synchronization of the former. Who will update soon to use synchronization well again, and this time, I guess the synchronization of the former will probably totally frowned upon for example are not available at all.

    It is possible to use the feedback system to leave a short comment on Sync. I would recommend this making, but at least to make very many people of spirit comments that I doubt will have no effect.

  • How to see the content of what's currently on my iCloud of this site

    How to see the content of what's currently on my iCloud.  I would like to see these files presented in a display of file manager type in order to sort and remove if necessary.

    Go to iCloud.com, then click on your iCloud drive icon.  I hope this is what you mean or what you are looking for.

    iCloud Drive FAQ - Apple Support

  • Browse the contents of the hard disk of the target in real time

    Hello

    Is there an easy way to browse the content of the hard drive on a real-time target by using the file path control (or another type of control)?

    What I have in my application is a PC real-time desktop (running on PharLap) who has a Main.vi running on it. There are a few configuration files (for this VI) I want to be able to read and record to that would be stored on the hard drive of the target in real time. However, when the application runs and I hit the Browse button, it displays the contents of the Windows machine and not the machine in real time. Is there something I'm missing?

    Please note that I can send via FTP on the Windows computer to the target in real time and can interact with the drive of the target in real time without any problem.

    Thank you.

    Mike

    If you LV 2013 actually use WebDAV screws thus:

    http://digital.NI.com/public.nsf/allkb/4EBE45E8A816B19386257B6C0071D025

    http://zone.NI.com/reference/en-XX/help/371361K-01/lvcomm/WebDAV/

  • How to restore the contents of the folder workstation in the default format in Windows XP?

    Dear Sir or Madam:

    I have a desktop of Microsoft Windows XP Home Edition Version 2002 Service Pack 3.

    Contents of the my computer folder is not in the correct format, I want whatever it is corrupt.

    How to restore the contents of the folder workstation to the original format?

    The first JPEG image is the content of the folder post current work that has the corrupted display format.

    The second JPEG image is the content of the folder post original work that is in the correct format.

    Please reply back soon.

    Thank you.

    Looks like you saw. Rearrange icons by | Name. Try to organize by Type and other options while keeping rearrange icons by | Show in groups were also checked.
     
  • How to compare the content of two Wordpad / documents notebook without reading them line by line?

    How to compare the content of two Wordpad / documents notebook without reading them line by line?

    Hello

    Without this feature is included in the operating system.

    However, you can use your favorite search engine to look for software that needs to perform these tasks.

    WARNING of THIRD PARTY SOFTWARE: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information helps.

  • How to view the contents of the c drive since it is almost full despite the movement of documents, etc. on the D drive

    I moved the documents, pictures, music etc all of drive D and removed all of the excess programs. Despite this C is always showing almost complete. How to see the content?

    I moved the documents, pictures, music etc all of drive D and removed all of the excess programs. Despite this C is always showing almost complete. How to see the content?

    Buna,

    See if this little program will help you to tell you what is causing this lack of space for you problem

    http://www.Jam-software.com/treesize_free/

    Revedere.

  • How to print the contents of a hard drive?

    Title: list of files on a specific drive.

    How to print the contents of a hard drive?  I would like to be able to remove the old files, but it would be easier if I could print the content rather than scroll through the file by file.

    Hello

    These should help:
     
    How to save and print a list of directory for a file and the folder of Vista (Windows 7 is the)
    same)
    http://www.Vistax64.com/tutorials/114593-file-folder-directory-list-print-save.html

    How to add view and directory of print in the context Menu in Vista and Windows 7 file
    http://www.Vistax64.com/tutorials/146031-context-menu-add-view-print-file-directory.html

    Use this free program which is great:

    KarenWare - printer - free directory
    http://www.KarenWare.com/PowerTools/ptdirprn.asp

    How to add the feature print directory for files in Windows XP, Windows Vista or Windows 7
    http://support.Microsoft.com/default.aspx/KB/321379

    I hope this helps.

  • How to read the contents of the attachments to the record listener?

    Hi all

    We have a blackberry user interface application that implements FolderListener. The messagesAdded(FolderEvent e) public void in the record listener method is called whenever a new message arrives on the device.

    Now, there are some emails that will also spare.

    Can someone tell me how to read the contents of the attachment?

    I can read correctly the content of the body of the email.

    Our code to handle the arrival of e-mail for your reference is mentioned below.

    public class MyUIApplication extends UiApplication implements FolderListener
    {
        public void messagesAdded(FolderEvent e) {
            Message orginalMessage = e.getMessage();
    
            Folder messageFolder = orginalMessage.getFolder();
    
            if (e.getMessage().isInbound() == true) {
    
                String sender = orginalMessage.getFrom().toString();
                String subject = orginalMessage.getSubject();
                String body = orginalMessage.getBodyText();
    
                String attachmentContent = ""// Read atachment content here?
    
                // some more code
            }
        }
    }
    

    Any help in this regard will be appreciated.

    Thank you.

    There is no way to prevent a menu item to be added to an AttachmentHandler.  When a user clicks your menu item will be called the run method.

    If you have registered an AttachmentHandler for your type of attachment and the prefix the file name of the attachment with x-rimdevice, you would be able to access its contents of in a FolderListener.

  • HTML Help Home button - how to change the content

    I use Robohelp 11 and we post our content as microsoft HTML help.  I wonder how to change the content of the button the top of the page next to the front buttons and back at home.  Since it's HTML Help I can't use a skin to change the buttons, but I need to change what is displayed when you click the home button.  I can't find how to change when the button links to.  I just want to link to our home page.

    Thank you!

    Matthew

    Hello

    On luck outside, that you are not really wanting to address the 'skin in a CHM' quite yet, try this.

    First, note the path and the name of the file that you want to appear when the user clicks on the Home link.

    Open the pod of setting up a project. (View > pods > project configuration)

    Expand Windows, and then double-click the CHM window. (If you do not see a CHM window, you will need to create a)

    In the Properties window, click the Advanced Properties button.

    And from the Advanced Properties dialog box, you type (Yes, you heard that right, TYPE) the path and the name of the file you want. (Remember this first step?) Note that you can also type a URL pointing to a website here.

    Hope this helps... Rick

  • How to browse the list returned by the method using reflection?

    Hello

    How to browse the list < address > and call a method in the class of address?

    Method m = someObj.getClass () .getMethod ("listOfIPv4Addresses");
    AList = m.invoke (someObj) object; Returns a list < address >

    ReturnType ParameterizedType = m.getGenericReturnType () (ParameterizedType);
    Type [] typeArguments = returnType.getActualTypeArguments ();
    Class returnTypeParamClass = typeArguments (class) [0]; Gets the type of class "address".

    for (object shown: aList) {}
    What am I doing here?
    }

    Thank you.

    Well in that case:

    List alist = (List)m.invoke(someObj); // returns a List
    // Then your next 3 lines ...

    Now browse the list

    for (Object aAddress : aList)
    {
      Object result = m.invoke(aAddress);
      // etc, whatever you want to do with that
    } 
    
  • How to make the content of the DIV on the page that I'm going to fade out?

    I'm trying to figure out how to make the content of a DIV on the page I'm clicking away from fade. I know how to do the Next page load with a fade in. So I'm half there (I guess).  WiX has many designs which use for this purpose. Here is a link to an example:

    http://www.wix.com/website-template/view/HTML/633?originUrl=http%3A%2f%2Fwww.wix.com & numbe r page = 1 & = 1 position-in-page

    This is the code I use to make a DIV load with a melted in:

    I have add this CSS code in the div I want to apply the fade in effect to:

    Animation: fadein 2s;

    -moz-animation: fadein 2s; / * Firefox * /.

    -webkit-animation: fadein 2s; / * Safari and Chrome * /.

    -o - animation: fadein 2s; / * Opera * /.

    And I add this additional code to the CSS stylesheet:

    }

    fadein {} @keyframes

    of {}

    opacity: 0;

    }

    to {}

    opacity: 1;

    }

    }

    @-moz - keyframes fadein {/ * Firefox * /}

    of {}

    opacity: 0;

    }

    to {}

    opacity: 1;

    }

    }

    @-webkit - keyframes fadein {/ * Safari and Chrome * /}

    of {}

    opacity: 0;

    }

    to {}

    opacity: 1;

    }

    }

    @-o - keyframes fadein {/ * opera * /}

    of {}

    opacity: 0;

    }

    to {}

    opacity: 1;

    }

    }

    Tutorial with demo & downloadable files here: http://www.onextrapixel.com/2010/02/23/how-to-use-jquery-to-make-slick-page-transitions/

  • How to get the content during execution classpath

    In production mode, I can't stop the weblogic server. In the command line window, shows that recent information. How to get the content of the classpath of weblogic domain?

    You can view the log file of the server under the location */servers//log / *. The log file contains the details about the CLASSPATH setting.

    A typical classpath is represented by the java.class.path attribute in the log file.

    See you soon,.
    Julien
    http://WebLogic-wonders.com

  • How to get the content incorporate the swf file in Swf Loader on the run time

    How to get the content incorporate the swf file in Swf Loader on the run time

    [Bindable]

    [Embed(source="assets/index.swf")]

    private var SWFSRC: Class;

    < mx:SWFLoader id = "_swfloader" source = "{SWFSRC}" / >

    It might be Loader (DisplayObjectContainer (_swfLoader.content) .getChildAt (0)) content

  • How to load the contents of a layer as a selection in photoshop CS4

    Hello

    In photoshop cs4 when I ctrl-click on a layer thumbnail in the layers panel, photoshop select any layer not its content.  How to load the contents of a layer as a selection in photoshop cs4?

    Thank you

    to load the contents of the layer as a selection, you go to the Panel layers and Ctrl + click on the RGB.

Maybe you are looking for